Skip to content

Commit

Permalink
feat: add java dev container (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
darmalovan authored Jan 23, 2024
1 parent 665c25a commit a34913e
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 83 deletions.
42 changes: 0 additions & 42 deletions .devcontainer/devcontainer.json

This file was deleted.

29 changes: 0 additions & 29 deletions .devcontainer/open_port.sh

This file was deleted.

9 changes: 0 additions & 9 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ echo "export CODESPACE_BACKEND_HOST=\"${CODESPACE_BACKEND_HOST}\"" >> ~/.bashrc
echo "export CODESPACE_BACKEND_URL=\"${CODESPACE_BACKEND_URL}\"" >> ~/.bashrc
echo "export CODESPACE_WDS_SOCKET_PORT=443" >> ~/.bashrc


# Change backend port visibility to public
echo "(&>/dev/null .devcontainer/open_port.sh &)" >> ~/.bashrc


# Export welcome prompt in bash:
echo "printf \"\n\n☁️☁️☁️️ Anythink: Develop in the Cloud ☁️☁️☁️\n\"" >> ~/.bashrc
echo "printf \"\n=============================================\n\"" >> ~/.bashrc
echo "gh codespace ports -c $CODESPACE_NAME" >> ~/.bashrc
echo "printf \"=============================================\n\"" >> ~/.bashrc
echo "printf \"(Once docker-compose is up and running, you can access the frontend and backend using the above urls)\n\"" >> ~/.bashrc
echo "printf \"\n\x1b[31m \x1b[1m👉 Type: \\\`docker compose up\\\` to run the project. 👈\n\n\"" >> ~/.bashrc
4 changes: 4 additions & 0 deletions .framework/java/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Anythink Development Container",
"image": "public.ecr.aws/v0a2l7y2/wilco/anythink-devcontainer-java:latest"
}
4 changes: 4 additions & 0 deletions .framework/node/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Anythink Development Container",
"image": "public.ecr.aws/v0a2l7y2/wilco/anythink-devcontainer:latest"
}
4 changes: 4 additions & 0 deletions .framework/python/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Anythink Development Container",
"image": "public.ecr.aws/v0a2l7y2/wilco/anythink-devcontainer:latest"
}
4 changes: 4 additions & 0 deletions .framework/rails/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Anythink Development Container",
"image": "public.ecr.aws/v0a2l7y2/wilco/anythink-devcontainer:latest"
}
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ When implementing a new feature or fixing a bug, please create a new pull reques
## How to run in dev mode?

### Using Codespace
1. run `docker-compose up`
1. run `docker compose up`
### On your local machine
1. [Install Docker](https://docs.docker.com/get-docker/)
2. [Install Docker Compose](https://docs.docker.com/compose/install/)
3. Run `docker-compose up`.
3. Run `docker compose up`.

## Tests
Documentation about running the End to End test can be found under the `/tests` directory
Documentation about running the End to End test can be found under the `/tests` directory

0 comments on commit a34913e

Please sign in to comment.