build(docker): add Dockerfile
This commit is contained in:
parent
0243535469
commit
23f12904cc
7 changed files with 77 additions and 12 deletions
18
justfile
18
justfile
|
|
@ -11,14 +11,22 @@ server:
|
|||
admin:
|
||||
cargo run --bin minauthator-admin -- $CONTEXT_ARGS
|
||||
|
||||
docker-run:
|
||||
docker run -p 3085:8080 -v ./tmp/docker/config:/etc/minauthator -v ./tmp/docker/db:/var/lib/minauthator minauthator
|
||||
docker-build:
|
||||
docker build -t lefuturiste/minauthator .
|
||||
|
||||
docker-init-db:
|
||||
docker run -v ./tmp/docker/config:/etc/minauthator -v ./tmp/docker/db:/var/lib/minauthator minauthator /usr/local/bin/minauthator_init_db.sh
|
||||
docker run \
|
||||
-v ./tmp/docker/config:/etc/minauthator \
|
||||
-v minauthator-db:/var/lib/minauthator \
|
||||
lefuturiste/minauthator \
|
||||
/usr/local/bin/minauthator_init_db.sh
|
||||
|
||||
docker-build:
|
||||
docker build -t minauthator .
|
||||
docker-run:
|
||||
docker run \
|
||||
-p 127.0.0.1:3085:8080 \
|
||||
-v ./tmp/docker/config:/etc/minauthator \
|
||||
-v minauthator-db:/var/lib/minauthator \
|
||||
lefuturiste/minauthator
|
||||
|
||||
init-db:
|
||||
sqlite3 -echo tmp/dbs/minauthator.db < migrations/all.sql
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue