Jonah Aragon hace 3 semanas
committed by GitHub
padre
commit
0be8259feb
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 2 ficheros con 37 adiciones y 0 borrados
  1. +9
    -0
      .devcontainer/Dockerfile
  2. +28
    -0
      .devcontainer/devcontainer.json

+ 9
- 0
.devcontainer/Dockerfile Ver fichero

@@ -0,0 +1,9 @@
FROM ghcr.io/devture/ansible:11.1.0-r0-0

# Install additional packages
RUN apk add --no-cache \
pwgen

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

+ 28
- 0
.devcontainer/devcontainer.json Ver fichero

@@ -0,0 +1,28 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "matrix-docker-ansible-deploy",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"postCreateCommand": {
"Fix Volume Permissions": "chown -R $(whoami): /commandhistory"
},
"mounts": [
{
"source": "matrix-docker-ansible-deploy-bashhistory",
"target": "/commandhistory",
"type": "volume"
}
],
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"redhat.ansible",
"redhat.vscode-yaml",
"ms-python.python"
]
}
}
}

Cargando…
Cancelar
Guardar