We will use Docker Engine to manage all dependencies for development and deployment of our solution.
- Install
git: - Install
Docker: - Install
docker-compose
Clone the repo to your local machine.
git clone <xxx>
docker build -t json_cleaner_image:latest .
- Update docker-compose.yaml file to use the bot's IP and PORT after bot is deployed.
- In a terminal:
docker-compose up
- In another terminal, if the process started by the last command was not detached:
./run_webhook_test
If you are deploying on a machine using a proxy server, configure Docker to use the proxy server: https://docs.docker.com/config/daemon/systemd/
To build the Docker image use a similar command:
docker build --no-cache --build-arg HTTP_PROXY=http://xx.xx.xx.xx:xx --build-arg HTTPS_PROXY=http://xx.xx.xx.xx:xx -t json_cleaner_image .
This is required so that once pip is installed and begins downloading the required modules in requirements.txt pip can also use the proxy server.