Skip to content

Commit

Permalink
fix: #17 allow to use init_busybox.sh as an entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Nov 9, 2024
1 parent 23d7687 commit b7451ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ WORKDIR /ptah
COPY bin/ ./bin
COPY lib/ ./lib

RUN chmod +x ./bin/* && \
echo '/ptah/bin/init_busybox.sh' >> /root/.bashrc
RUN chmod +x ./bin/*

ENV PATH="/ptah/bin:${PATH}"
4 changes: 4 additions & 0 deletions bin/init_busybox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

echo "Initializing Busybox"

# Source the shared library
. "$(dirname "$0")/../lib/validate.sh"

Expand All @@ -21,3 +23,5 @@ echo "$PTAH_SSH_PRIVATE_KEY" > ~/.ssh/id_rsa

chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub

exec "$@"

0 comments on commit b7451ea

Please sign in to comment.