Skip to content

Commit

Permalink
Propose devcontainer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyb3r-Jak3 committed May 29, 2023
1 parent e78a02c commit 1bcd014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ RUN apt-get update -y && apt-get install -y lsb-release
RUN wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list
RUN apt-get update -y && apt-get install -y terraform jq curl
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" && echo "$SNIPPET" >> "/root/.bashrc"
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"remoteEnv": {
"GOPATH": "${containerEnv:GOPATH}"
},
"mounts": [
"source=terraform-provider-cloudflare-bashhistory,target=/commandhistory,type=volume"
],
"updateContentCommand": "go generate -tags tools tools/tools.go",
"customizations": {
"vscode": {
Expand Down

0 comments on commit 1bcd014

Please sign in to comment.