Skip to content

Commit

Permalink
chore: use ghcr image, and freeze python version and pip dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
b-abadie committed Aug 12, 2024
1 parent 4df1f90 commit d723e1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3.11

RUN mkdir /ring-mtr
WORKDIR /ring-mtr
Expand All @@ -8,4 +8,4 @@ RUN pip install -r requirements.txt

COPY ./* ./

ENTRYPOINT ["python", "/ring-mtr/ring-mtr.py"]
ENTRYPOINT ["python", "/ring-mtr/ring-mtr.py"]
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ services:

ring-mtr:
build: .
image: ring-mtr
image: ghcr.io/enix/ring-mtr
env_file: ring-mtr.env
environment:
SSH_AUTH_SOCK: ${SSH_AUTH_SOCK}
volumes:
- ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}
- ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK}
10 changes: 8 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
dnspython
parallel-ssh
dnspython==2.6.1
gevent==24.2.1
greenlet==3.0.3
parallel-ssh==2.12.0
ssh-python==1.0.0
ssh2-python==1.0.0
zope.event==5.0
zope.interface==7.0.1

0 comments on commit d723e1c

Please sign in to comment.