Skip to content

Commit

Permalink
Merge pull request #16 from codersforcauses/issue/NONE-improvements
Browse files Browse the repository at this point in the history
issue/NONE improvements
  • Loading branch information
frinzekt authored Oct 28, 2024
2 parents c399a79 + 52c2faa commit f164ada
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 8000, 8080]
"forwardPorts": [3000, 8000, 8080],

// Use 'postCreateCommand' to run commands after the container is created.
// Note: Useful for when they open it and want everything to just start
// "postCreateCommand": "docker compose up -d && yarn dev"

"onCreateCommand": "git config --global --add safe.directory ."
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This is the repository that contains the automated development environment setup

## CFC-Devenv

[![Open in Remote - Containers](https://img.shields.io/static/v1?label=Remote%20-%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/codersforcauses/automated-setup)

CFC-Devenv, also known as "Coders for Causes - Developer Environment" is the automated development environment setup for Coders For Causes developer machine.

With only having 2 prerequisite:
Expand Down Expand Up @@ -31,6 +33,11 @@ To use this, do the following:

or just open the command palette and type "Reopen in Container".

Example of how we use this:

- see [django-nextjs-template](https://github.com/codersforcauses/django-nextjs-template).
- see [django-workshop](https://github.com/CodersforLearning/django-workshop-winter-2024)

### Setups

There's a folder called `cfc-devenv-base` that defines the base image for development environment. We prebuild this image in the CI (github actions), the reason why we do this is so that the developer environment just gets downloaded rather than built in the developer machine.
Expand Down
5 changes: 4 additions & 1 deletion cfc-devenv-base/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@
"YoavBls.pretty-ts-errors",
"meganrogge.template-string-converter",
"yoavbls.pretty-ts-errors",
"cweijan.vscode-database-client2"
"cweijan.vscode-database-client2",
// For debuggers
"ms-vscode.js-debug",
"ms-python.debugpy"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
Expand Down

0 comments on commit f164ada

Please sign in to comment.