Skip to content

Commit

Permalink
Merge pull request #32 from mpepping/root-bash-shell
Browse files Browse the repository at this point in the history
Use /bin/bash for the root user (#31)
  • Loading branch information
mpepping authored Nov 20, 2023
2 parents b7c576a + f7fcbcd commit 90f33dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apk add --no-cache \
openssh-client \
openssl \
procps \
shadow \
skopeo \
socat \
sudo \
Expand All @@ -25,7 +26,8 @@ RUN apk add --no-cache \

ADD include/ /

RUN addgroup -g 1000 podshell && \
RUN usermod -s /bin/bash root && \
addgroup -g 1000 podshell && \
adduser -D -u 1000 -G podshell -s /bin/bash -g "Podshell User" podshell && \
su - podshell -c "/usr/local/bin/_add_binenv"

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vim:ft=make:
APP_NAME="shell"
APP_NAME=ghcr.io/mpepping/podshell

# HELP
# This will output the help for each task
Expand All @@ -20,7 +20,7 @@ clean: ## Remove the image
docker rmi $(APP_NAME):latest

start: ## Start the container
docker run -it --rm $(APP_NAME):latest --name podshell
docker run -it --rm --name podshell $(APP_NAME):latest

stop: ## Stop the container
docker rm -f podshell
Expand Down

0 comments on commit 90f33dd

Please sign in to comment.