Selaa lähdekoodia

Run coursier once for each package

wip/coursier
Sindre Stephansen 2 vuotta sitten
vanhempi
commit
7c318a8617
3 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. +1
    -0
      sync/.dockerignore
  2. +3
    -1
      sync/Dockerfile
  3. +5
    -0
      sync/main.sh

+ 1
- 0
sync/.dockerignore Näytä tiedosto

@@ -2,3 +2,4 @@
!settings.xml
!resolve-deps-from-poms.sh
!wait-for-it.sh
!main.sh

+ 3
- 1
sync/Dockerfile Näytä tiedosto

@@ -9,8 +9,10 @@ RUN chmod +x /usr/bin/cs

RUN cs setup -y

ADD ./main.sh /main.sh

RUN mkdir /workdir
WORKDIR /workdir
ENV COURSIER_CACHE /workdir

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

+ 5
- 0
sync/main.sh Näytä tiedosto

@@ -0,0 +1,5 @@
#!/bin/sh

for line in $(cat /packages.txt); do
cs fetch --default=true --sources --javadoc -v -v "$line"
done

Loading…
Peruuta
Tallenna