mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-07-17 15:26:41 +00:00
Merge pull request #4365 from jonaharagon/devcontainer
Add devcontainer config
This commit is contained in:
@@ -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"
|
||||||
@@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user