Skip to content

Commit

Permalink
feat: add cd to exercise directory
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Lauber <[email protected]>
  • Loading branch information
janlauber committed Nov 6, 2023
1 parent 583c6d2 commit fac99ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ RUN echo 'export PS1="\[\033[01;34m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\
RUN mkdir -p /home/kubelab-agent/exercise
RUN chown kubelab-agent:kubelab-agent /home/kubelab-agent/exercise

# /home/kubelab-agent/exercise should be the default entrypoint
RUN echo 'cd /home/kubelab-agent/exercise' >>/home/kubelab-agent/.bashrc

ENV WORKDIR=/app
USER kubelab-agent
ENTRYPOINT ["/app/kubelab-agent"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Installed tools:
- bash-completion
- podman

It executes a script from `/home/kubelab-agent/check.sh` when `GET /check` is called.
It executes a script from `/scripts/check.sh` when `GET /check` is called.
2 changes: 1 addition & 1 deletion cmd/kubelab-agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var conf = config.Map{
Shorthand: "p",
},
"workdir": &config.String{
Default: "./exercise",
Default: ".",
Usage: "working directory",
Shorthand: "w",
},
Expand Down

0 comments on commit fac99ed

Please sign in to comment.