Skip to content

Instantly share code, notes, and snippets.

@ekiauhce
Created March 1, 2023 23:00
Show Gist options
  • Save ekiauhce/0e34b44b8303e7023b9e330b58fdb4f3 to your computer and use it in GitHub Desktop.
Save ekiauhce/0e34b44b8303e7023b9e330b58fdb4f3 to your computer and use it in GitHub Desktop.
user@dell-laptop:~/code/python/ruthelp_bot$ docker rm -f $(docker ps -a | grep ruthelp | grep bot | awk '{print $1}' | xargs)
38ee791c04e7
7f574cf46bf7
fb9d7dc7f104
1a9dd1547c0e
user@dell-laptop:~/code/python/ruthelp_bot$ docker rmi -f $(docker images -a | grep ruthelp | awk '{print $3}' | xargs)
Untagged: ekiauhce/ruthelp-bot:latest
Untagged: ekiauhce/ruthelp-bot@sha256:c22b56cc2b8405b0b5afe3b8ec53debdb8e870e45e39fe7fb49e6e6bcec1832c
Deleted: sha256:07e4aa9ad21105b0a678976b0719c0e3dc00d1db18448409b3b037ca66e55f63
Deleted: sha256:905466ab1bab85e77cafd3c18120a1ff5c54e8977a4d5bca58445b1fe4e7013f
Deleted: sha256:a5e9a1851abacfcfc260df943d0a47bd3a70c3656cc52e572c794a3a89c320a2
Untagged: ruthelp_bot:latest
Deleted: sha256:d0d84bf7e1f1b598cbe17826c995e171a99edce56a0e1c8098cabe369056c35f
Deleted: sha256:43522901ff2769ee9126d176be057f952518dd5a67d3a1779b99e56cedd54edc
Deleted: sha256:354f4a0955dd003b5d4c18788c451e2ddef98b5fc1b501b0ace58554a633f259
user@dell-laptop:~/code/python/ruthelp_bot$ docker-compose -f docker-compose.prod.yaml ps
Name Command State Ports
-------------------------------------------------------------
ruthelp-db docker-entrypoint.sh postgres Up 5432/tcp
user@dell-laptop:~/code/python/ruthelp_bot$ git pull
Already up to date.
user@dell-laptop:~/code/python/ruthelp_bot$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
user@dell-laptop:~/code/python/ruthelp_bot$ docker-compose -f docker-compose.prod.yaml up bot
Building bot
Step 1/6 : FROM python:3
---> 254d4a8a8f31
Step 2/6 : WORKDIR /app
---> Using cache
---> 2150fad77f3b
Step 3/6 : COPY requirements.txt requirements.txt
---> Using cache
---> b5ff1a9eed9c
Step 4/6 : RUN pip install --no-cache-dir -r requirements.txt
---> Using cache
---> 3412e4b1d261
Step 5/6 : COPY . .
---> 1266d2271dd9
Step 6/6 : CMD [ "python3", "./src/main.py" ]
---> Running in 899aa91281ec
Removing intermediate container 899aa91281ec
---> 9533534501a6
Successfully built 9533534501a6
Successfully tagged ekiauhce/ruthelp-bot:latest
WARNING: Image for service bot was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
ruthelp-db is up-to-date
Creating ruthelp-bot ... done
Attaching to ruthelp-bot
ruthelp-bot | 2023-03-01 22:55:33,385 - apscheduler.scheduler - INFO - Scheduler started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment