This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +22
-11
lines changed Expand file tree Collapse file tree 10 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
8
8
COPY --link --from=python / /
9
9
ARG name
10
10
ARG version
11
- COPY <<EOF ${prefix}/etc/profile.d/aws
11
+ COPY <<EOF ${prefix}${target} /etc/profile.d/aws
12
12
complete -C '/usr/local/bin/aws_completer' aws
13
13
EOF
14
14
RUN <<EOF
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -o errexit
3
+
4
+ cp " ${target} /etc/profile.d/aws" " /etc/profile.d/aws"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ARG ref=main
5
5
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6
6
ARG name
7
7
ARG version
8
- COPY <<EOF ${prefix}/etc/profile.d/aws
8
+ COPY <<EOF ${prefix}${target} /etc/profile.d/aws
9
9
complete -C '/usr/local/bin/aws_completer' aws
10
10
EOF
11
11
RUN <<EOF
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -o errexit
3
+
4
+ cp " ${target} /etc/profile.d/aws" " /etc/profile.d/aws"
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ make -C docs GOMD2MAN=go-md2man
43
43
mv bin/conmon "${prefix}${target}/bin/conmon"
44
44
mv docs/conmon.8 "${prefix}${target}/share/man/man8"
45
45
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
Original file line number Diff line number Diff line change 15
15
if test -f " /etc/crictl.yaml" ; then
16
16
echo " Fixing configuration for cticrl"
17
17
ENDPOINT=unix:///run/containerd/containerd.sock
18
- cat " ${target} /etc/crictl.yaml" \
18
+ cat " /etc/crictl.yaml" \
19
19
| sed " s|#runtime-endpoint: YOUR-CHOICE|runtime-endpoint: ${ENDPOINT} |; s|#image-endpoint: YOUR-CHOICE|image-endpoint: ${ENDPOINT} |" \
20
20
> " /etc/crictl.yaml"
21
21
fi
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ mkdir -p \
14
14
"${prefix}${docker_setup_contrib}/${name}/openrc"
15
15
EOF
16
16
17
- COPY daemon.json ${prefix}/etc/docker-preview/
17
+ COPY daemon.json ${prefix}${target} /etc/docker-preview/
18
18
COPY --chmod=0755 <<EOF ${prefix}${target}/bin/docker-preview
19
19
#!/bin/bash
20
20
set -o errexit
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ARG ref=main
5
5
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6
6
ARG name
7
7
ARG version
8
- COPY <<EOF ${prefix}/etc/profile.d/konf.sh
8
+ COPY <<EOF ${prefix}${target} /etc/profile.d/konf.sh
9
9
case "\$(basename "\${SHELL}")" in
10
10
bash)
11
11
source <(konf-go shellwrapper bash)
Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ apt-get -y install --no-install-recommends \
14
14
bison \
15
15
flex
16
16
EOF
17
+ RUN <<EOF
18
+ mkdir -p "${prefix}${target}/etc/ld.so.conf.d"
19
+ EOF
17
20
COPY <<EOF >${prefix}${target}/etc/ld.so.conf.d/libcgroup.conf
18
21
${target}/lib
19
22
EOF
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ARG ref=main
5
5
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6
6
ARG name
7
7
ARG version
8
- COPY <<EOF ${prefix}/etc/profile.d/cargo.sh
8
+ COPY <<EOF ${prefix}${target} /etc/profile.d/cargo.sh
9
9
#!/bin/bash
10
10
export CARGO_HOME=/opt/cargo
11
11
export RUSTUP_HOME=/opt/rustup
You can’t perform that action at this time.
0 commit comments