Fixed bug with the python name
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
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 openssh python3 py3-pip graphviz gcc
|
||||||
RUN python -m pip install --upgrade pip setuptools wheel pyparsing pydot pygraphviz django-extensions django
|
RUN python3 -m pip install --upgrade pip setuptools wheel pyparsing pydot pygraphviz django-extensions django
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
@@ -25,14 +25,12 @@ _git_changed() {
|
|||||||
[[ -n "$(git status -s)" ]]
|
[[ -n "$(git status -s)" ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
python --version
|
|
||||||
|
|
||||||
# PROGRAM
|
# PROGRAM
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
pip install --no-cache-dir -r $INPUT_PIP_PATH
|
pip3 install --no-cache-dir -r $INPUT_PIP_PATH
|
||||||
echo "Creating data model..."
|
echo "Creating data model..."
|
||||||
cd $INPUT_PROJECT_PATH
|
cd $INPUT_PROJECT_PATH
|
||||||
python manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH
|
python3 manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH
|
||||||
|
|
||||||
# To keep runtime good, just continue if something was changed
|
# To keep runtime good, just continue if something was changed
|
||||||
if _git_changed;
|
if _git_changed;
|
||||||
|
|||||||
Reference in New Issue
Block a user