瀏覽代碼

Merge 4a4ca67465 into 324ff0dff6

undefined
Jonah Aragon 1 月之前
committed by GitHub
父節點
當前提交
0be8259feb
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 2 個檔案被更改,包括 37 行新增0 行删除
  1. +9
    -0
      .devcontainer/Dockerfile
  2. +28
    -0
      .devcontainer/devcontainer.json

+ 9
- 0
.devcontainer/Dockerfile 查看文件

@@ -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 查看文件

@@ -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"
]
}
}
}

Loading…
取消
儲存