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 \
my-app:latest \
--config /app/config.yaml
# - run:
# name: Install curl and dockerize
# command: |
# sudo apt-get update
# 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 tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.1.tar.gz
# sudo rm dockerize-linux-amd64-v0.6.1.tar.gz
# - run:
# name: Wait for app to be ready
# command: dockerize -wait http://localhost:4000 -timeout 1m
- run:
name: Install curl and dockerize
command: |
sudo apt-get update
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 tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.1.tar.gz
sudo rm dockerize-linux-amd64-v0.6.1.tar.gz
- run:
name: Wait for app to be ready
command: dockerize -wait http://localhost:4000 -timeout 1m
- run:
name: Test the application
command: curl -s "http://localhost:4000/health/readiness"