Skip to content

Commit 960f8b4

Browse files
committed
move files to get more re-use
1 parent ef73d91 commit 960f8b4

File tree

17 files changed

+85
-17
lines changed

17 files changed

+85
-17
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
python 3.12.12
1+
python 3.12.13
22
poetry 2.3.2

src/languages/node_24_python_3_14_golang_1_24/trivy.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/languages/node_24_python_3_14_java_24/trivy.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/languages/node_24_python_3_14_golang_1_24/.devcontainer/.tool-versions renamed to src/projects/node_24_python_3_14_golang_1_24/.devcontainer/.tool-versions

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
python 3.14.3
2-
poetry 2.3.2
31
golang 1.24.13
42
golangci-lint 2.11.3
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ARG BASE_VERSION_TAG=latest
2+
ARG BASE_IMAGE=ghcr.io/nhsdigital/eps-devcontainers/node_24_python_3_14:${BASE_VERSION_TAG}
3+
4+
FROM ${BASE_IMAGE}
5+
6+
ARG SCRIPTS_DIR=/usr/local/share/eps
7+
ARG CONTAINER_NAME
8+
ARG MULTI_ARCH_TAG
9+
ARG BASE_VERSION_TAG
10+
ARG IMAGE_TAG
11+
ARG TARGETARCH
12+
13+
ENV SCRIPTS_DIR=${SCRIPTS_DIR}
14+
ENV CONTAINER_NAME=${CONTAINER_NAME}
15+
ENV MULTI_ARCH_TAG=${MULTI_ARCH_TAG}
16+
ENV BASE_VERSION_TAG=${BASE_VERSION_TAG}
17+
ENV IMAGE_TAG=${IMAGE_TAG}
18+
ENV TARGETARCH=${TARGETARCH}
19+
20+
LABEL org.opencontainers.image.description="EPS devcontainer ${CONTAINER_NAME}:${IMAGE_TAG}"
21+
LABEL org.opencontainers.image.version=${IMAGE_TAG}
22+
LABEL org.opencontainers.image.base.name=${BASE_IMAGE}
23+
LABEL org.opencontainers.image.containerName=${CONTAINER_NAME}
24+
25+
USER root
26+
COPY --chmod=755 scripts ${SCRIPTS_DIR}/${CONTAINER_NAME}
27+
WORKDIR ${SCRIPTS_DIR}/${CONTAINER_NAME}
28+
RUN ./root_install.sh
29+
30+
USER vscode
31+
32+
WORKDIR ${SCRIPTS_DIR}/${CONTAINER_NAME}
33+
COPY .tool-versions /tmp/.tool-versions
34+
RUN cat /tmp/.tool-versions >> /home/vscode/.tool-versions
35+
36+
RUN ./vscode_install.sh
37+
38+
# Switch back to root to install the devcontainer CLI globally
39+
USER root

src/languages/node_24_python_3_14_java_24/.devcontainer/devcontainer.json renamed to src/projects/node_24_python_3_14_golang_1_24/.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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/ubuntu
33
{
4-
"name": "EPS Devcontainer node_24 python_3.14",
4+
"name": "EPS Devcontainer node_24 python_3.14_golang_1.24",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"build": {
7-
"dockerfile": "../../../common_node_24/Dockerfile",
7+
"dockerfile": "Dockerfile",
88
"args": {
99
"CONTAINER_NAME": "eps_devcontainer_${localEnv:CONTAINER_NAME}",
1010
"MULTI_ARCH_TAG": "${localEnv:MULTI_ARCH_TAG}",

src/languages/node_24_python_3_14_golang_1_24/.devcontainer/scripts/root_install.sh renamed to src/projects/node_24_python_3_14_golang_1_24/.devcontainer/scripts/root_install.sh

File renamed without changes.

src/languages/node_24_python_3_14_golang_1_24/.devcontainer/scripts/vscode_install.sh renamed to src/projects/node_24_python_3_14_golang_1_24/.devcontainer/scripts/vscode_install.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
asdf plugin add python
5-
asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git
64
asdf plugin add golang
75
asdf plugin add golangci-lint
86

9-
asdf install python
107
asdf install
118

129
# install cfn-lint

src/languages/node_24_python_3_14_golang_1_24/.trivyignore.yaml renamed to src/projects/node_24_python_3_14_golang_1_24/.trivyignore.yaml

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignorefile: "src/projects/node_24_python_3_14_golang_1_24/.trivyignore_combined.yaml"

0 commit comments

Comments
 (0)