Skip to content

Commit

Permalink
Use the overlay.d/ pattern to configure different root based on the C…
Browse files Browse the repository at this point in the history
…ontainerfile
  • Loading branch information
aleskandro committed Nov 12, 2023
1 parent e284442 commit 33b6520
Show file tree
Hide file tree
Showing 55 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ RUN set -x; \
| tee /etc/yum.repos.d/docker-ce.repo \
&& rpm-ostree install docker-ce docker-ce-cli && ostree container commit

COPY root/ /
COPY overlay.d/01-common/ /
COPY overlay.d/05-systemd/ /
COPY overlay.d/10-desktop/ /

RUN set -x; sed -i \
's/AutomaticUpdatePolicy=.*/AutomaticUpdatePolicy=stage/' \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ exists_or_extract_latest_gh_release "${LOCAL_BIN_PATH}/dive" wagoodman dive "lin
exists_or_extract_latest_gh_release "${LOCAL_BIN_PATH}/chroma" alecthomas chroma "linux-${LLVM_ARCH}.tar.gz"
exists_or_install_latest_gh_release operator-framework operator-sdk "operator-sdk_linux_${LLVM_ARCH}" ${LOCAL_BIN_PATH}/operator-sdk

# symbolic link for kubectl -> oc
#
ln -s "${LOCAL_BIN_PATH}/oc" "${LOCAL_BIN_PATH}/kubectl"

[ -f "${LOCAL_BIN_PATH}"/helm ] || {
export HELM_INSTALL_DIR="${LOCAL_BIN_PATH}"
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion toolbox.Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN set -x; arch=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/'); cat /etc/
RUN dnf -y groupinstall "Development Tools" && dnf clean all


COPY root/ /
COPY overlay.d/01-common/ /

RUN HOME=/tmp RUNZSH=no CHSH=no ZSH=/usr/lib/ohmyzsh \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
Expand Down

0 comments on commit 33b6520

Please sign in to comment.