Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize gpu-celery container #751

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Change tags
  • Loading branch information
sabrina0822 committed Sep 6, 2022
commit 0ac63dfb841e3178d6239377277c163a087a424c
20 changes: 10 additions & 10 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -26,13 +26,13 @@ docker build \
--no-cache \
--build-arg BRANCHES="develop" \
--build-arg VERSION=${RODAN_TAG} \
--tag ddmal/rodan-python3-celery:nightly \
--tag ddmal/rodan-python3-celery:smaller \
--tag ddmal/rodan-python3-celery:${RODAN_TAG} \
--file ./python3-celery/Dockerfile \
.

echo "[+] Pushing Python3-Celery"
docker push ddmal/rodan-python3-celery:nightly
docker push ddmal/rodan-python3-celery:smaller

echo "[+] Python3-Celery needs to be made and pushed before Rodan/Celery because the Rodan image uses the Python3 image as its base."

@@ -54,7 +54,7 @@ docker build \
--build-arg BRANCHES="develop" \
--build-arg VERSION=${RODAN_TAG} \
--build-arg build_hash=${BUILD_HASH} \
--tag ddmal/rodan-main:nightly \
--tag ddmal/rodan-main:smaller \
--tag ddmal/rodan-main:${RODAN_TAG} \
--file ./rodan-main/Dockerfile \
.
@@ -72,7 +72,7 @@ docker build \
--no-cache \
--build-arg BRANCHES="develop" \
--build-arg VERSION=${RODAN_CLIENT_TAG} \
--tag ddmal/rodan-client:nightly \
--tag ddmal/rodan-client:smaller \
--tag ddmal/rodan-client:${RODAN_CLIENT_TAG} \
./rodan-client

@@ -83,7 +83,7 @@ if [ -z `echo ${RODAN_TAG} | awk -F'-' '{print $3}'` ]; then
docker push ddmal/rodan-main:${RODAN_TAG}
fi

docker push ddmal/rodan-main:nightly
docker push ddmal/rodan-main:smaller

echo "[+] Pushing Rodan-Client"

@@ -92,7 +92,7 @@ if [ -z `echo ${RODAN_CLIENT_TAG} | awk -F'-' '{print $3}'` ]; then
docker push ddmal/rodan-client:${RODAN_CLIENT_TAG}
fi

docker push ddmal/rodan-client:nightly
docker push ddmal/rodan-client:smaller

###############################################################################
# Stage 3
@@ -104,7 +104,7 @@ docker build \
--no-cache \
--build-arg BRANCHES="develop" \
--build-arg VERSION=${RODAN_TAG} \
--tag ddmal/rodan-gpu-celery:nightly \
--tag ddmal/rodan-gpu-celery:smaller \
--tag ddmal/rodan-gpu-celery:${RODAN_TAG} \
--file ./gpu-celery/Dockerfile \
.
@@ -114,7 +114,7 @@ echo "[+] Building Postgres"
docker build \
--no-cache \
--build-arg VERSION=${RODAN_DOCKER_TAG} \
--tag ddmal/postgres-plpython:nightly \
--tag ddmal/postgres-plpython:smaller \
--tag ddmal/postgres-plpython:${RODAN_DOCKER_TAG} \
--file ./postgres/Dockerfile \
.
@@ -124,7 +124,7 @@ echo "[+] Building Nginx"
docker build \
--no-cache \
--build-arg VERSION=${RODAN_DOCKER_TAG} \
--tag ddmal/nginx:nightly \
--tag ddmal/nginx:smaller \
--tag ddmal/nginx:${RODAN_DOCKER_TAG} \
./nginx

@@ -133,7 +133,7 @@ echo "[+] Building HPC-RabbitMQ"
docker build \
--no-cache \
--build-arg VERSION=${RODAN_DOCKER_TAG} \
--tag ddmal/hpc-rabbitmq:nightly \
--tag ddmal/hpc-rabbitmq:smaller \
--tag ddmal/hpc-rabbitmq:${RODAN_DOCKER_TAG} \
./hpc-rabbitmq

10 changes: 5 additions & 5 deletions hooks/push
Original file line number Diff line number Diff line change
@@ -12,36 +12,36 @@ if [ -z `echo ${RODAN_TAG} | awk -F'-' '{print $3}'` ]; then
docker push ddmal/rodan-python3-celery:${RODAN_TAG}
fi

docker push ddmal/rodan-python3-celery:nightly
docker push ddmal/rodan-python3-celery:smaller

echo "[+] Pushing GPU-Celery"

if [ -z `echo ${RODAN_TAG} | awk -F'-' '{print $3}'` ]; then
docker push ddmal/rodan-gpu-celery:${RODAN_TAG}
fi

docker push ddmal/rodan-gpu-celery:nightly
docker push ddmal/rodan-gpu-celery:smaller

echo "[+] Pushing Postgres"

if [ -z `echo ${RODAN_DOCKER_TAG} | awk -F'-' '{print $3}'` ]; then
docker push ddmal/postgres-plpython:${RODAN_DOCKER_TAG}
fi

docker push ddmal/postgres-plpython:nightly
docker push ddmal/postgres-plpython:smaller

echo "[+] Pushing Nginx"

if [ -z `echo ${RODAN_DOCKER_TAG} | awk -F'-' '{print $3}'` ]; then
docker push ddmal/nginx:${RODAN_DOCKER_TAG}
fi

docker push ddmal/nginx:nightly
docker push ddmal/nginx:smaller

echo "[+] Pushing HPC-RabbitMQ"

if [ -z `echo ${RODAN_DOCKER_TAG} | awk -F'-' '{print $3}'` ]; then
docker push ddmal/hpc-rabbitmq:${RODAN_DOCKER_TAG}
fi

docker push ddmal/hpc-rabbitmq:nightly
docker push ddmal/hpc-rabbitmq:smaller