Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 8756fe8

Browse files
the docker image now installs requirements.txt files located in the project dir
1 parent 056c293 commit 8756fe8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker/entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/bin/sh
22

3+
set -x
4+
35
PIPELINE_PY="${*:-.gitlab-ci.py}"
6+
7+
if test -f requirements.txt; then
8+
grep -v '^ *#\|^gcip' requirements.txt > /tmp/gcip_requirements.tmp
9+
cat /tmp/gcip_requirements.tmp
10+
pip3 install -r /tmp/gcip_requirements.tmp
11+
rm -rf /tmp/gcip_requirements.tmp
12+
fi
13+
414
python3 "$PIPELINE_PY"

0 commit comments

Comments
 (0)