Przeglądaj źródła

Update sync to use Coursier instead of Maven

wip/coursier
Sindre Stephansen 3 lat temu
rodzic
commit
695c958dbf
1 zmienionych plików z 12 dodań i 6 usunięć
  1. +12
    -6
      sync/Dockerfile

+ 12
- 6
sync/Dockerfile Wyświetl plik

@@ -1,10 +1,16 @@
FROM maven:3-openjdk-11
FROM openjdk:19-jdk-alpine


RUN mkdir /poms && mkdir -p /root/.m2
RUN apk add gcompat
RUN apk add curl


COPY resolve-deps-from-poms.sh /resolve-deps-from-poms.sh
COPY settings.xml /root/.m2/settings.xml
# Download Coursier (https://get-coursier.io/)
RUN curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > /usr/bin/cs
RUN chmod +x /usr/bin/cs


VOLUME [ "/poms" ]
RUN cs setup -y


CMD [ "/resolve-deps-from-poms.sh" ]
RUN mkdir /workdir
WORKDIR /workdir
ENV COURSIER_CACHE /workdir

CMD ["/usr/bin/cs", "fetch", "--dependency-file", "/packages.txt", "--default=true", "--sources", "--javadoc"]

Ładowanie…
Anuluj
Zapisz