1
0
forked from eoeair/cenv

add vscode-extensions & C

This commit is contained in:
ben0i0d 2024-12-06 20:03:07 +08:00
parent 19138cbb5a
commit 1d54976b11
16 changed files with 129 additions and 138 deletions

View File

@ -66,6 +66,18 @@ jobs:
https_proxy=http://192.168.2.2:7890 https_proxy=http://192.168.2.2:7890
tags: eoelab.org:1027/${{ gitea.repository }}:rocm tags: eoelab.org:1027/${{ gitea.repository }}:rocm
C:
runs-on: runner
needs: Base
steps:
- name: checkout code
uses: https://eoelab.org:1027/actions/checkout@v4
- name: c build
uses: https://eoelab.org:1027/actions/build-push-action@v6
with:
context: Program/c
tags: eoelab.org:1027/${{ gitea.repository }}:c
Cpp: Cpp:
runs-on: runner runs-on: runner
needs: Base needs: Base
@ -88,7 +100,7 @@ jobs:
uses: https://eoelab.org:1027/actions/build-push-action@v6 uses: https://eoelab.org:1027/actions/build-push-action@v6
with: with:
context: Program/java/jdk context: Program/java/jdk
tags: eoelab.org:1027/${{ gitea.repository }}:java tags: eoelab.org:1027/${{ gitea.repository }}:jdk
JRE: JRE:
runs-on: runner runs-on: runner
@ -151,6 +163,17 @@ jobs:
context: Program/r context: Program/r
tags: eoelab.org:1027/${{ gitea.repository }}:r tags: eoelab.org:1027/${{ gitea.repository }}:r
MC_BE:
runs-on: runner
needs: Base
steps:
- name: checkout code
uses: https://eoelab.org:1027/actions/checkout@v4
- name: mc_be build
uses: https://eoelab.org:1027/actions/build-push-action@v6
with:
context: GS/mc/be
tags: eoelab.org:1027/${{ gitea.repository }}:mc_be
MC_JRE_8: MC_JRE_8:
runs-on: runner runs-on: runner

1
GS/mc/be/Dockerfile Normal file
View File

@ -0,0 +1 @@
FROM eoelab.org:1027/ben0i0d/cenv:base

View File

View File

@ -0,0 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json.
// For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "c",
"image": "docker.io/ben0i0d/cenv:c",
// Configure vscode-extensions.
"customizations": {
"vscode": {
"extensions": ["formulahendry.code-runner", "ms-vscode.cpptools-extension-pack"]
}
}
}

7
Program/c/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM eoelab.org:1027/ben0i0d/cenv:base
USER root
RUN apt-get update --yes && apt-get install --yes gcc gdb cmake && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR "${HOME}"

View File

@ -1,19 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "cpp", "name": "cpp",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "docker.io/ben0i0d/cenv:cpp" "image": "docker.io/ben0i0d/cenv:cpp",
// Features to add to the dev container. More info: https://containers.dev/features. // Configure vscode-extensions.
// "features": {}, "customizations": {
"vscode": {
// Use 'forwardPorts' to make a list of ports inside the container available locally. "extensions": ["formulahendry.code-runner", "ms-vscode.cpptools-extension-pack"]
// "forwardPorts": [], }
}
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View File

