Skip to content

Commit

Permalink
build(devcontainer): Update Post Start Script (#162)
Browse files Browse the repository at this point in the history
* build(devcontainer): Update Post Start Script

* build: Update rm Command to Ignore Missing File

* build: Rename PostStart Script
  • Loading branch information
jshlbrd authored Apr 16, 2024
1 parent adee026 commit b4e28bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
"postCreateCommand": "bash .devcontainer/post-create.sh",
"postStartCommand": "sh .devcontainer/post_start.sh",
"customizations": {
"vscode": {
"extensions": [
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/post-create.sh

This file was deleted.

2 changes: 2 additions & 0 deletions .devcontainer/post_start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
git config --global --add safe.directory /workspaces/substation
rm -f ~/.docker/config.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ docker run -v $(pwd):/workspaces/substation/ -w /workspaces/substation -v /var/

To try the system locally, run this from the [examples](examples) directory:
```sh
git config --global --add safe.directory /workspaces/substation && \
sh .devcontainer/post_start.sh && \
cd examples && \
make -s quickstart
```

To try the system in the cloud, choose an [AWS example](examples/terraform/aws) to deploy:
```sh
git config --global --add safe.directory /workspaces/substation && \
sh .devcontainer/post_start.sh && \
cd examples && \
aws configure && \
make -s check && \
Expand Down

0 comments on commit b4e28bb

Please sign in to comment.