Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 3d0b15f

Browse files
Add Devcontainer README.md (#58)
Add some docs about how to use Devcontainer and VSCode in case any of us find it useful --------- Signed-off-by: Carlos Feria <2582866+carlosthe19916@users.noreply.github.com>
1 parent 6b77d7d commit 3d0b15f

File tree

2 files changed

+44
-10
lines changed

2 files changed

+44
-10
lines changed

.devcontainer/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Devcontainers
2+
3+
Use [Devcontainers](https://code.visualstudio.com/docs/devcontainers/containers) to prepare a fully automated working environment.
4+
5+
Generate the `devcontainer.json` executing:
6+
7+
```shell
8+
cd .devcontainer
9+
./generate_devcontainer.sh
10+
```
11+
12+
Now you should see the file `.devcontainer/devcontainer.json`. At this point you can use your favorite IDE to run Devcontainers
13+
14+
## VSCode
15+
16+
Install the extension https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
17+
18+
To open the repository with DevContainers do `Ctrl + Shift + P` and enter `Dev Containers: Rebuild and Reopen in Container`. For more options see the Extension documentations.
19+
20+
### Docker
21+
22+
Docker defaults should work fine therefore there is nothing to do.
23+
24+
### Podman
25+
26+
Start Podman service for a regular user (rootless) and make it listen to a socket:
27+
28+
```shell
29+
systemctl --user enable --now podman.socket
30+
```
31+
32+
Restart your OS if necessary and verify that podman listens:
33+
34+
```shell
35+
systemctl --user status podman.socket
36+
```
37+
38+
Go to the Extension Settings:
39+
40+
- `Dev › Containers: Docker Compose Path` set `podman-compose`
41+
- `Dev › Containers: Docker Path` set `podman`
42+
- `Dev › Containers: Docker Socket Path` set `/run/podman/podman.sock`

.devcontainer/template.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "trustify-ui-tests",
2+
"name": "trustify-tests",
33
"build": {
44
"dockerfile": "Dockerfile"
55
},
@@ -25,20 +25,12 @@
2525
"label": "real vnc"
2626
}
2727
},
28-
"onCreateCommand": "npx playwright install-deps && npx playwright install",
29-
"postCreateCommand": "npm ci",
3028
"customizations": {
3129
"vscode": {
3230
"extensions": [
33-
"k--kato.intellij-idea-keybindings",
34-
"vadimcn.vscode-lldb",
3531
"ms-playwright.playwright",
3632
"alexkrechik.cucumberautocomplete",
37-
"github.vscode-pull-request-github",
38-
"GitHub.github-vscode-theme",
39-
"esbenp.prettier-vscode",
40-
"oderwat.indent-rainbow",
41-
"eamodio.gitlens"
33+
"esbenp.prettier-vscode"
4234
]
4335
}
4436
}

0 commit comments

Comments
 (0)