Skip to content

Commit

Permalink
Change to ubuntu docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns committed Nov 28, 2024
1 parent ccd44ae commit a8a2381
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ jobs:
- name: Build native test server (Docker)
if: matrix.os_family == 'Linux'
uses: docker://openjdk:21-jdk-oraclelinux7
with:
args: |
sh -c "yum install -y git && ./gradlew -x :temporal-serviceclient:updateSubmodules :temporal-test-server:build"
run: |
docker run \
--rm -v "$(pwd):/workspace" -w /workspace \
$(docker build -q ./docker/native-image) \
sh -c "./gradlew :temporal-test-server:build"
# path ends in a wildcard because on windows the file ends in '.exe'
# path excludes *.txt because native-image also writes a build manifest txt file
- name: Upload executable to workflow
Expand Down
6 changes: 6 additions & 0 deletions docker/native-image/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ubuntu:18.04
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:21 $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"
RUN apt-get update
RUN apt-get install -y git

0 comments on commit a8a2381

Please sign in to comment.