Skip to content

Commit

Permalink
Add a version of Dockerfiles with node included for cdt-gdb-adapter
Browse files Browse the repository at this point in the history
This is a convenience for our sister project, eclipse-cdt-cloud,
that are relying on CDT's infrastructure to do some testing.

See https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/blob/main/src/integration-tests/README.md#running-the-tests-using-docker
  • Loading branch information
jonahgraham committed Sep 24, 2024
1 parent c51cecd commit 84b5a4c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ docker build --rm -f cdt-infra-all-gdbs/ubuntu-18.04/Dockerfile -t cdt-infra-all
docker build --rm -f cdt-infra-eclipse-full/ubuntu-18.04/Dockerfile -t cdt-infra-eclipse-full:ubuntu-18.04 .
docker build --rm -f cdt-infra-plus-eclipse-install/ubuntu-18.04/Dockerfile -t cdt-infra-plus-eclipse-install:ubuntu-18.04 .
docker build --rm -f cdt-infra-plus-eclipse-install-github/ubuntu-18.04/Dockerfile -t cdt-infra-plus-eclipse-install-github:ubuntu-18.04 .
docker build --rm -f cdt-infra-plus-node/ubuntu-18.04/Dockerfile -t cdt-infra-plus-node:ubuntu-18.04 .
2 changes: 2 additions & 0 deletions docker/cdt-infra-plus-node/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This directory contains a convenience for the Eclipse CDT Cloud's cdt-gdb-adapter project that exists
for historical reasons. See this reference https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/blob/main/src/integration-tests/README.md#running-the-tests-using-docker
21 changes: 21 additions & 0 deletions docker/cdt-infra-plus-node/ubuntu-18.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM cdt-infra-eclipse-full:ubuntu-18.04
USER root

#Node
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g yarn

# socat needed for some cdt-gdb-adapter tests
RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/*

#Fix permissions for OpenShift & standard k8s
RUN chown -R 1000:0 ${HOME} \
&& chmod -R g+rwX ${HOME}

ENV USER_NAME vnc
USER 1000
WORKDIR ${HOME}

CMD ["bash"]
2 changes: 1 addition & 1 deletion docker/deploy-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace=${1:-quay.io/eclipse-cdt}
shorthash=$(git rev-parse --short HEAD)
toplevel=$(git rev-parse --show-toplevel)

images="cdt-infra-eclipse-full:ubuntu-18.04 cdt-infra-plus-eclipse-install:ubuntu-18.04 cdt-infra-plus-eclipse-install-github:ubuntu-18.04"
images="cdt-infra-eclipse-full:ubuntu-18.04 cdt-infra-plus-eclipse-install:ubuntu-18.04 cdt-infra-plus-eclipse-install-github:ubuntu-18.04 cdt-infra-plus-node:ubuntu-18.04"

$toplevel/docker/build-images.sh

Expand Down

0 comments on commit 84b5a4c

Please sign in to comment.