Skip to content

Commit

Permalink
fix: support creating dirs for copied directories (strangelove-ventur…
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin authored Oct 8, 2024
1 parent fee412d commit f401f0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dockerfile/cosmos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ LABEL org.opencontainers.image.source="https://github.com/strangelove-ventures/h
WORKDIR /bin

# Install ln (for making hard links) and rm (for cleanup) from full busybox image (will be deleted, only needed for image assembly)
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm ./
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm /bin/mkdir /bin/dirname ./

# Install minimal busybox image as shell binary (will create hardlinks for the rest of the binaries to this data)
COPY --from=infra-toolkit /busybox/busybox /bin/sh
Expand Down Expand Up @@ -201,7 +201,7 @@ RUN sh -c 'i=0; while read DIR; do\
done < /root/dir_abs.list'

# Remove write utils
RUN rm ln rm mv
RUN rm ln rm mv mkdir dirname

# Install chain binaries
COPY --from=build-env /root/bin /bin
Expand Down
4 changes: 2 additions & 2 deletions dockerfile/cosmos/local.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ LABEL org.opencontainers.image.source="https://github.com/strangelove-ventures/h
WORKDIR /bin

# Install ln (for making hard links) and rm (for cleanup) from full busybox image (will be deleted, only needed for image assembly)
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm ./
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm /bin/mkdir /bin/dirname ./

# Install minimal busybox image as shell binary (will create hardlinks for the rest of the binaries to this data)
COPY --from=infra-toolkit /busybox/busybox /bin/sh
Expand Down Expand Up @@ -188,7 +188,7 @@ RUN sh -c 'i=0; while read DIR; do\
done < /root/dir_abs.list'

# Remove write utils
RUN rm ln rm mv
RUN rm ln rm mv mkdir dirname

# Install trusted CA certificates
COPY --from=alpine-3 /etc/ssl/cert.pem /etc/ssl/cert.pem
Expand Down
4 changes: 2 additions & 2 deletions dockerfile/cosmos/localcross.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ LABEL org.opencontainers.image.source="https://github.com/strangelove-ventures/h
WORKDIR /bin

# Install ln (for making hard links) and rm (for cleanup) from full busybox image (will be deleted, only needed for image assembly)
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm ./
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm /bin/mkdir /bin/dirname ./

# Install minimal busybox image as shell binary (will create hardlinks for the rest of the binaries to this data)
COPY --from=infra-toolkit /busybox/busybox /bin/sh
Expand Down Expand Up @@ -196,7 +196,7 @@ RUN sh -c 'i=0; while read DIR; do\
done < /root/dir_abs.list'

# Remove write utils
RUN rm ln rm mv
RUN rm ln rm mv mkdir dirname

# Install chain binaries
COPY --from=build-env /root/bin /bin
Expand Down
4 changes: 2 additions & 2 deletions dockerfile/cosmos/native.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ LABEL org.opencontainers.image.source="https://github.com/strangelove-ventures/h
WORKDIR /bin

# Install ln (for making hard links) and rm (for cleanup) from full busybox image (will be deleted, only needed for image assembly)
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm ./
COPY --from=busybox-full /bin/ln /bin/mv /bin/rm /bin/mkdir /bin/dirname ./

# Install minimal busybox image as shell binary (will create hardlinks for the rest of the binaries to this data)
COPY --from=infra-toolkit /busybox/busybox /bin/sh
Expand Down Expand Up @@ -174,7 +174,7 @@ RUN sh -c 'i=0; while read DIR; do\
done < /root/dir_abs.list'

# Remove write utils
RUN rm ln rm mv
RUN rm ln rm mv mkdir dirname

# Install chain binaries
COPY --from=build-env /root/bin /bin
Expand Down

0 comments on commit f401f0c

Please sign in to comment.