-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
1,892 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
ARG DO_UPDATE=y | ||
ARG NONINTERACTIVE=y | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG INSTALL_DEFAULT_LOCALE="fr_FR.UTF-8" | ||
ARG EXTRA_FILES_LIST="" | ||
ARG COPS_SYSTEM=${_cops_SYSTEM} | ||
ARG COPS_SYSTEM=${_cops_SYSTEM-} | ||
ARG FOREGO_RELEASE=latest | ||
ARG REMCO_RELEASE=latest | ||
ARG GOSU_RELEASE=latest | ||
ARG DOCKERIZE_RELEASE=latest | ||
ARG CURL_SSL_OPTS=--tlsv1 | ||
ARG DOCKER_IMAGES_COMMIT=master | ||
ARG COPS_HELPERS=/cops_helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
ADD helpers/*_clean.sh /tmp/corpusopssteroids/ | ||
ADD helpers/system_detect.sh helpers/*_clean.sh /tmp/corpusopssteroids/ | ||
RUN sh -c 'set -ex \ | ||
&& echo fixperms >&2 \ | ||
&& ( chmod -vf g-wx,o-wx /etc/logrotate.d/* /etc/logrotate.conf || true ) \ | ||
&& echo cleanup >&2 \ | ||
&& cd /tmp/corpusopssteroids \ | ||
&& chmod +x *sh \ | ||
&& _cops_SYSTEM=$(./system_detect.sh) \ | ||
&& ./${_cops_SYSTEM}_clean.sh \ | ||
&& cd / && rm -rf /tmp/corpusopssteroids' | ||
&& ./common_clean.sh \ | ||
&& cd / && rm -rf /tmp/corpusopssteroids /var/cache/apk/* /var/lib/apt/lists/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
ARG DOCKER_IMAGES_COMMIT="$DOCKER_IMAGES_COMMIT" | ||
LABEL com.github.corpusops.docker-images-commit="$DOCKER_IMAGES_COMMIT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM $RSYNC AS squashed-rsync | ||
FROM $ANCESTOR AS squashed-ancestor | ||
ARG ROOTFS="/BASE_ROOTFS_TO_COPY_THAT_WONT_COLLIDE_1234567890" | ||
ARG PATH="${ROOTFS}_rsync/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SHELL ["busybox", "sh", "-c"] | ||
RUN --mount=type=bind,from=final,target=$ROOTFS --mount=type=bind,from=squashed-rsync,target=${ROOTFS}_rsync \ | ||
rsync -Aaz --delete ${ROOTFS}/ / --exclude=/proc --exclude=/sys --exclude=/etc/resolv.conf --exclude=/etc/hosts --exclude=$ROOTFS* --exclude=dev/shm --exclude=dev/pts --exclude=dev/mqueue | ||
SHELL ["/bin/sh", "-c"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ARG ANCESTOR=${_cops_BASE}:${_cops_VERSION} | ||
ARG RSYNC=corpusops/rsync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -exo pipefail | ||
: "cleanup packages" | ||
rm -rf /var/cache/apk/* | ||
# misc | ||
find /etc/rsyslog.d -name "*.conf" -not -type d|while read f;do mv -vf "$f" "$f.sample";done | ||
# vim:set et sts=4 ts=4 tw=80: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/usr/bin/env bash | ||
: "cleanup packages" \ | ||
&& yum clean all | ||
set -ex | ||
: "cleanup packages" | ||
if (yum --help &> /dev/null );then yum clean all;fi | ||
if (microdnf --help &> /dev/null );then microdnf clean all;fi | ||
# vim:set et sts=4 ts=4 tw=80: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.