Skip to content

Commit e47551e

Browse files
authored
Merge pull request #41 from thediveo/develop
chore: devcontainer, gh action pinning, readmes and notes
2 parents cb4fb8a + 23afcd9 commit e47551e

14 files changed

Lines changed: 61 additions & 25 deletions

File tree

‎.devcontainer/devcontainer.json‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
"name": "TheDiveO's devcontainer features",
33
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
44
"features": {
5-
"ghcr.io/thediveo/devcontainer-features/pinact:0": {},
5+
"ghcr.io/thediveo/devcontainer-features/lazygit:0": {},
6+
"ghcr.io/thediveo/devcontainer-features/pinact:0": {},
67
"ghcr.io/devcontainers/features/node:2": {},
7-
"./devcontainers-cli": {},
8-
"ghcr.io/devcontainers/features/docker-in-docker:3": {
8+
"./devcontainers-cli": {}, // installs devcontainer CLI, needs some node
9+
"ghcr.io/devcontainers/features/docker-in-docker:4": {
910
"version": "latest",
1011
"moby": false // go for the upstream Docker-CE
1112
},

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
packages: write
1515

1616
steps:
17-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1818

1919
- name: "publish Features"
2020
uses: devcontainers/action@1082abd5d2bf3a11abccba70eef98df068277772 # v1.4.3

‎.github/workflows/test.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
baseImage:
3333
- mcr.microsoft.com/devcontainers/base:ubuntu
3434
steps:
35-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3636

3737
- name: "install latest devcontainer CLI"
3838
run: npm install -g @devcontainers/cli@0.84.1

‎.github/workflows/validate.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
validate:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
11+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
1212

1313
- name: "validate devcontainer-feature.json files"
1414
uses: devcontainers/action@1082abd5d2bf3a11abccba70eef98df068277772 # v1.4.3

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Container feature that also doesn't support Alpine.
4040
upstream https://github.com/containernetworking/plugins binary releases.
4141

4242
- [docsify](src/docsify/README.md) – automatically serves ./docs workspace
43-
directory via `docsify serve` in the background (with the specific workspace
43+
directory via `browser-sync` in the background (with the specific workspace
4444
location being configurable).
4545

4646
- [gcx](src/gcx/README.md) – installs `gcx` directly from upstream

‎src/docsify/NOTES.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
## Feature Dependency
2+
3+
This feature has a soft dependency on `ghcr.io/devcontainers/features/node` –
4+
depending on you base image you already have a suitable node, otherwise you
5+
might want to also reference the above node feature.
6+
7+
For example:
8+
9+
```json
10+
{
11+
"features": {
12+
"ghcr.io/devcontainers/features/node:2": {}, // unless base image has node
13+
"ghcr.io/thediveo/devcontainer-features/docsify:1": {}
14+
}
15+
}
16+
```
17+
118
## Docs Directory
219

320
If the directory configured in the `docs-path` option does not exist, it is

‎src/docsify/README.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ Automatically serves ./docs (or another) workspace directory via 'browser-sync'
2020
| reload-delay | time in milliseconds to delay the reload event following file changes | string | 2000 |
2121
| reload-debounce | time in milliseconds to restrict the frequency in which browser:reload events can be emitted to connected clients | string | 5000 |
2222

23+
## Feature Dependency
24+
25+
This feature has a soft dependency on `ghcr.io/devcontainers/features/node` –
26+
depending on you base image you already have a suitable node, otherwise you
27+
might want to also reference the above node feature.
28+
29+
For example:
30+
31+
```json
32+
{
33+
"features": {
34+
"ghcr.io/devcontainers/features/node:2": {}, // unless base image has node
35+
"ghcr.io/thediveo/devcontainer-features/docsify:1": {}
36+
}
37+
}
38+
```
39+
2340
## Docs Directory
2441

2542
If the directory configured in the `docs-path` option does not exist, it is

‎src/docsify/devcontainer-feature.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "docsify server",
33
"id": "docsify",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"description": "Automatically serves ./docs (or another) workspace directory via 'browser-sync' in the background.",
66
"options": {
77
"port": {

‎src/local-pkgsite/NOTES.md‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
## Feature Dependency
22

3-
This feature has only a soft dependecy on `ghcr.io/devcontainers/features/go` so
4-
that you have full control over from where and how you bring in the go
5-
toolchain.
3+
This feature has a soft dependecy on `ghcr.io/devcontainers/features/go` so that
4+
you have full control over from where and how you bring in the go toolchain.
65

76
Similar, it has a soft dependency on `ghcr.io/devcontainers/features/node` –
87
depending on you base image you already have a suitable node, otherwise you
9-
might want to use the aforementioned node feature.
8+
might want to also reference the above node feature.
109

1110
For example:
1211

1312
```json
1413
{
1514
"features": {
1615
"ghcr.io/devcontainers/features/go:1": {},
17-
"ghcr.io/devcontainers/features/node:2": {}, // optional
16+
"ghcr.io/devcontainers/features/node:2": {}, // unless base image has node
1817
"ghcr.io/thediveo/devcontainer-features/local-pkgsite:1": {}
1918
}
2019
}

‎src/local-pkgsite/README.md‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@ A local Go pkgsite serving the module documentation, with automatic browser refr
2121

2222
## Feature Dependency
2323

24-
This feature has only a soft dependecy on `ghcr.io/devcontainers/features/go` so
25-
that you have full control over from where and how you bring in the go
26-
toolchain.
24+
This feature has a soft dependecy on `ghcr.io/devcontainers/features/go` so that
25+
you have full control over from where and how you bring in the go toolchain.
2726

2827
Similar, it has a soft dependency on `ghcr.io/devcontainers/features/node` –
2928
depending on you base image you already have a suitable node, otherwise you
30-
might want to use the aforementioned node feature.
29+
might want to also reference the above node feature.
3130

3231
For example:
3332

3433
```json
3534
{
3635
"features": {
3736
"ghcr.io/devcontainers/features/go:1": {},
38-
"ghcr.io/devcontainers/features/node:2": {}, // optional
37+
"ghcr.io/devcontainers/features/node:2": {}, // unless base image has node
3938
"ghcr.io/thediveo/devcontainer-features/local-pkgsite:1": {}
4039
}
4140
}

0 commit comments

Comments
 (0)