瀏覽代碼

Switch to alpine in sync container

wip/gradle-reposilite
Sindre Stephansen 2 年之前
父節點
當前提交
10c9256d84
簽署人: sindre <sindre@sindrestephansen.com> GPG 金鑰 ID: B06FC67D17A46ADE
共有 2 個檔案被更改,包括 6 行新增6 行删除
  1. +3
    -3
      sync/Dockerfile
  2. +3
    -3
      sync/resolve-deps.sh

+ 3
- 3
sync/Dockerfile 查看文件

@@ -1,8 +1,8 @@
FROM gradle:8-jdk11-jammy
FROM gradle:8-jdk11-alpine

WORKDIR /workdir

RUN apt-get update && apt-get install -y python3-pip
RUN python3 -m ensurepip

COPY requirements.txt .
RUN python3 -m pip install -r requirements.txt
@@ -10,4 +10,4 @@ RUN python3 -m pip install -r requirements.txt
COPY resolve-deps.sh .
COPY generate-gradle.py .

CMD [ "./resolve-deps.sh" ]
CMD [ "/bin/sh", "./resolve-deps.sh" ]

+ 3
- 3
sync/resolve-deps.sh 查看文件

@@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/sh

is_reposilite_up ()
{
curl -s -o /dev/null repo:80
nc repo 80 > /dev/null
return $?
}

@@ -30,7 +30,7 @@ if [[ ! -f /package-list.txt ]]; then
fi

echo "Resolving packages and generating gradle config"
if ! ./generate-gradle.py --repo="repo:80" /package-list.txt; then
if ! python3 ./generate-gradle.py --repo="repo:80" /package-list.txt; then
echo "Gradle generation failed"
exit 255
fi


Loading…
取消
儲存