Skip to content

Commit f472d1b

Browse files
authored
Merge pull request #1 from computate/dependencies
Adding helm, jinja2 and GitHub CLI dependencies
2 parents f5d1a7f + 3d9ddc0 commit f472d1b

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Containerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ USER root
99
RUN pip install \
1010
jupyterlab \
1111
bash_kernel \
12+
jinja2 \
1213
ansible
14+
# Install helm
15+
RUN install -d /usr/local/bin/ /usr/local/src
16+
RUN curl -fsSL -o /usr/local/bin/get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
17+
RUN chmod 700 /usr/local/bin/get_helm.sh
18+
RUN env HELM_INSTALL_DIR=/usr/local/bin /usr/local/bin/get_helm.sh --no-sudo
1319
RUN python -m bash_kernel.install
1420
# Install IJava Kernel
1521
WORKDIR /usr/local/opt/ijava
@@ -19,7 +25,8 @@ RUN install -d /usr/local/opt/ijava \
1925
&& python3 install.py --prefix /opt/app-root \
2026
&& jupyter kernelspec install /opt/app-root/share/jupyter/kernels/java
2127
# Install java 17 and maven
22-
RUN dnf install -y java-17-openjdk-devel maven \
28+
RUN dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
29+
RUN dnf install -y java-17-openjdk-devel maven jq gh \
2330
&& alternatives --set java java-17-openjdk.x86_64 \
2431
&& alternatives --set javac java-17-openjdk.x86_64
2532

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ Base image: [quay.io/opendatahub-contrib/workbench-images:vscode-datascience-c9s
2222
| java-17-openjdk-devel | We provide the full Java 17 OpenJDK SDK to run and compile Java applications cloned from git in the terminal and Java inline Jupyter Notebooks. |
2323
| maven | Maven is provided for compiling, installing, and deploying Java packages to Maven Central. |
2424

25+
### Build the container with podman
26+
27+
```bash
28+
podman build -t nerc-images/vscode-java:latest .
29+
```
30+
31+
### Run the container with podman
32+
33+
```bash
34+
podman run --rm -it --entrypoint /bin/bash nerc-images/vscode-java:latest
35+
```
36+
2537
You can pull the latest [vscode-java container image](https://github.com/nerc-images/vscode-java/pkgs/container/vscode-java) below:
2638

2739
```

0 commit comments

Comments
 (0)