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
2
2
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
19
6
20
7
# 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 6
6
"context" : " .."
7
7
},
8
8
"postCreateCommand" : {
9
- "Fix Volume Permissions" : " sudo chown -R $(whoami): /commandhistory"
9
+ "Fix Volume Permissions" : " chown -R $(whoami): /commandhistory"
10
10
},
11
- "postAttachCommand" : " bash" ,
12
11
"mounts" : [
13
12
{
14
13
"source" : " ${localEnv:SSH_AUTH_SOCK}" ,
You can’t perform that action at this time.
0 commit comments