Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit b10ff64

Browse files
committed
More updated for #6270
1 parent c7e9fab commit b10ff64

File tree

10 files changed

+22
-11
lines changed

10 files changed

+22
-11
lines changed

tools/aws/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
88
COPY --link --from=python / /
99
ARG name
1010
ARG version
11-
COPY <<EOF ${prefix}/etc/profile.d/aws
11+
COPY <<EOF ${prefix}${target}/etc/profile.d/aws
1212
complete -C '/usr/local/bin/aws_completer' aws
1313
EOF
1414
RUN <<EOF

tools/aws/post_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -o errexit
3+
4+
cp "${target}/etc/profile.d/aws" "/etc/profile.d/aws"

tools/aws2/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG ref=main
55
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
8-
COPY <<EOF ${prefix}/etc/profile.d/aws
8+
COPY <<EOF ${prefix}${target}/etc/profile.d/aws
99
complete -C '/usr/local/bin/aws_completer' aws
1010
EOF
1111
RUN <<EOF

tools/aws2/post_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -o errexit
3+
4+
cp "${target}/etc/profile.d/aws" "/etc/profile.d/aws"

tools/conmon/Dockerfile.template

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ make -C docs GOMD2MAN=go-md2man
4343
mv bin/conmon "${prefix}${target}/bin/conmon"
4444
mv docs/conmon.8 "${prefix}${target}/share/man/man8"
4545
EOF
46-
COPY default.yaml ${prefix}/etc/containers/registries.d/default.yaml
47-
COPY policy.json ${prefix}/etc/containers/policy.json
48-
COPY policy.conf ${prefix}/etc/containers/policy.conf
49-
COPY registry.json ${prefix}/etc/containers/registries.json
50-
COPY storage.conf ${prefix}/etc/containers/storage.conf
46+
COPY default.yaml ${prefix}${target}/etc/containers/registries.d/default.yaml
47+
COPY policy.json ${prefix}${target}/etc/containers/policy.json
48+
COPY policy.conf ${prefix}${target}/etc/containers/policy.conf
49+
COPY registry.json ${prefix}${target}/etc/containers/registries.json
50+
COPY storage.conf ${prefix}${target}/etc/containers/storage.conf

tools/containerd/post_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
if test -f "/etc/crictl.yaml"; then
1616
echo "Fixing configuration for cticrl"
1717
ENDPOINT=unix:///run/containerd/containerd.sock
18-
cat "${target}/etc/crictl.yaml" \
18+
cat "/etc/crictl.yaml" \
1919
| sed "s|#runtime-endpoint: YOUR-CHOICE|runtime-endpoint: ${ENDPOINT}|; s|#image-endpoint: YOUR-CHOICE|image-endpoint: ${ENDPOINT}|" \
2020
>"/etc/crictl.yaml"
2121
fi

tools/docker-preview/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mkdir -p \
1414
"${prefix}${docker_setup_contrib}/${name}/openrc"
1515
EOF
1616

17-
COPY daemon.json ${prefix}/etc/docker-preview/
17+
COPY daemon.json ${prefix}${target}/etc/docker-preview/
1818
COPY --chmod=0755 <<EOF ${prefix}${target}/bin/docker-preview
1919
#!/bin/bash
2020
set -o errexit

tools/konf/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG ref=main
55
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
8-
COPY <<EOF ${prefix}/etc/profile.d/konf.sh
8+
COPY <<EOF ${prefix}${target}/etc/profile.d/konf.sh
99
case "\$(basename "\${SHELL}")" in
1010
bash)
1111
source <(konf-go shellwrapper bash)

tools/libcgroup/Dockerfile.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ apt-get -y install --no-install-recommends \
1414
bison \
1515
flex
1616
EOF
17+
RUN <<EOF
18+
mkdir -p "${prefix}${target}/etc/ld.so.conf.d"
19+
EOF
1720
COPY <<EOF >${prefix}${target}/etc/ld.so.conf.d/libcgroup.conf
1821
${target}/lib
1922
EOF

tools/rust/Dockerfile.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG ref=main
55
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
8-
COPY <<EOF ${prefix}/etc/profile.d/cargo.sh
8+
COPY <<EOF ${prefix}${target}/etc/profile.d/cargo.sh
99
#!/bin/bash
1010
export CARGO_HOME=/opt/cargo
1111
export RUSTUP_HOME=/opt/rustup

0 commit comments

Comments
 (0)