diff --git a/docker/docker-compose.deployment.yml b/docker/docker-compose.deployment.yml index c5bef25..ed21fb5 100644 --- a/docker/docker-compose.deployment.yml +++ b/docker/docker-compose.deployment.yml @@ -1,5 +1,3 @@ -version: "3.7" - services: hs-ontology-api: diff --git a/docker/docker-compose.development.yml b/docker/docker-compose.development.yml index 98843af..4eaa88d 100644 --- a/docker/docker-compose.development.yml +++ b/docker/docker-compose.development.yml @@ -1,5 +1,3 @@ -version: "3.7" - services: hs-ontology-api: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8123075..baf6bbc 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,6 +1,3 @@ -version: "3.7" - -# Will use the hostname when talking between services on the same network services: hs-ontology-api: diff --git a/docker/docker-deployment.sh b/docker/docker-deployment.sh index cd55420..ba2f9fb 100755 --- a/docker/docker-deployment.sh +++ b/docker/docker-deployment.sh @@ -56,11 +56,11 @@ else echo if [ "$1" = "start" ]; then - docker-compose -f docker-compose.yml -f docker-compose.deployment.yml -p hs-ontology-api up -d + docker compose -f docker-compose.yml -f docker-compose.deployment.yml -p hs-ontology-api up -d elif [ "$1" = "stop" ]; then - docker-compose -f docker-compose.yml -f docker-compose.deployment.yml -p hs-ontology-api stop + docker compose -f docker-compose.yml -f docker-compose.deployment.yml -p hs-ontology-api stop elif [ "$1" = "down" ]; then - docker-compose -f docker-compose.yml -f docker-compose.deployment.yml -p hs-ontology-api down + docker compose -f docker-compose.yml -f docker-compose.deployment.yml -p hs-ontology-api down fi fi diff --git a/docker/docker-development.sh b/docker/docker-development.sh index b6f62db..041eb71 100755 --- a/docker/docker-development.sh +++ b/docker/docker-development.sh @@ -83,7 +83,7 @@ else echo 'Checks complete, all good :)' elif [ "$1" = "config" ]; then - docker-compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api config + docker compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api config elif [ "$1" = "build" ]; then # Delete the copied source code dir if exists if [ -d "ubkg-api/src" ]; then @@ -106,13 +106,13 @@ else cp ../VERSION ubkg-api cp ../BUILD ubkg-api - docker-compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api build + docker compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api build elif [ "$1" = "start" ]; then - docker-compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api up -d + docker compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api up -d elif [ "$1" = "stop" ]; then - docker-compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api stop + docker compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api stop elif [ "$1" = "down" ]; then - docker-compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api down + docker compose -f docker-compose.yml -f docker-compose.development.yml -p hs-ontology-api down fi fi diff --git a/docker/ubkg-api/Dockerfile b/docker/ubkg-api/Dockerfile index 0b58a2a..6c8aa8f 100644 --- a/docker/ubkg-api/Dockerfile +++ b/docker/ubkg-api/Dockerfile @@ -1,5 +1,5 @@ # Parent image -FROM hubmap/api-base-image:1.0.0 +FROM hubmap/api-base-image:1.1.0 LABEL description="HuBMAP and SenNet Ontology API" diff --git a/docker/ubkg-api/entrypoint.sh b/docker/ubkg-api/entrypoint.sh index 64ff4d9..e047e22 100644 --- a/docker/ubkg-api/entrypoint.sh +++ b/docker/ubkg-api/entrypoint.sh @@ -20,7 +20,8 @@ touch /var/run/nginx.pid chown -R hubmap:hubmap /var/run/nginx.pid chown -R hubmap:hubmap /var/cache/nginx chown -R hubmap:hubmap /var/log/nginx -# Lastly we use gosu to execute our process "$@" as that user + +# Lastly we use su-exec to execute our process "$@" as that user # Remember CMD from a Dockerfile of child image gets passed to the entrypoint.sh as command line arguments # "$@" is a shell variable that means "all the arguments" -exec /usr/local/bin/gosu hubmap "$@" +exec /usr/local/bin/su-exec hubmap "$@"