View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM stelligent/vscode-remote-cfn_nag:latest |
View GitHub-workflow.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: VS Code DockerHub Build & Push | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- '.devcontainer/build/Dockerfile' | |
jobs: |
View devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
"runArgs": [ | |
// SSH | |
"-v", "${localEnv:HOME}/.ssh:/home/project_user_name/.ssh:ro", | |
// GPG | |
"-v", "${localEnv:HOME}/.gnupg/private-keys-v1.d:/home/project_user_name/.gnupg/private-keys-v1.d:ro", | |
"-v", "${localEnv:HOME}/.gnupg/pubring.kbx:/home/project_user_name/.gnupg/pubring.kbx:ro", | |
"-v", "${localEnv:HOME}/.gnupg/trustdb.gpg:/home/project_user_name/.gnupg/trustdb.gpg:ro" | |
], |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN apt-get install -y gnupg-agent | |
RUN echo 'export GPG_TTY="$(tty)"' >> /home/$USERNAME/.bashrc \ | |
&& mkdir /home/$USERNAME/.gnupg \ | |
&& chown -R $USERNAME /home/$USERNAME/.gnupg |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN apt-get install -y apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common \ | |
lsb-release \ | |
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | apt-key add - 2>/dev/null \ | |
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \ | |
&& apt-get update \ | |
&& apt-get install -y docker-ce-cli |
View devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"mounts": [ | |
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" | |
], |
View devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"containerEnv": { | |
"CUSTOM_VAR": "custom-variable-value", | |
"DYNAMIC_VAR": "${localEnv:LOCAL_VARIABLE}" | |
}, |
View devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"runArgs": [ | |
"-v", "/local/linux/directory:/container/directory" | |
], |
View devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"mounts": [ | |
"source=${localEnv:HOME},target=/home,type=bind" | |
], |
View devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"mounts": [ | |
"source=/LOCAL/PATH/GOES/HERE,target=/CONTAINER/PATH/GOES/HERE,type=bind" | |
], |
NewerOlder