-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2940 from rsksmart/fmacleal/downgrading-docker-ru…
…ntime-to-java-17 Using build from eclipse java temurin 17
- Loading branch information
Showing
8 changed files
with
45 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Docker image validation | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'Dockerfile' | ||
- '.github/workflows/docker-verification.yml' | ||
types: [opened, synchronize, reopened] | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 #v4.2.1 | ||
|
||
- name: Build Docker image for validation | ||
run: | | ||
docker build -t rsksmart/rskj:latest . | ||
- name: Run Docker container | ||
run: | | ||
docker run -d --name rskj-container rsksmart/rskj:latest --regtest | ||
- name: Check Docker container built | ||
run: | | ||
if [ $(docker inspect -f '{{.State.Running}}' rskj-container) = "true" ]; then | ||
echo "Container is running properly" | ||
else | ||
echo "Container failed to start" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM eclipse-temurin:21-jdk@sha256:5ad4efff3364b06c61578b267138359bcba92acc20dfd533f35b75c709a6f10b AS build | ||
FROM eclipse-temurin:17-jdk@sha256:0613a19436dc8f745914b25235d43f3b0eddb8d432d19edce30ffaf2d2f95403 AS build | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y git curl gnupg | ||
|
@@ -19,7 +19,7 @@ RUN gpg --keyserver https://secchannel.rsk.co/SUPPORT.asc --recv-keys 1DC9157991 | |
modifier=$(sed -n 's/^modifier=//p' "$file" | tr -d "\"'") && \ | ||
cp "rskj-core/build/libs/rskj-core-$version_number-$modifier-all.jar" rsk.jar | ||
|
||
FROM eclipse-temurin:21-jre@sha256:4c1ec9743c333c9d47f55d883c4e317d117e198899e7edf1d9cf4c89253b1b9d | ||
FROM eclipse-temurin:17-jre@sha256:38e0afc86a10bf4cadbf1586fb617b3a9a4d09c9a0be882e29ada4ed0895fc84 | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
RUN useradd -ms /sbin/nologin -d /var/lib/rsk rsk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
versionNumber='6.5.0' | ||
versionNumber='6.5.1' | ||
modifier="ARROWHEAD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters