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
"mounts": [ | |
"source=project_name-bash_history,target=/commandhistory,type=volume", | |
], |
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 SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \ | |
&& mkdir /commandhistory \ | |
&& touch /commandhistory/.bash_history \ | |
&& chown -R $USERNAME /commandhistory \ | |
&& echo $SNIPPET >> "/home/$USERNAME/.bashrc" |
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
&& apt-get install -y sudo \ | |
&& echo $USERNAME ALL=\(root\) NOPASSWD:/usr/sbin/foo > /etc/sudoers.d/$USERNAME \ | |
&& chmod 0440 /etc/sudoers.d/$USERNAME |
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
ARG USERNAME=cfn_nag_dev | |
ARG USER_UID=1000 | |
ARG USER_GID=$USER_UID | |
RUN groupadd --gid $USER_GID $USERNAME \ | |
&& useradd --uid $USER_UID --gid $USER_GID --shell /bin/bash -m $USERNAME |
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
"remote.containers.workspaceMountConsistency": "consistent", |
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": "Ruby Development", | |
"dockerFile": "Dockerfile", | |
"appPort": 9001, | |
"extensions": [ | |
"rebornix.Ruby" | |
], | |
"settings": { | |
"[ruby]": { | |
"editor.insertSpaces": true, |
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
. | |
├── .devcontainer | |
│ ├── .devcontainer.json | |
│ └── Dockerfile | |
├── Gemfile | |
├── Gemfile.lock | |
├── LICENSE.md | |
├── README.md | |
├── bin | |
│ └── foo |
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
{ | |
"postCreateCommand": "bundle install" | |
} |
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
{ | |
"extensions": [ | |
"redhat.vscode-yaml" | |
], | |
"settings": { | |
"yaml.format.singleQuote": true, | |
"yaml.customTags": [ | |
"!And sequence", | |
"!Cidr sequence", | |
"!Equals sequence", |
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
{ | |
"settings": { | |
"[ruby]": { | |
"editor.insertSpaces": true, | |
"editor.tabSize": 2 | |
}, | |
"[yaml]": { | |
"editor.insertSpaces": true, | |
"editor.tabSize": 2 | |
}, |