forked from pallupz/covid-vaccine-booking
-
Notifications
You must be signed in to change notification settings - Fork 215
Running on Docker
6mxo89sqh edited this page Jun 7, 2021
·
5 revisions
You can also run this script using docker. It's useful in case you don't want to install all required dependencies manually (python etc.).
Install docker on your system from here.
- Create your personal access token from here.
- Change
<YOUR_TOKEN>
and<GITHUB_USERNAME>
from the following script and run it.export PAT=<YOUR_TOKEN> echo $PAT | docker login docker.pkg.github.com -u <GITHUB_USERNAME> --password-stdin
- Use the following command to run it.
docker run --rm \
-v $(pwd)/configs:/configs \
-e "TZ=Asia/Kolkata" \
-it \ # interactive
docker.pkg.github.com/bombardier-gif/covid-vaccine-booking/cowin:latest [--config /configs/<file_name.json>] [--mobile <your_registered_mobile>] [--no-tty]
ℹ️ Windows Users, Please change $(pwd)/configs
to your directory or use powershell.
Note:
- (Optional Pro-Tip) After your first run, replace
-it
with-d
to run as daemon. - For Docker on AWS, add
--network="host"
in docker run command. AWS Metadata service won't work without this. - Specifying
--config /configs/<file_name.json>
is needed for your configurations to be stored. Without specifying that it won't be saved. - Your config files get stored in
configs
folder of current directory where you are executing the command.
- Use the following command:
docker pull docker.pkg.github.com/bombardier-gif/covid-vaccine-booking/cowin:latest
ℹ️ You need write access Personal Access Token. You might need to update your token access
docker build -t docker.pkg.github.com/bombardier-gif/covid-vaccine-booking/cowin:latest -f Dockerfile .