Skip to content

Commit f69e9a7

Browse files
feat: Added devcontainer .env
1 parent 3f9d062 commit f69e9a7

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"installGradle": true
1717
}
1818
},
19+
"runArgs": [
20+
"--env-file=${localEnv:HOME}/dev.env"
21+
],
1922
"remoteUser": "ubuntu"
2023
}

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,25 @@ Please use it for being able to tell "It works on my machine".
3030
3131
**Docker is required to be installed on your machine!**
3232
33+
### Create ~/dev.env
34+
35+
The development container is using a local env file on your
36+
host machine for reading e.g. GitHub Tokens, Usernames, Email.
37+
So please make sure it exists with your credentials in `~/dev.env`:
38+
39+
```text
40+
GITHUB_EMAIL=your-mail@your-domain.com
41+
GITHUB_USERNAME=YOUR_GITHUB_USERNAME
42+
GITHUB_TOKEN=ghp_***
43+
```
44+
45+
The `GITHUB_TOKEN` must've set following permission:
46+
47+
- `repo`
48+
- `read:packages`
49+
- `read:user`
50+
- `user:email`
51+
3352
### IntelliJ IDEA
3453

3554
- Open IntelliJ (Welcome screen)

0 commit comments

Comments
 (0)