-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathboot_app.sh
executable file
·22 lines (17 loc) · 1.17 KB
/
boot_app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BASE_PATH='registry.gitlab.com/tuteria/tuteria'
IMAGE_NAME="$BASE_PATH/pyconng"
WEB_CONTAINER_IMAGE_NAME="$BASE_PATH/pyconng-app"
STATIC_CONTAINER_IMAGE_NAME="$BASE_PATH/pyconng-static"
cd /home/sama/app_code/pyconng && docker build -f compose/django/Dockerfile -t=$IMAGE_NAME .
docker login -u $1 -p $2 registry.gitlab.com
docker push $IMAGE_NAME
cd /home/sama/app_code/pyconng && docker build -f compose/nginx/Dockerfile-django -t=$WEB_CONTAINER_IMAGE_NAME ./compose/nginx
docker push $WEB_CONTAINER_IMAGE_NAME
cd /home/sama/app_code/pyconng && docker build -f compose/design/Dockerfile -t=$STATIC_CONTAINER_IMAGE_NAME ./python_nigeria/static/designs
docker push $STATIC_CONTAINER_IMAGE_NAME
docker image prune -f
# cd /home/sama/tuteria && docker build -f compose/celery/Dockerfile -t=registry.gitlab.com/tuteria/tuteria/celery compose/celery
# docker push registry.gitlab.com/tuteria/tuteria/celery
# cd ~/projects/tuteria/ && docker build -f compose/django/Dockerfile -t=gbozee/tuteria .
# cd /home/sama/code/tuteria && docker build -f pricing_service/Dockerfile -t=registry.gitlab.com/tuteria/tuteria/pricing pricing_service
# docker push registry.gitlab.com/tuteria/tuteria/pricing