mirror of https://github.com/hyperledger/besu
Multiple Docker Images with different JVMs (#1277)
Create different Docker images with different base JVMs. Initially OpenJDK 11.0.7, whatever OpenJDK latest is (14.0.1 at the moment), and Graal 20.1.0 . We still maintain a "Default" which will remain Java 11.0.x Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>pull/1286/head
parent
bfcef53bb5
commit
8067ff4f82
@ -0,0 +1,41 @@ |
||||
|
||||
FROM oracle/graalvm-ce:20.1.0-java11 |
||||
|
||||
RUN adduser --home /opt/besu besu && \ |
||||
chown besu:besu /opt/besu |
||||
|
||||
USER besu |
||||
WORKDIR /opt/besu |
||||
|
||||
COPY --chown=besu:besu besu /opt/besu/ |
||||
|
||||
# Expose services ports |
||||
# 8545 HTTP JSON-RPC |
||||
# 8546 WS JSON-RPC |
||||
# 8547 HTTP GraphQL |
||||
# 30303 P2P |
||||
EXPOSE 8545 8546 8547 30303 |
||||
|
||||
# defaults for host interfaces |
||||
ENV BESU_RPC_HTTP_HOST 0.0.0.0 |
||||
ENV BESU_RPC_WS_HOST 0.0.0.0 |
||||
ENV BESU_GRAPHQL_HTTP_HOST 0.0.0.0 |
||||
ENV BESU_PID_PATH "/tmp/pid" |
||||
|
||||
ENV PATH="/opt/besu/bin:${PATH}" |
||||
ENTRYPOINT ["besu"] |
||||
HEALTHCHECK --start-period=5s --interval=5s --timeout=1s --retries=10 CMD bash -c "[ -f /tmp/pid ]" |
||||
|
||||
# Build-time metadata as defined at http://label-schema.org |
||||
ARG BUILD_DATE |
||||
ARG VCS_REF |
||||
ARG VERSION |
||||
LABEL org.label-schema.build-date=$BUILD_DATE \ |
||||
org.label-schema.name="Besu" \ |
||||
org.label-schema.description="Enterprise Ethereum client" \ |
||||
org.label-schema.url="https://besu.hyperledger.org/" \ |
||||
org.label-schema.vcs-ref=$VCS_REF \ |
||||
org.label-schema.vcs-url="https://github.com/hyperledger/besu.git" \ |
||||
org.label-schema.vendor="Hyperledger" \ |
||||
org.label-schema.version=$VERSION \ |
||||
org.label-schema.schema-version="1.0" |
@ -0,0 +1,41 @@ |
||||
|
||||
FROM openjdk:slim-buster |
||||
|
||||
RUN adduser --disabled-password --gecos "" --home /opt/besu besu && \ |
||||
chown besu:besu /opt/besu |
||||
|
||||
USER besu |
||||
WORKDIR /opt/besu |
||||
|
||||
COPY --chown=besu:besu besu /opt/besu/ |
||||
|
||||
# Expose services ports |
||||
# 8545 HTTP JSON-RPC |
||||
# 8546 WS JSON-RPC |
||||
# 8547 HTTP GraphQL |
||||
# 30303 P2P |
||||
EXPOSE 8545 8546 8547 30303 |
||||
|
||||
# defaults for host interfaces |
||||
ENV BESU_RPC_HTTP_HOST 0.0.0.0 |
||||
ENV BESU_RPC_WS_HOST 0.0.0.0 |
||||
ENV BESU_GRAPHQL_HTTP_HOST 0.0.0.0 |
||||
ENV BESU_PID_PATH "/tmp/pid" |
||||
|
||||
ENV PATH="/opt/besu/bin:${PATH}" |
||||
ENTRYPOINT ["besu"] |
||||
HEALTHCHECK --start-period=5s --interval=5s --timeout=1s --retries=10 CMD bash -c "[ -f /tmp/pid ]" |
||||
|
||||
# Build-time metadata as defined at http://label-schema.org |
||||
ARG BUILD_DATE |
||||
ARG VCS_REF |
||||
ARG VERSION |
||||
LABEL org.label-schema.build-date=$BUILD_DATE \ |
||||
org.label-schema.name="Besu" \ |
||||
org.label-schema.description="Enterprise Ethereum client" \ |
||||
org.label-schema.url="https://besu.hyperledger.org/" \ |
||||
org.label-schema.vcs-ref=$VCS_REF \ |
||||
org.label-schema.vcs-url="https://github.com/hyperledger/besu.git" \ |
||||
org.label-schema.vendor="Hyperledger" \ |
||||
org.label-schema.version=$VERSION \ |
||||
org.label-schema.schema-version="1.0" |
Loading…
Reference in new issue