Skip to content

Commit

Permalink
Install java in devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Apr 21, 2024
1 parent 062cebd commit 4b1a51d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/generator-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: devcontainers/[email protected]
with:
node-version: 18
- uses: denoland/setup-deno@v1
with:
deno-version: "1.34.0"
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'microsoft'
- run: make run test
working-directory: ./cli
runCmd: |
cd cli
make run test
- uses: actions/upload-artifact@v4
with:
path:
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ RUN gem install jekyll bundler
ENV DENO_INSTALL="$HOME/.deno"
ENV DENO_INSTALL_ROOT="$HOME/.deno"
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
ENV PATH="${PATH}:$HOME/.deno/bin"
ENV PATH="${PATH}:$HOME/.deno/bin"

ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:21 $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"

0 comments on commit 4b1a51d

Please sign in to comment.