diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-26 06:06:59 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-26 06:06:59 +0200 |
commit | 931b6776da886113b3ec7d948d878bd8ee50ac6e (patch) | |
tree | 880df2cde629ee8e37f8d2893a88ac8913a945fd /builder | |
parent | 91da21fd08513302a25ae4db48c989160557f093 (diff) | |
download | gentoo-builder-931b6776da886113b3ec7d948d878bd8ee50ac6e.tar.gz gentoo-builder-931b6776da886113b3ec7d948d878bd8ee50ac6e.tar.bz2 gentoo-builder-931b6776da886113b3ec7d948d878bd8ee50ac6e.tar.xz gentoo-builder-931b6776da886113b3ec7d948d878bd8ee50ac6e.zip |
Second test
Diffstat (limited to 'builder')
-rw-r--r-- | builder/Dockerfile | 15 | ||||
-rw-r--r-- | builder/files/entrypoint.sh | 11 |
2 files changed, 20 insertions, 6 deletions
diff --git a/builder/Dockerfile b/builder/Dockerfile index 898cfd3..7e257b7 100644 --- a/builder/Dockerfile +++ b/builder/Dockerfile @@ -1,9 +1,12 @@ FROM chsa/gbootstrap -RUN \ - cd /darklin/gentoo && git pull && \ - cd /darklin/darklin4 && git pull && \ - emerge --sync && eix-sync && \ - emerge -1 portage +# We do it now inside (git pull also may bring back un-necessary and potentialy problematic configs) +#RUN \ +# cd /darklin/gentoo && git pull && \ +# cd /darklin/darklin4 && git pull && \ +# emerge --sync && eix-sync && \ +# emerge -1 portage + +COPY files/ / -CMD ["/bin/bash", "/etc/portage/scripts/bootstrap/builder.sh"] +CMD ["/bin/bash", "/entrypoint.sh"] diff --git a/builder/files/entrypoint.sh b/builder/files/entrypoint.sh new file mode 100644 index 0000000..6685207 --- /dev/null +++ b/builder/files/entrypoint.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +if [ ! -d "/darklin/gentoo" ]; then + cd "/darklin" && git clone http://darksoft.org/git/csa/devops/darkconf/gentoo.git || exit 1 +fi + +if [ ! -d "/darklin/darklin4" ]; then + cd "/darklin" && git clone http://darksoft.org/git/csa/devops/darkconf/darklin4.git || exit 1 +fi + +/bin/bash "/etc/portage/scripts/bootstrap/builder.sh" |