Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da6e513b3a | |||
| 3e4e529a21 | |||
| 1310f15c3d | |||
| 70db1bdc39 | |||
| 690136f592 | |||
| 72b0e8297d | |||
| 33e6c5c073 | |||
| a5cc4e5468 | |||
| ba78d9c707 | |||
| 1660ca00d2 | |||
| 88bd3eb649 | |||
| a701ca41c5 | |||
| 68af7a3b20 |
@@ -1,7 +1,5 @@
|
|||||||
FROM alpine:3.12
|
FROM alpine:3.12
|
||||||
RUN apk update && apk add --no-cache bash git openssh python3 py3-pip graphviz gcc
|
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
|
||||||
|
|
||||||
RUN python3 -m pip install --upgrade pip setuptools wheel pyparsing pydot django-extensions django
|
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# e is for exiting the script automatically if a command fails, u is for exiting if a variable is not set
|
# 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
|
# x would be for showing the commands before they are executed
|
||||||
set -eu
|
set -eux
|
||||||
|
|
||||||
# FUNCTIONS
|
# 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)
|
# 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
|
# PROGRAM
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
pip3 install --no-cache-dir -r $INPUT_PIP_PATH
|
pip3 install -r $INPUT_PIP_PATH
|
||||||
echo "Creating data model..."
|
echo "Creating data model..."
|
||||||
cd $INPUT_PROJECT_PATH
|
cd $INPUT_PROJECT_PATH
|
||||||
python3 manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH
|
python3 manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user