Small changes on debug container
This commit is contained in:
@@ -50,7 +50,7 @@ tofu apply --refresh=false
|
||||
### Run interactive container
|
||||
|
||||
```shell
|
||||
kubectl run -i --tty --rm debug --image=harbor.prod.eis-mk8.de.s5b.org/internal/debug-container:latest --restart=Never -- sh
|
||||
kubectl run -i --tty --rm debug --image=harbor.prod.eis-mk8.de.s5b.org/internal/debug-container:latest --restart=Never -- /usr/bin/zsh
|
||||
```
|
||||
|
||||
If the container is not automatically removed, use
|
||||
|
||||
@@ -2,12 +2,12 @@ FROM harbor.prod.eis-mk8.de.s5b.org/proxy-mcr.microsoft.com/devcontainers/base:t
|
||||
|
||||
ARG USERNAME=vscode
|
||||
|
||||
# Install important packages and set login shell to zsh
|
||||
RUN apt-get update && apt -y dist-upgrade && apt-get -y install mtr-tiny iproute2 whois tcpdump vim zsh && chsh -s /usr/bin/zsh root && chsh -s /usr/bin/zsh vscode
|
||||
|
||||
# Default powerline10k theme, no plugins installed
|
||||
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)"
|
||||
|
||||
# Install important packages
|
||||
RUN apt-get update && apt-get -y install mtr-tiny iproute2 whois tcpdump vim
|
||||
|
||||
# Used to persist bash history as per https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history
|
||||
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
|
||||
&& mkdir /commandhistory \
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
docker build -t harbor.prod.eis-mk8.de.s5b.org/internal/debug-container:latest .
|
||||
|
||||
docker push harbor.prod.eis-mk8.de.s5b.org/internal/debug-container:latest
|
||||
docker build -t harbor.prod.eis-mk8.de.s5b.org/internal/debug-container:latest . &&
|
||||
docker push harbor.prod.eis-mk8.de.s5b.org/internal/debug-container:latest
|
||||
|
||||
Reference in New Issue
Block a user