Skip to content

Commit 0f52c4a

Browse files
committed
build fhir facade dev container
1 parent 5f392e6 commit 0f52c4a

10 files changed

Lines changed: 44 additions & 6 deletions

File tree

.github/workflows/build_all_images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
fail-fast: false
3939
matrix:
4040
include:
41-
- container_name: cpt_api
41+
- container_name: fhir_facade_api
4242
uses: ./.github/workflows/build_multi_arch_image.yml
4343
with:
4444
tag_latest: ${{ inputs.tag_latest }}

src/cpt_api/.devcontainer/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
java openjdk-20
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ARG BASE_VERSION=latest
2+
3+
FROM ghcr.io/nhsdigital/eps-devcontainers/node_24_python_3_13:${BASE_VERSION}
4+
5+
USER root
6+
COPY --chmod=755 scripts ${SCRIPTS_DIR}/${CONTAINER_NAME}
7+
WORKDIR ${SCRIPTS_DIR}/${CONTAINER_NAME}
8+
RUN ./root_install.sh
9+
10+
11+
USER vscode
12+
13+
USER vscode
14+
15+
WORKDIR ${SCRIPTS_DIR}/${CONTAINER_NAME}
16+
COPY .tool-versions /tmp/.tool-versions
17+
RUN cat /tmp/.tool-versions >> /home/vscode/.tool-versions
18+
19+
RUN ./vscode_install.sh
20+
WORKDIR /home/vscode

src/cpt_api/.devcontainer/devcontainer.json renamed to src/fhir_facade_api/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dockerfile": "Dockerfile",
88
"args": {
99
"BASE_VERSION": "${localEnv:BASE_VERSION}",
10-
"CONTAINER_NAME": "cpt_api"
10+
"CONTAINER_NAME": "fhir_facade_api"
1111
},
1212
"context": "."
1313
},
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
# install non snap version of firefox
6+
add-apt-repository -y ppa:mozillateam/ppa
7+
cat <<EOF > /etc/apt/preferences.d/mozilla-firefox
8+
Package: *
9+
Pin: release o=LP-PPA-mozillateam
10+
Pin-Priority: 1001
11+
EOF
12+
13+
apt-get -y install firefox
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# install java using asdf
5+
asdf plugin add java
6+
asdf install

src/node_24_python_3_14/.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"args": {
99
"BASE_VERSION": "${localEnv:BASE_VERSION}",
1010
"CONTAINER_NAME": "eps_devcontainer_node_24_python_3_14"
11-
}
11+
},
12+
"context": "."
1213
},
1314
"runArgs": [
1415
"--network=host"

0 commit comments

Comments
 (0)