@ -2,6 +2,6 @@ FROM eoelab.org:1027/ben0i0d/cenv:base
USER root USER root
RUN apt-get update --yes && apt-get install --yes --no-install-recommends g++ gdb cmake && apt-get clean && rm -rf /var/lib/apt/lists/* RUN apt-get update --yes && apt-get install --yes g++ gdb cmake && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR "${HOME}" WORKDIR "${HOME}"

View File

@ -1,19 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "java", "name": "java",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "docker.io/ben0i0d/cenv:java" "image": "docker.io/ben0i0d/cenv:java",
// Features to add to the dev container. More info: https://containers.dev/features. // Configure vscode-extensions.
// "features": {}, "customizations": {
"vscode": {
// Use 'forwardPorts' to make a list of ports inside the container available locally. "extensions": ["vscjava.vscode-java-pack"]
// "forwardPorts": [], }
}
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View File

@ -1,19 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "JS", "name": "JS",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "docker.io/ben0i0d/cenv:js" "image": "docker.io/ben0i0d/cenv:js",
// Features to add to the dev container. More info: https://containers.dev/features. // Configure vscode-extensions.
// "features": {}, "customizations": {
"vscode": {
// Use 'forwardPorts' to make a list of ports inside the container available locally. "extensions": ["ms-vscode.vscode-typescript-next"]
// "forwardPorts": [], }
}
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View File

@ -1,19 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "julia", "name": "julia",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "docker.io/ben0i0d/cenv:julia" "image": "docker.io/ben0i0d/cenv:julia",
// Features to add to the dev container. More info: https://containers.dev/features. // Configure vscode-extensions.
// "features": {}, "customizations": {
"vscode": {
// Use 'forwardPorts' to make a list of ports inside the container available locally. "extensions": ["julialang.language-julia"]
// "forwardPorts": [], }
}
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View File

@ -1,19 +1,13 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "python", "name": "python",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "docker.io/ben0i0d/cenv:python" "image": "docker.io/ben0i0d/cenv:python",
// Configure vscode-extensions.
// Features to add to the dev container. More info: https://containers.dev/features. "customizations": {
// "features": {}, "vscode": {
"extensions": ["ms-python.python", "donjayamanne.python-environment-manager", "ms-python.vscode-pylance", "ms-toolsai.jupyter"]
// Use 'forwardPorts' to make a list of ports inside the container available locally. }
// "forwardPorts": [], }
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View File

@ -1,19 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "r", "name": "r",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "docker.io/ben0i0d/cenv:r"
// Features to add to the dev container. More info: https://containers.dev/features. "image": "docker.io/ben0i0d/cenv:r",
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Configure vscode-extensions.
// "forwardPorts": [], "customizations": {
"vscode": {
// Configure tool-specific properties. "extensions": ["reditorsupport.r", "rdebugger.r-debugger"]
// "customizations": {}, }
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View File

@ -36,14 +36,15 @@ CUDA-->B
ROCM-->B ROCM-->B
B-->P{PROGRAM} B-->P{PROGRAM}
P-->PA(Cpp) P-->PA(C)
P-->PB(Java) P-->PB(Cpp)
PB-->PBA(Jdk) P-->PC(Java)
PB-->PBB(Jre) PC-->PCA(Jdk)
P-->PC(Js) PC-->PCB(Jre)
P-->PD(Julia) P-->PD(Js)
P-->PE(Python) P-->PE(Julia)
P-->PF(R) P-->PF(Python)
P-->PG(R)
B-->G{GameServer}-->GA{MC}-->GAA(JAVA) B-->G{GameServer}-->GA{MC}-->GAA(JAVA)
GAA-->GAAA(JRE_8) GAA-->GAAA(JRE_8)

View File

@ -36,14 +36,15 @@ CUDA-->B
ROCM-->B ROCM-->B
B-->P{PROGRAM} B-->P{PROGRAM}
P-->PA(Cpp) P-->PA(C)
P-->PB(Java) P-->PB(Cpp)
PB-->PBA(Jdk) P-->PC(Java)
PB-->PBB(Jre) PC-->PCA(Jdk)
P-->PC(Js) PC-->PCB(Jre)
P-->PD(Julia) P-->PD(Js)
P-->PE(Python) P-->PE(Julia)
P-->PF(R) P-->PF(Python)
P-->PG(R)
B-->G{GameServer}-->GA{MC}-->GAA(JAVA) B-->G{GameServer}-->GA{MC}-->GAA(JAVA)
GAA-->GAAA(JRE_8) GAA-->GAAA(JRE_8)

View File

@ -1,19 +1,6 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "base", "name": "base",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "docker.io/ben0i0d/cenv:base" "image": "docker.io/ben0i0d/cenv:base"
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }

View File

@ -1,19 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the // For format details, see https://aka.ms/devcontainer.json.
// README at: https://github.com/devcontainers/templates/tree/main/src/debian // For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/debian
{ {
"name": "rocm", "name": "rocm",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "eoelab.org:1027/ben0i0d/cenv:rocm", "image": "eoelab.org:1027/ben0i0d/cenv:rocm",
"runArgs": ["--device","/dev/kfd", "--device","/dev/dri", "--security-opt", "seccomp=unconfined", "--shm-size","4G"] "runArgs": ["--device","/dev/kfd", "--device","/dev/dri", "--security-opt", "seccomp=unconfined", "--shm-size","4G"]
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
} }