Skip to content

Commit

Permalink
remove entrypoint patching
Browse files Browse the repository at this point in the history
  • Loading branch information
aussielunix committed Jun 5, 2024
1 parent dddadfd commit 511e0c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ RUN cat /aussielunix_Root_CA_168848365996868199089383065266162030969.crt >> /etc
&& rm -f /aussielunix_Root_CA_168848365996868199089383065266162030969.crt

# Patch /usr/bin/entrypoint
RUN sed -i '/missing_packages=0/,/# Workaround for when sudo is missing,/ s/^/#/' /usr/bin/entrypoint && \
sed -i '/elif command -v apt-get/,/# Set SHELL to the install path inside the container/ s/^/#/' /usr/bin/entrypoint && \
sed -i '/# Set SHELL to the install path inside the container/a touch /.containersetupdone' /usr/bin/entrypoint
#RUN sed -i '/missing_packages=0/,/# Workaround for when sudo is missing,/ s/^/#/' /usr/bin/entrypoint && \
# sed -i '/elif command -v apt-get/,/# Set SHELL to the install path inside the container/ s/^/#/' /usr/bin/entrypoint && \
# sed -i '/# Set SHELL to the install path inside the container/a touch /.containersetupdone' /usr/bin/entrypoint

# Use and configure bash, retrieve bash-prexec
RUN curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o /tmp/bash-prexec && \
Expand Down

0 comments on commit 511e0c6

Please sign in to comment.