File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,5 +201,7 @@ ENV TERM=xterm-256color
201201# Entrypoint must run as root to modify the user
202202COPY entrypoint.sh /entrypoint.sh
203203USER root
204+ WORKDIR /home/${USERNAME}/mnt
205+ ENV MNT=/home/${USERNAME}/mnt
204206ENTRYPOINT ["/entrypoint.sh" ]
205207CMD ["/bin/zsh" ]
Original file line number Diff line number Diff line change 11build :
2- docker buildx build --progress=plain -t rgpeach10/ shell :local . --load
2+ docker buildx build --progress=plain -t rgpeach10/ shell :local --no-cache . --load
33
44run-local :
55 docker run -it --rm \
Original file line number Diff line number Diff line change @@ -37,12 +37,9 @@ Create a `~/.docker-shell.sh` file with the following contents:
3737#! /usr/bin/env bash
3838
3939docker run -it --rm \
40- -v $HOME /.ssh:/home/root/.ssh \
41- -v $HOME :/home/root/mnt \
40+ -v $HOME :/home/rgpeach10/mnt \
4241 -v /var/run/docker.sock:/var/run/docker.sock \
43- -w /home/root/mnt \
4442 -e GITHUB_TOKEN=$( gh auth token) \
45- -e MNT=/home/rgpeach10/mnt \
4643 --pull=always \
4744 rgpeach10/shell:main
4845```
Original file line number Diff line number Diff line change 33
44TARGET_UID=${TARGET_UID:- 1000}
55TARGET_GID=${TARGET_GID:- 1000}
6- USERNAME=rgpeach10
6+ USERNAME=${USERNAME :- rgpeach10}
77
88CURRENT_UID=$( id -u " $USERNAME " )
99CURRENT_GID=$( id -g " $USERNAME " )
You can’t perform that action at this time.
0 commit comments