13 Commits
v1.0 ... v1.1

Author SHA1 Message Date
da6e513b3a Added build dependencies 2020-10-29 15:55:58 +01:00
3e4e529a21 Added necessary dependency 2020-10-29 15:47:03 +01:00
1310f15c3d New try removing the python dependencies 2020-10-29 15:01:55 +01:00
70db1bdc39 Update Dockerfile 2020-10-20 11:17:52 +02:00
690136f592 Update Dockerfile 2020-10-20 11:09:41 +02:00
72b0e8297d Fixed bug with the python name 2020-10-20 11:04:50 +02:00
33e6c5c073 Update Dockerfile 2020-10-20 11:03:13 +02:00
a5cc4e5468 Update Dockerfile 2020-10-20 11:00:54 +02:00
ba78d9c707 Update Dockerfile 2020-10-20 10:58:18 +02:00
1660ca00d2 Update Dockerfile 2020-10-20 10:55:48 +02:00
88bd3eb649 Debugging using ubuntu 2020-10-20 10:53:37 +02:00
a701ca41c5 Moved to windowservercore 2020-10-20 10:49:17 +02:00
68af7a3b20 Moved to python image 2020-10-20 10:42:53 +02:00
2 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
FROM alpine:3.12
RUN apk update && apk add --no-cache bash git openssh python3 py3-pip graphviz gcc
RUN python3 -m pip install --upgrade pip setuptools wheel pyparsing pydot django-extensions django
RUN apk update && apk add --no-cache bash git gcc openssh python3 py3-pip graphviz graphviz-dev musl-dev postgresql-dev build-base python3-dev libffi-dev openssl-dev
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# e is for exiting the script automatically if a command fails, u is for exiting if a variable is not set
# x would be for showing the commands before they are executed
set -eu
set -eux
# FUNCTIONS
# Function for setting up git env in the docker container (copied from https://github.com/stefanzweifel/git-auto-commit-action/blob/master/entrypoint.sh)
@@ -27,7 +27,7 @@ _git_changed() {
# PROGRAM
echo "Installing dependencies..."
pip3 install --no-cache-dir -r $INPUT_PIP_PATH
pip3 install -r $INPUT_PIP_PATH
echo "Creating data model..."
cd $INPUT_PROJECT_PATH
python3 manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH