File tree Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 1- FROM geerlingguy/docker-debian12- ansible:latest
1+ FROM ghcr.io/devture/ ansible:11.1.0-r0-0
22
3- ENV LANG=C.UTF-8
4- ENV LC_ALL=C.UTF-8
5-
6- RUN apt-get update && \
7- apt-get install -y --no-install-recommends \
8- python3-passlib \
9- git \
10- pwgen \
11- openssh-client \
12- curl && \
13- rm -rf /var/lib/apt/lists/* && \
14- rm -Rf /usr/share/doc && rm -Rf /usr/share/man && \
15- apt-get clean
16-
17- # Install Just
18- RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
3+ # Install additional packages
4+ RUN apk add --no-cache \
5+ pwgen
196
207# Preserve command history across container restarts
21- RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history " \
22- && echo "$SNIPPET" >> "/root/.bashrc "
8+ RUN SNIPPET="export HISTFILE=/commandhistory/.ash_history " \
9+ && echo "$SNIPPET" >> "/root/.profile "
Original file line number Diff line number Diff line change 66 "context" : " .."
77 },
88 "postCreateCommand" : {
9- "Fix Volume Permissions" : " sudo chown -R $(whoami): /commandhistory"
9+ "Fix Volume Permissions" : " chown -R $(whoami): /commandhistory"
1010 },
11- "postAttachCommand" : " bash" ,
1211 "mounts" : [
1312 {
1413 "source" : " ${localEnv:SSH_AUTH_SOCK}" ,
You can’t perform that action at this time.
0 commit comments