Przeglądaj źródła

Use `ghcr.io/devture/ansible` image

pull/4365/head
Jonah Aragon 7 miesięcy temu
rodzic
commit
4a4ca67465
Nie udało się wyłuskać podpisu
2 zmienionych plików z 7 dodań i 29 usunięć
  1. +6
    -19
      .devcontainer/Dockerfile
  2. +1
    -10
      .devcontainer/devcontainer.json

+ 6
- 19
.devcontainer/Dockerfile Wyświetl plik

@@ -1,22 +1,9 @@
FROM geerlingguy/docker-debian12-ansible:latest
FROM ghcr.io/devture/ansible:11.1.0-r0-0


ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3-passlib \
git \
pwgen \
openssh-client \
curl && \
rm -rf /var/lib/apt/lists/* && \
rm -Rf /usr/share/doc && rm -Rf /usr/share/man && \
apt-get clean

# Install Just
RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
# Install additional packages
RUN apk add --no-cache \
pwgen


# Preserve command history across container restarts # Preserve command history across container restarts
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
&& echo "$SNIPPET" >> "/root/.bashrc"
RUN SNIPPET="export HISTFILE=/commandhistory/.ash_history" \
&& echo "$SNIPPET" >> "/root/.profile"

+ 1
- 10
.devcontainer/devcontainer.json Wyświetl plik

@@ -6,24 +6,15 @@
"context": ".." "context": ".."
}, },
"postCreateCommand": { "postCreateCommand": {
"Fix Volume Permissions": "sudo chown -R $(whoami): /commandhistory"
"Fix Volume Permissions": "chown -R $(whoami): /commandhistory"
}, },
"postAttachCommand": "bash",
"mounts": [ "mounts": [
{
"source": "${localEnv:SSH_AUTH_SOCK}",
"target": "/agent.sock",
"type": "bind"
},
{ {
"source": "matrix-docker-ansible-deploy-bashhistory", "source": "matrix-docker-ansible-deploy-bashhistory",
"target": "/commandhistory", "target": "/commandhistory",
"type": "volume" "type": "volume"
} }
], ],
"containerEnv": {
"SSH_AUTH_SOCK": "/agent.sock"
},
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [


Ładowanie…
Anuluj
Zapisz