Add convenience script and makefile for hacking

This commit is contained in:
decentral1se
2021-05-24 12:45:11 +02:00
parent 4e2415e807
commit 09f914057c
3 changed files with 24 additions and 2 deletions

17
makefile Normal file
View File

@ -0,0 +1,17 @@
default: run
run: ## run a new container
@docker run \
-p 8080:8080 \
-v $$(pwd)/lumbung.space:/opt/jboss/keycloak/themes/lumbung.space \
-v $$(pwd)/bin/disable-theme-cache.cli:/opt/jboss/startup-scripts/disable-theme-cache.cli \
-e KEYCLOAK_USER=admin \
-e KEYCLOAK_PASSWORD=admin \
--name keycloakdev \
jboss/keycloak:12.0.4
shell: ## get a shell in the container
@docker exec -it keycloakdev /bin/bash
stop: ## tear down the container
@docker stop keycloakdev && docker rm keycloakdev