Przeglądaj źródła

Update sync Dockerfile to work with new version of Alpine

main
Sindre Stephansen 10 miesięcy temu
rodzic
commit
1b4f4bd3e8
Podpisane przez: sindre <sindre@sindrestephansen.com> ID klucza GPG: B06FC67D17A46ADE
2 zmienionych plików z 6 dodań i 4 usunięć
  1. +4
    -2
      sync/Dockerfile
  2. +2
    -2
      sync/resolve-deps.sh

+ 4
- 2
sync/Dockerfile Wyświetl plik

@@ -17,10 +17,12 @@ RUN ./gradlew build

WORKDIR /workdir

RUN python3 -m ensurepip
RUN apk add py3-pip
RUN python3 -m venv /tmp/python-venv
ENV CUSTOMPYTHON=/tmp/python-venv/bin/python

COPY requirements.txt .
RUN python3 -m pip install -r requirements.txt
RUN /tmp/python-venv/bin/pip install -r requirements.txt

COPY resolve-deps.sh .
COPY src ./src


+ 2
- 2
sync/resolve-deps.sh Wyświetl plik

@@ -42,8 +42,8 @@ export GRADLE_VERSIONS_DIR=/gradle-versions
mkdir -p "${GRADLE_VERSIONS_DIR}"

echo "Resolving packages and generating gradle config"
python3 --version
if ! python3 src/main.py --repo="http://repo:80/releases" --output-dir "$PROJECTS_DIR" /package-list.yaml; then
$CUSTOMPYTHON --version
if ! $CUSTOMPYTHON src/main.py -vv --repo="http://repo:80/releases" --output-dir "$PROJECTS_DIR" /package-list.yaml; then
echo "Gradle generation failed"
exit 255
fi


Ładowanie…
Anuluj
Zapisz