Browse Source

Switch to alpine in sync container

wip/gradle-reposilite
Sindre Stephansen 2 years ago
parent
commit
10c9256d84
Signed by: sindre <sindre@sindrestephansen.com> GPG Key ID: B06FC67D17A46ADE
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      sync/Dockerfile
  2. +3
    -3
      sync/resolve-deps.sh

+ 3
- 3
sync/Dockerfile View File

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


WORKDIR /workdir WORKDIR /workdir


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


COPY requirements.txt . COPY requirements.txt .
RUN python3 -m pip install -r 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 resolve-deps.sh .
COPY generate-gradle.py . COPY generate-gradle.py .


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

+ 3
- 3
sync/resolve-deps.sh View File

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


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


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


echo "Resolving packages and generating gradle config" 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" echo "Gradle generation failed"
exit 255 exit 255
fi fi


Loading…
Cancel
Save