build and run stuff

This commit is contained in:
2021-01-18 10:14:54 +01:00
parent 876c99d790
commit 8a0840dd70
5 changed files with 34 additions and 1 deletions

18
run.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
. ENV
IMAGE_NAME="registry.hottis.de/hv/hv-service"
VERSION=0.0.1
docker run \
-d \
--rm \
--name "hv-service" \
-p 5000:5000 \
-e DB_HOST=$DB_HOST \
-e DB_USER=$DB_USER \
-e DB_PASS=$DB_PASS \
-e DB_NAME=$DB_NAME
${IMAGE_NAME}:${VERSION}