Skip to content

Commit 2f7aaa2

Browse files
authored
Merge pull request #10 from github/update-container
Fixes dev container
2 parents 11ebcb0 + a52bcc2 commit 2f7aaa2

File tree

5 files changed

+67
-25
lines changed

5 files changed

+67
-25
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,6 @@ COPY environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
77
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml; fi \
88
&& rm -rf /tmp/conda-tmp
99

10-
# Setup for dotnet installation
11-
RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
12-
RUN dpkg -i packages-microsoft-prod.deb
13-
RUN rm packages-microsoft-prod.deb
14-
15-
# Install dotnet
16-
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
17-
&& apt-get -y install --no-install-recommends dotnet-sdk-8.0
18-
19-
# Setup for node installation
20-
RUN apt-get update
21-
RUN apt-get install -y ca-certificates curl gnupg
22-
RUN mkdir -p /etc/apt/keyrings
23-
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
24-
25-
# Set node version (change as needed)
26-
ENV NODE_MAJOR 20
27-
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
28-
29-
# Install node
30-
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
31-
&& apt-get -y install --no-install-recommends nodejs
10+
# [Optional] Uncomment this section to install additional OS packages.
11+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
12+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,49 @@
66
"service": "app",
77
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
88
"features": {
9+
"ghcr.io/devcontainers/features/dotnet:2": {
10+
"version": "latest"
11+
},
12+
"ghcr.io/devcontainers/features/java:1": {
13+
"installGradle": true,
14+
"installMaven": true,
15+
"version": "latest",
16+
"jdkDistro": "ms",
17+
"gradleVersion": "latest",
18+
"mavenVersion": "3.8.6",
19+
"antVersion": "latest",
20+
"groovyVersion": "4.0.16"
21+
},
22+
"ghcr.io/devcontainers/features/node:1": {
23+
"nodeGypDependencies": true,
24+
"version": "lts",
25+
"nvmVersion": "latest"
26+
}
927
},
1028

1129
// Features to add to the dev container. More info: https://containers.dev/features.
1230
// "features": {},
1331

1432
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15-
"forwardPorts": [5432, 3000, 5000, 8000, 8080],
33+
"forwardPorts": [5432, 5000, 3000, 8000, 8080],
1634

1735
// Use 'postCreateCommand' to run commands after the container is created.
18-
"postCreateCommand": "nvm install --lts"
36+
// "postCreateCommand": "python --version",
1937

2038
// Configure tool-specific properties.
21-
// "customizations": {},
39+
"customizations": {
40+
"vscode": {
41+
"extensions": [
42+
"GitHub.copilot",
43+
"GitHub.copilot-chat",
44+
"ms-python.vscode-pylance",
45+
"ms-toolsai.jupyter",
46+
"ms-dotnettools.csdevkit",
47+
"vscjava.vscode-maven",
48+
"vscjava.vscode-gradle",
49+
]
50+
}
51+
},
2252

2353
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
2454
// "remoteUser": "root"

.github/dependabot.yml

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

microsoft.asc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
-----BEGIN PGP PUBLIC KEY BLOCK-----
2+
Version: GnuPG v1.4.7 (GNU/Linux)
3+
4+
mQENBFYxWIwBCADAKoZhZlJxGNGWzqV+1OG1xiQeoowKhssGAKvd+buXCGISZJwT
5+
LXZqIcIiLP7pqdcZWtE9bSc7yBY2MalDp9Liu0KekywQ6VVX1T72NPf5Ev6x6DLV
6+
7aVWsCzUAF+eb7DC9fPuFLEdxmOEYoPjzrQ7cCnSV4JQxAqhU4T6OjbvRazGl3ag
7+
OeizPXmRljMtUUttHQZnRhtlzkmwIrUivbfFPD+fEoHJ1+uIdfOzZX8/oKHKLe2j
8+
H632kvsNzJFlROVvGLYAk2WRcLu+RjjggixhwiB+Mu/A8Tf4V6b+YppS44q8EvVr
9+
M+QvY7LNSOffSO6Slsy9oisGTdfE39nC7pVRABEBAAG0N01pY3Jvc29mdCAoUmVs
10+
ZWFzZSBzaWduaW5nKSA8Z3Bnc2VjdXJpdHlAbWljcm9zb2Z0LmNvbT6JATUEEwEC
11+
AB8FAlYxWIwCGwMGCwkIBwMCBBUCCAMDFgIBAh4BAheAAAoJEOs+lK2+EinPGpsH
12+
/32vKy29Hg51H9dfFJMx0/a/F+5vKeCeVqimvyTM04C+XENNuSbYZ3eRPHGHFLqe
13+
MNGxsfb7C7ZxEeW7J/vSzRgHxm7ZvESisUYRFq2sgkJ+HFERNrqfci45bdhmrUsy
14+
7SWw9ybxdFOkuQoyKD3tBmiGfONQMlBaOMWdAsic965rvJsd5zYaZZFI1UwTkFXV
15+
KJt3bp3Ngn1vEYXwijGTa+FXz6GLHueJwF0I7ug34DgUkAFvAs8Hacr2DRYxL5RJ
16+
XdNgj4Jd2/g6T9InmWT0hASljur+dJnzNiNCkbn9KbX7J/qK1IbR8y560yRmFsU+
17+
NdCFTW7wY0Fb1fWJ+/KTsC4=
18+
=J6gs
19+
-----END PGP PUBLIC KEY BLOCK-----

microsoft.asc.gpg

641 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)