build(config.yml): bring back dockerize

This commit is contained in:
Krrish Dholakia 2024-01-10 17:20:48 +05:30
parent 8b1c21c156
commit e3aff7fc92

View file

@ -107,17 +107,17 @@ jobs:
-v $(pwd)/proxy_server_config.yaml:/app/config.yaml \ -v $(pwd)/proxy_server_config.yaml:/app/config.yaml \
my-app:latest \ my-app:latest \
--config /app/config.yaml --config /app/config.yaml
# - run: - run:
# name: Install curl and dockerize name: Install curl and dockerize
# command: | command: |
# sudo apt-get update sudo apt-get update
# sudo apt-get install -y curl sudo apt-get install -y curl
# sudo wget https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz sudo wget https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz
# sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.1.tar.gz sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.1.tar.gz
# sudo rm dockerize-linux-amd64-v0.6.1.tar.gz sudo rm dockerize-linux-amd64-v0.6.1.tar.gz
# - run: - run:
# name: Wait for app to be ready name: Wait for app to be ready
# command: dockerize -wait http://localhost:4000 -timeout 1m command: dockerize -wait http://localhost:4000 -timeout 1m
- run: - run:
name: Test the application name: Test the application
command: curl -s "http://localhost:4000/health/readiness" command: curl -s "http://localhost:4000/health/readiness"