Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix requrements and add Containerfile-dev for testing purposes #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Containerfile-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.12-alpine3.19

# Update the packages
RUN apk update

# Install the ansible dependancies
RUN apk add gcc libffi-dev musl-dev openssl-dev sshpass make \
&& pip3 install --upgrade pip \
&& rm -rf /var/cache/apk/*
# RUN apk add py-crypto python-dev

WORKDIR /app
# Use -v $(pwd):/app
COPY requirements.txt /app/

# Install td4a dependencies
RUN pip3 install -r /app/requirements.txt

# Install td4a
COPY td4a-server /app
COPY td4a /app/td4a

# Start td4a
CMD [ "/app/td4a-server" ]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,10 @@ The dependancies can be concatenated and minified using gulp.
```
gulp
```

Development container:

```bash
docker build -f Containerfile-dev . -t td4a-dev
docker run --rm --name td4a-dev -p 5000:5000 -v $(pwd):/app td4a-dev ./td4a-server
```
40 changes: 34 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,36 @@
ansible==2.9.12
Flask==1.1.2
ansible-core==2.14.13
attrs==23.1.0
Automat==22.10.0
blinker==1.7.0
certifi==2023.11.17
cffi==1.16.0
chardet==3.0.4
charset-normalizer==3.3.2
click==8.1.7
constantly==23.10.4
cryptography==41.0.7
Flask==3.0.0
genson==1.2.1
hyperlink==21.0.0
idna==2.10
incremental==22.10.0
itsdangerous==2.1.2
Jinja2==3.1.2
jsonschema==3.2.0
MarkupSafe==2.1.3
netaddr==0.8.0
Twisted==20.3.0
requests==2.24.0
packaging==23.2
pycparser==2.21
pyrsistent==0.20.0
PyYAML==6.0.1
requests==2.31.0
resolvelib==0.8.1
ruamel.yaml==0.16.10
genson==1.2.1
jsonschema==3.2.0
setuptools==69.0.2
six==1.16.0
Twisted==23.10.0
typing_extensions==4.9.0
urllib3==2.1.0
Werkzeug==3.0.1
wheel==0.42.0
zope.interface==6.1
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
'requests==2.24.0',
'ruamel.yaml==0.16.10',
'genson==1.2.1',
'jsonschema==3.2.0'
'jsonschema==3.2.0',
'jinja2==3.0',
'werkzeug==2.0.3',
'itsdangerous==2.0.1',
],
zip_safe=False)