Skip to content

Commit fa73d51

Browse files
committed
Add Dockerfile and devcontainer.json for Ubuntu development environment
1 parent a053360 commit fa73d51

File tree

4 files changed

+106
-21
lines changed

4 files changed

+106
-21
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM mcr.microsoft.com/devcontainers/base:jammy
2+
3+
# config fish as default shell
4+
RUN chsh -s /usr/bin/fish
5+
6+
# install oh-my-fish
7+
RUN curl -L https://get.oh-my.fish | fish
8+
9+
RUN omf theme agnoster
10+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3+
{
4+
"name": "Ubuntu",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
// "image": "mcr.microsoft.com/devcontainers/base:jammy",
7+
"build": {
8+
// Path is relative to the devcontainer.json file.
9+
"dockerfile": "Dockerfile"
10+
},
11+
"features": {
12+
"ghcr.io/devcontainers/features/common-utils": {},
13+
14+
"ghcr.io/devcontainers/features/node:1": {
15+
"nodeGypDependencies": true,
16+
"version": "lts",
17+
"nvmVersion": "latest"
18+
},
19+
"ghcr.io/devcontainers/features/python:1": {
20+
"version": "3.10"
21+
},
22+
"ghcr.io/tailscale/codespace/tailscale": {},
23+
"ghcr.io/devcontainers/features/rust:1": {},
24+
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {},
25+
"ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {},
26+
"ghcr.io/devcontainers/features/sshd:1": {
27+
"version": "latest"
28+
},
29+
"ghcr.io/devcontainers/features/git:1": {
30+
"version": "latest",
31+
"ppa": "false"
32+
},
33+
"ghcr.io/devcontainers/features/git-lfs:1": {
34+
"version": "latest"
35+
},
36+
"ghcr.io/devcontainers/features/github-cli:1": {
37+
"version": "latest"
38+
},
39+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
40+
"version": "latest"
41+
},
42+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
43+
"version": "latest"
44+
},
45+
"ghcr.io/devcontainers/features/go:1": {
46+
"version": "latest"
47+
}
48+
},
49+
"runArgs": ["--device=/dev/net/tun"]
50+
51+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
52+
// "forwardPorts": [],
53+
54+
// Use 'postCreateCommand' to run commands after the container is created.
55+
// "postCreateCommand": "uname -a",
56+
57+
// Configure tool-specific properties.
58+
// "customizations": {},
59+
60+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
61+
// "remoteUser": "root"
62+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly
Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/universal
33
{
4-
"name": "Default Linux Universal",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
7-
"customizations": {
8-
"vscode": {
9-
"extensions": [
10-
"npv2k1.theme-dracula-gray",
11-
"ms-azuretools.vscode-docker"
12-
]
13-
}
14-
}
4+
"name": "Default Linux Universal",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
// "image": "mcr.microsoft.com/devcontainers/universal:2-linux",
7+
"build": {
8+
// Path is relative to the devcontainer.json file.
9+
"dockerfile": "Dockerfile"
10+
},
11+
"customizations": {
12+
"vscode": {
13+
"extensions": ["npv2k1.theme-dracula-gray", "ms-azuretools.vscode-docker"]
14+
}
15+
}
1516

16-
// Features to add to the dev container. More info: https://containers.dev/features.
17-
// "features": {},
17+
// Features to add to the dev container. More info: https://containers.dev/features.
18+
// "features": {},
1819

19-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20-
// "forwardPorts": [],
20+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
21+
// "forwardPorts": [],
2122

22-
// Use 'postCreateCommand' to run commands after the container is created.
23-
// "postCreateCommand": "uname -a",
23+
// Use 'postCreateCommand' to run commands after the container is created.
24+
// "postCreateCommand": "uname -a",
2425

25-
// Configure tool-specific properties.
26-
// "customizations": {},
26+
// Configure tool-specific properties.
27+
// "customizations": {},
2728

28-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
29-
// "remoteUser": "root"
29+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
30+
// "remoteUser": "root"
3031
}

0 commit comments

Comments
 (0)