Skip to content

Commit 6af1dbf

Browse files
jakepenzakcpcloud
authored andcommitted
chore(devcontainer): Add openjdk to devcontainer for pyspark dev
1 parent bbcd5b9 commit 6af1dbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ COPY --from=ghcr.io/astral-sh/uv:0.6.14 /uv /uvx /bin/
33
ARG USERNAME=vscode
44

55
RUN apt-get update && \
6-
apt-get install -y --no-install-recommends libgdal-dev python3-dev && \
6+
apt-get install -y --no-install-recommends libgdal-dev python3-dev openjdk-17-jdk && \
77
rm -rf /var/lib/apt/lists/*
88

99
RUN python3 -m pip install pipx --no-cache-dir
1010
RUN python3 -m pipx ensurepath
1111
RUN pipx install rust-just
1212

13+
RUN echo 'export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java))))' >> /etc/profile.d/java.sh && \
14+
echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/java.sh
15+
1316
WORKDIR /app
1417

1518
# Enable bytecode compilation

0 commit comments

Comments
 (0)