Skip to content

Commit 2b46c04

Browse files
committed
Use ghcr.io/devture/ansible image
1 parent d640780 commit 2b46c04

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
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"

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
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}",

0 commit comments

Comments
 (0)