This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
generated from AMRC-FactoryPlus/acs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it easier to look up principals (#4)
* Check permissions for `/principal/find` against the user to be returned. * Always allow a user to look up their own UUID. * Default `/principal/find` to the authenticated user. Other minor updates: * Local build infrastructure. * Updated version of `@amrc-factoryplus/utilities`, including better Cache-Control behaviour. * Include git revision in `/ping`. * Display object classes and deleted objects in the editor.
- Loading branch information
Showing
7 changed files
with
111 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
# Environment | ||
.env | ||
|
||
# Local config | ||
config.mk | ||
|
||
# Secrets | ||
/keytabs/ | ||
/volumes/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# On Windows try https://frippery.org/busybox/ | ||
|
||
-include config.mk | ||
|
||
pkgver!=node -e 'console.log(JSON.parse(fs.readFileSync("package.json")).version)' | ||
|
||
version?=${pkgver} | ||
suffix?= | ||
registry?=ghcr.io/amrc-factoryplus | ||
repo?=acs-auth | ||
|
||
tag=${registry}/${repo}:${version}${suffix} | ||
|
||
all: build push | ||
|
||
.PHONY: all build push check-committed | ||
|
||
check-committed: | ||
[ -z "$$(git status --porcelain)" ] || (git status; exit 1) | ||
|
||
build: check-committed | ||
docker build -t "${tag}" . | ||
|
||
push: | ||
docker push "${tag}" | ||
|
||
ifdef deployment | ||
|
||
.PHONY: deploy restart logs | ||
|
||
kdeploy= deploy/"${deployment}" | ||
|
||
deploy: all restart logs | ||
|
||
restart: | ||
kubectl rollout restart ${kdeploy} | ||
kubectl rollout status ${kdeploy} | ||
sleep 2 | ||
|
||
logs: | ||
kubectl logs -f ${kdeploy} | ||
|
||
else | ||
|
||
deploy: | ||
: Set $${deployment} for automatic k8s deployment | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters