diff --git a/.github/workflows/zxf-publish-docker-images.yaml b/.github/workflows/zxf-publish-docker-images.yaml deleted file mode 100644 index eb16a616..00000000 --- a/.github/workflows/zxf-publish-docker-images.yaml +++ /dev/null @@ -1,261 +0,0 @@ -name: "ZXF: Publish Docker Images" -on: - workflow_dispatch: - inputs: - new-version: - description: "New Release Version (ie. 0.30.0):" - type: string - required: true - -defaults: - run: - shell: bash - -permissions: - id-token: write - contents: read - -env: - LC_ALL: C.UTF-8 - -jobs: - prepare-release: - name: Release / Prepare - runs-on: [self-hosted, Linux, large, ephemeral] - outputs: - version: ${{ steps.extract.outputs.version }} - tag: ${{ steps.extract.outputs.tag }} - steps: - - name: Checkout Code - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Install Semantic Version Tools - run: | - echo "::group::Download SemVer Binary" - sudo curl -L -o /usr/local/bin/semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver - echo "::endgroup::" - echo "::group::Change SemVer Binary Permissions" - sudo chmod -v +x /usr/local/bin/semver - echo "::endgroup::" - echo "::group::Show SemVer Binary Version Info" - semver --version - echo "::endgroup::" - - - name: Validate Version - run: | - VALID_VERSION="$(semver validate "${{ inputs.new-version }}")" - - if [[ "${VALID_VERSION}" != "valid" ]]; then - echo "::error title=Version Error::The supplied new-version parameter of '${{ inputs.new_version || github.ref_name }}' is invalid and does not conform to the semantic versioning specifications." - exit 2 - fi - - - name: Extract Version - id: extract - run: | - RELEASE_VERSION="$(semver get release "${{ inputs.new-version }}")" - PRERELEASE_VERSION="$(semver get prerel "${{ inputs.new-version }}")" - - FINAL_VERSION="${RELEASE_VERSION}" - [[ -n "${PRERELEASE_VERSION}" ]] && FINAL_VERSION="${RELEASE_VERSION}-${PRERELEASE_VERSION}" - - echo "version=${FINAL_VERSION}" >>"${GITHUB_OUTPUT}" - echo "tag=v${FINAL_VERSION}" >>"${GITHUB_OUTPUT}" - - - name: Authenticate to Google Cloud - id: google-auth - uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # pinned to v1.0.0 - with: - workload_identity_provider: 'projects/101730247931/locations/global/workloadIdentityPools/hedera-registry-pool/providers/hedera-registry-gh-actions' - service_account: 'swirlds-automation@hedera-registry.iam.gserviceaccount.com' - - - name: Install Google Cloud SDK - uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # pinned to v1.1.0 - - - name: Retrieve the Build Artifact - run: gsutil cp "gs://hedera-platform-builds/build-${{ steps.extract.outputs.tag }}.zip" . - - - name: Retrieve the Artifact Checksum/Hash - run: gsutil cp "gs://hedera-platform-builds/build-${{ steps.extract.outputs.tag }}.sha384" . - - - name: Validate the Build Artifact - run: sha384sum -c "build-${{ steps.extract.outputs.tag }}.sha384" - - - name: Attach Artifact to Workflow Run - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # pinned to v3.1.2 - with: - name: hedera-node-build-${{ steps.extract.outputs.tag }} - path: | - build-${{ steps.extract.outputs.tag }}.zip - build-${{ steps.extract.outputs.tag }}.sha384 - - - deploy-haveged-image: - name: Deploy / Haveged / Image - runs-on: [ self-hosted, Linux, large, ephemeral ] - needs: - - prepare-release - steps: - - name: Checkout Code - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Authenticate to Google Cloud - id: google-auth - uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # pinned to v1.0.0 - with: - workload_identity_provider: 'projects/101730247931/locations/global/workloadIdentityPools/hedera-registry-pool/providers/hedera-registry-gh-actions' - service_account: 'swirlds-automation@hedera-registry.iam.gserviceaccount.com' - token_format: access_token - - - name: Setup Docker Buildx QEMU - uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # pinned to v2.1.0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # pinned to v2.4.1 - - - name: Authorize Docker - uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # pinned to v2.1.0 - with: - registry: gcr.io - username: oauth2accesstoken - password: ${{ steps.google-auth.outputs.access_token }} - - - name: Build and Push Image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # pinned to v4.0.0 - with: - push: true - context: ${{ github.workspace }}/docker/network-node-haveged - platforms: | - linux/arm64 - linux/amd64 - tags: | - gcr.io/hedera-registry/network-node-haveged:${{ needs.prepare-release.outputs.version }} - - deploy-base-image: - name: Deploy / Base / Image - runs-on: [ self-hosted, Linux, large, ephemeral ] - needs: - - prepare-release - steps: - - name: Checkout Code - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Authenticate to Google Cloud - id: google-auth - uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # pinned to v1.0.0 - with: - workload_identity_provider: 'projects/101730247931/locations/global/workloadIdentityPools/hedera-registry-pool/providers/hedera-registry-gh-actions' - service_account: 'swirlds-automation@hedera-registry.iam.gserviceaccount.com' - token_format: access_token - - - name: Setup Docker Buildx QEMU - uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # pinned to v2.1.0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # pinned to v2.4.1 - - - name: Authorize Docker - uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # pinned to v2.1.0 - with: - registry: gcr.io - username: oauth2accesstoken - password: ${{ steps.google-auth.outputs.access_token }} - - - name: Build and Push Image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # pinned to v4.0.0 - with: - push: true - context: ${{ github.workspace }}/docker/network-node-base - platforms: | - linux/arm64 - linux/amd64 - tags: | - gcr.io/hedera-registry/network-node-base:${{ needs.prepare-release.outputs.version }} - - deploy-network-node-image: - name: Deploy / Network Node / Image - runs-on: [ self-hosted, Linux, large, ephemeral ] - needs: - - prepare-release - - deploy-base-image - steps: - - name: Checkout Code - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pinned to v3.3.0 - - - name: Authenticate to Google Cloud - id: google-auth - uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d # pinned to v1.0.0 - with: - workload_identity_provider: 'projects/101730247931/locations/global/workloadIdentityPools/hedera-registry-pool/providers/hedera-registry-gh-actions' - service_account: 'swirlds-automation@hedera-registry.iam.gserviceaccount.com' - token_format: access_token - - - name: Setup Docker Buildx QEMU - uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # pinned to v2.1.0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7 # pinned to v2.4.1 - - - name: Authorize Docker - uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # pinned to v2.1.0 - with: - registry: gcr.io - username: oauth2accesstoken - password: ${{ steps.google-auth.outputs.access_token }} - - - name: Download Artifact - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # pinned to v3.0.2 - with: - name: hedera-node-build-${{ needs.prepare-release.outputs.tag }} - path: docker/main-network-node/sdk - - - name: Extract Artifact Contents - working-directory: docker/main-network-node/sdk - run: unzip "build-${{ needs.prepare-release.outputs.tag }}.zip" "data/*" - - - name: Build and Push Image - uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 # pinned to v4.0.0 - with: - push: true - context: ${{ github.workspace }}/docker/main-network-node - platforms: | - linux/arm64 - linux/amd64 - tags: | - gcr.io/hedera-registry/main-network-node:${{ needs.prepare-release.outputs.version }} - build-args: | - IMAGE_TAG=${{ needs.prepare-release.outputs.version }} - - report-published-images: - name: Image / Report - runs-on: [ self-hosted, Linux, large, ephemeral ] - needs: - - prepare-release - - deploy-base-image - - deploy-network-node-image - - deploy-haveged-image - steps: - - name: Render Job Summary - run: | - printf "### Published Docker Images\n" >> "${GITHUB_STEP_SUMMARY}" - printf "| Image Name | Version | URL | Supported Architectures |\n" >> "${GITHUB_STEP_SUMMARY}" - printf "| ---------- | ------- | --- | ----------------------- |\n" >> "${GITHUB_STEP_SUMMARY}" - printf "| %s | %s | %s | %s |\n" \ - "gcr.io/hedera-registry/network-node-base" \ - "${{ needs.prepare-release.outputs.version }}" \ - "[GCP Console](https://console.cloud.google.com/gcr/images/hedera-registry/global/network-node-base)" \ - "linux/amd64, linux/arm64" >> "${GITHUB_STEP_SUMMARY}" - - printf "| %s | %s | %s | %s |\n" \ - "gcr.io/hedera-registry/network-node-haveged" \ - "${{ needs.prepare-release.outputs.version }}" \ - "[GCP Console](https://console.cloud.google.com/gcr/images/hedera-registry/global/network-node-haveged)" \ - "linux/amd64, linux/arm64" >> "${GITHUB_STEP_SUMMARY}" - - printf "| %s | %s | %s | %s |\n" \ - "gcr.io/hedera-registry/main-network-node" \ - "${{ needs.prepare-release.outputs.version }}" \ - "[GCP Console](https://console.cloud.google.com/gcr/images/hedera-registry/global/main-network-node)" \ - "linux/amd64, linux/arm64" >> "${GITHUB_STEP_SUMMARY}" - - printf "\n\n" >> "${GITHUB_STEP_SUMMARY}" diff --git a/docker/main-network-node/Dockerfile b/docker/main-network-node/Dockerfile deleted file mode 100644 index 8b7fd5ec..00000000 --- a/docker/main-network-node/Dockerfile +++ /dev/null @@ -1,45 +0,0 @@ -######################################################################################################################## -# -# Define Global Build Arguments -# -######################################################################################################################## -ARG IMAGE_PREFIX="gcr.io/hedera-registry/" -ARG IMAGE_TAG="latest" - -FROM ${IMAGE_PREFIX}network-node-base:${IMAGE_TAG} - -# Define Environment Variables -ENV JAVA_HEAP_MIN="" -ENV JAVA_HEAP_MAX="" -ENV JAVA_OPTS="" - -# Add SDK components -ADD sdk/data/apps/* /opt/hgcapp/services-hedera/HapiApp2.0/data/apps/ -ADD sdk/data/lib/* /opt/hgcapp/services-hedera/HapiApp2.0/data/lib/ - -# Add Diagnostic Utilities -RUN apt-get update && \ - apt-get install --yes --no-install-recommends net-tools && \ - apt-get autoremove --yes && \ - apt-get autoclean --yes && \ - apt-get clean all --yes && \ - rm -rf /var/lib/{apt,dpkg,cache,log}/ - -# Add the entrypoint script -ADD entrypoint.sh /opt/hgcapp/services-hedera/HapiApp2.0/ - -# Ensure MainNet specific folder & files exist -RUN mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/output" && \ - touch "/opt/hgcapp/services-hedera/HapiApp2.0/stdout.log" - -# Ensure proper file permissions -RUN chmod -R +x /opt/hgcapp/services-hedera/HapiApp2.0/entrypoint.sh && \ - chown -R 2000:2000 /opt/hgcapp/services-hedera/HapiApp2.0 - -# Expose TCP/UDP Port Definitions -EXPOSE 50111/tcp 50211/tcp 50212/tcp - -# Set Final Working Directory, User, and Entrypoint -USER 2000 -WORKDIR "/opt/hgcapp" -ENTRYPOINT ["/opt/hgcapp/services-hedera/HapiApp2.0/entrypoint.sh"] diff --git a/docker/main-network-node/entrypoint.sh b/docker/main-network-node/entrypoint.sh deleted file mode 100644 index 16a4b898..00000000 --- a/docker/main-network-node/entrypoint.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env bash - -######################################################################################################################## -# Copyright 2016-2022 Hedera Hashgraph, LLC # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); # -# you may not use this file except in compliance with the License. # -# You may obtain a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -######################################################################################################################## - -set -eo pipefail - -SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" -cd "${SCRIPT_PATH}" || exit 64 - -if [[ -z "${JAVA_OPTS}" ]]; then - JAVA_OPTS="" -fi - -JAVA_HEAP_OPTS="" - -if [[ -n "${JAVA_HEAP_MIN}" ]]; then - JAVA_HEAP_OPTS="${JAVA_HEAP_OPTS} -Xms${JAVA_HEAP_MIN}" -fi - -if [[ -n "${JAVA_HEAP_MAX}" ]]; then - JAVA_HEAP_OPTS="${JAVA_HEAP_OPTS} -Xmx${JAVA_HEAP_MAX}" -fi - -if [[ ! -d "${SCRIPT_PATH}/output" ]]; then - mkdir -p "${SCRIPT_PATH}/output" -fi - -# Ensure stdout.log exists as a file & not a directory since we are bind mounting -[[ -d "${SCRIPT_PATH}/stdout.log" ]] && rm -rf "${SCRIPT_PATH}/stdout.log" -[[ -f "${SCRIPT_PATH}/stdout.log" ]] || touch "${SCRIPT_PATH}/stdout.log" - -echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BEGIN USER IDENT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" -id -echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< END USER IDENT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" -echo - -/usr/bin/env java ${JAVA_HEAP_OPTS} ${JAVA_OPTS} -cp "data/lib/*" com.swirlds.platform.Browser > >(tee stdout.log) 2>&1 -printf "java exit code %s" "${?}\n" >> stdout.log diff --git a/docker/network-node-base/Dockerfile b/docker/network-node-base/Dockerfile deleted file mode 100644 index eea5613a..00000000 --- a/docker/network-node-base/Dockerfile +++ /dev/null @@ -1,145 +0,0 @@ -######################################################################################################################## -# -# Define Global Build Arguments -# -######################################################################################################################## -#ARG UBUNTU_TAG="focal-20220426" -#ARG UBUNTU_TAG="focal-20220531" -#ARG UBUNTU_TAG="focal-20220801" -#ARG UBUNTU_TAG="focal-20220922" -#ARG UBUNTU_TAG="focal-20221019" -#ARG UBUNTU_TAG="focal-20221130" -ARG UBUNTU_TAG="focal-20230126" - -######################################################################################################################## -# -# Setup Builder Image -# -######################################################################################################################## -FROM ubuntu:${UBUNTU_TAG} AS openjdk-builder - -# Define Standard Environment Variables -ENV LC_ALL=C.UTF-8 -ENV DEBIAN_FRONTEND=noninteractive - -# Install basic OS utilities for building -RUN apt-get update && \ - apt-get install --yes --no-install-recommends tar gzip gnupg2 curl ca-certificates - -########################## -#### Java Setup #### -########################## - -RUN set -eux; \ - ARCH="$(dpkg --print-architecture)"; \ - case "${ARCH}" in \ - aarch64|arm64) \ - ESUM='9e0e88bbd9fa662567d0c1e22d469268c68ac078e9e5fe5a7244f56fec71f55f'; \ - BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.6%2B10/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.6_10.tar.gz'; \ - ;; \ - armhf|arm) \ - ESUM='fe4d0c6d5bb8cf7f59f7ff82c0c1fd988bbe5cccf3bc7377dc8ae50740b46c82'; \ - BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.6%2B10/OpenJDK17U-jdk_arm_linux_hotspot_17.0.6_10.tar.gz'; \ - ;; \ - ppc64el|powerpc:common64) \ - ESUM='cb772c3fdf3f9fed56f23a37472acf2b80de20a7113fe09933891c6ef0ecde95'; \ - BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.6%2B10/OpenJDK17U-jdk_ppc64le_linux_hotspot_17.0.6_10.tar.gz'; \ - ;; \ - s390x|s390:64-bit) \ - ESUM='32e53321dd3e724e111e5445fbdcbcefde893e59055cc1f102d20fa3bb62ccc3'; \ - BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.6%2B10/OpenJDK17U-jdk_s390x_linux_hotspot_17.0.6_10.tar.gz'; \ - ;; \ - amd64|i386:x86-64) \ - ESUM='a0b1b9dd809d51a438f5fa08918f9aca7b2135721097f0858cf29f77a35d4289'; \ - BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.6%2B10/OpenJDK17U-jdk_x64_linux_hotspot_17.0.6_10.tar.gz'; \ - ;; \ - *) \ - echo "Unsupported arch: ${ARCH}"; \ - exit 1; \ - ;; \ - esac; \ - curl -LfsSo /tmp/openjdk.tar.gz ${BINARY_URL}; \ - echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; \ - mkdir -p /usr/local/java; \ - cd /usr/local/java/; \ - tar -xf /tmp/openjdk.tar.gz; \ - rm -rf /tmp/openjdk.tar.gz; - - -######################################################################################################################## -# -# Build Final Image -# -######################################################################################################################## -FROM ubuntu:${UBUNTU_TAG} AS openjdk-base - -# Define Standard Environment Variables -ENV LC_ALL=C.UTF-8 -ENV DEBIAN_FRONTEND=noninteractive -ENV JAVA_VERSION="jdk-17.0.6+10" -ENV JAVA_HOME="/usr/local/java/${JAVA_VERSION}" - -# Fetch Validated Java Binaries -COPY --from=openjdk-builder /usr/local/java/ /usr/local/java/ - -# Install Basic OS Requirements -RUN apt-get update && \ - apt-get install --yes --no-install-recommends tar gzip openssl zlib1g libsodium23 sudo netcat && \ - apt-get install --yes --no-install-recommends libnetty-tcnative-jni && \ - apt-get autoremove --yes && \ - apt-get autoclean --yes && \ - apt-get clean all --yes && \ - rm -rf /var/lib/{apt,dpkg,cache,log}/ - -# Install Java Alternatives -RUN update-alternatives --install "/usr/bin/java" "java" "${JAVA_HOME}/bin/java" 1500 && \ - update-alternatives --install "/usr/bin/javac" "javac" "${JAVA_HOME}/bin/javac" 1500 && \ - update-alternatives --install "/usr/bin/javadoc" "javadoc" "${JAVA_HOME}/bin/javadoc" 1500 && \ - update-alternatives --install "/usr/bin/jshell" "jshell" "${JAVA_HOME}/bin/jshell" 1500 && \ - update-alternatives --install "/usr/bin/jstack" "jstack" "${JAVA_HOME}/bin/jstack" 1500 && \ - update-alternatives --install "/usr/bin/jps" "jps" "${JAVA_HOME}/bin/jps" 1500 && \ - update-alternatives --install "/usr/bin/jmap" "jmap" "${JAVA_HOME}/bin/jmap" 1500 - -# Create Application Folders -RUN mkdir -p "/opt/hgcapp" && \ - mkdir -p "/opt/hgcapp/accountBalances" && \ - mkdir -p "/opt/hgcapp/eventsStreams" && \ - mkdir -p "/opt/hgcapp/recordStreams" && \ - mkdir -p "/opt/hgcapp/services-hedera" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/apps" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/backup" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/config" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/diskFs" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/keys" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/lib" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/onboard" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/stats" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/saved" && \ - mkdir -p "/opt/hgcapp/services-hedera/HapiApp2.0/data/upgrade" - -# Configure the standard user account -RUN groupadd --gid 2000 hedera && \ - useradd --no-user-group --create-home --uid 2000 --gid 2000 --shell /bin/bash hedera && \ - chown -R hedera:hedera /opt/hgcapp - -# Configure SUDO support -RUN echo >> /etc/sudoers && \ - echo "%hedera ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers - - -# Define Volume Bindpoints -VOLUME "/opt/hgcapp/accountBalances" -VOLUME "/opt/hgcapp/eventsStreams" -VOLUME "/opt/hgcapp/recordStreams" -VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/config" -VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/diskFs" -VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/keys" -VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/onboard" -VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/stats" -VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/saved" -VOLUME "/opt/hgcapp/services-hedera/HapiApp2.0/data/upgrade" - -# Set Final Working Directory and Command/Entrypoint -WORKDIR "/opt/hgcapp" diff --git a/docker/network-node-haveged/Dockerfile b/docker/network-node-haveged/Dockerfile deleted file mode 100644 index 22c33696..00000000 --- a/docker/network-node-haveged/Dockerfile +++ /dev/null @@ -1,67 +0,0 @@ -######################################################################################################################## -# -# Define Global Build Arguments -# -######################################################################################################################## -#ARG UBUNTU_TAG="focal-20220426" -#ARG UBUNTU_TAG="focal-20220531" -#ARG UBUNTU_TAG="focal-20220801" -#ARG UBUNTU_TAG="focal-20220922" -#ARG UBUNTU_TAG="focal-20221019" -# ARG UBUNTU_TAG="focal-20221130" -ARG UBUNTU_TAG="focal-20230126" - -ARG HAVEGED_VERSION="1.9.1-6ubuntu1" - -######################################################################################################################## -# -# Setup Builder Image -# -######################################################################################################################## -FROM ubuntu:${UBUNTU_TAG} AS haveged-builder - -# Define Global Argument Refs -ARG HAVEGED_VERSION - -# Import Checksum Files from the Build Context -ADD checksums/* /tmp/checksums/ - -# Install basic OS utilities for building -RUN apt-get update && \ - apt-get install -y --no-install-recommends tar gzip - -# Download Haveged deb archive -WORKDIR "/tmp/deb" -RUN apt-get update && \ - apt-get download --yes haveged=${HAVEGED_VERSION} libhavege1=${HAVEGED_VERSION} && \ - apt-get clean all - -# Validate Haveged deb archive -RUN sha256sum -c /tmp/checksums/haveged_${HAVEGED_VERSION}_$(dpkg --print-architecture).deb.sha256 && \ - sha256sum -c /tmp/checksums/libhavege1_${HAVEGED_VERSION}_$(dpkg --print-architecture).deb.sha256 - -######################################################################################################################## -# -# Build Final Image -# -######################################################################################################################## -FROM ubuntu:${UBUNTU_TAG} AS network-node-haveged - -# Define Standard Environment Variables -ENV LC_ALL=C.UTF-8 -ENV DEBIAN_FRONTEND=noninteractive - -# Fetch Validated Debian Packages -COPY --from=haveged-builder /tmp/deb/*.deb /tmp/deb/ - -# Install Validated Local Debian Packages -RUN apt-get --allow-unauthenticated install --no-install-recommends --yes /tmp/deb/*.deb && \ - apt-get autoremove --yes && \ - apt-get autoclean --yes && \ - apt-get clean all --yes && \ - rm -rf /tmp/deb && \ - rm -rf /var/lib/{apt,dpkg,cache,log}/ - -# Set Final Working Directory and Command/Entrypoint -WORKDIR "/" -ENTRYPOINT ["/usr/bin/env", "haveged", "-v", "3", "-F"] diff --git a/docker/network-node-haveged/checksums/haveged_1.9.1-6ubuntu1_amd64.deb.sha256 b/docker/network-node-haveged/checksums/haveged_1.9.1-6ubuntu1_amd64.deb.sha256 deleted file mode 100644 index afee61a8..00000000 --- a/docker/network-node-haveged/checksums/haveged_1.9.1-6ubuntu1_amd64.deb.sha256 +++ /dev/null @@ -1 +0,0 @@ -3526952885ee343a4874a4426fabafd203ee890167ae46a3ca506829250178a7 haveged_1.9.1-6ubuntu1_amd64.deb diff --git a/docker/network-node-haveged/checksums/haveged_1.9.1-6ubuntu1_arm64.deb.sha256 b/docker/network-node-haveged/checksums/haveged_1.9.1-6ubuntu1_arm64.deb.sha256 deleted file mode 100644 index 58e984f1..00000000 --- a/docker/network-node-haveged/checksums/haveged_1.9.1-6ubuntu1_arm64.deb.sha256 +++ /dev/null @@ -1 +0,0 @@ -27c94952983d14bdda5fbb5650885c7cbf7ccf3292b7dac7adf00efadd240ef3 haveged_1.9.1-6ubuntu1_arm64.deb diff --git a/docker/network-node-haveged/checksums/libhavege1_1.9.1-6ubuntu1_amd64.deb.sha256 b/docker/network-node-haveged/checksums/libhavege1_1.9.1-6ubuntu1_amd64.deb.sha256 deleted file mode 100644 index f60405a5..00000000 --- a/docker/network-node-haveged/checksums/libhavege1_1.9.1-6ubuntu1_amd64.deb.sha256 +++ /dev/null @@ -1 +0,0 @@ -1ee05009f3646ded6a620e9a280739aea4a2d1c27a4e98c42ef9ab5598b78b2b libhavege1_1.9.1-6ubuntu1_amd64.deb diff --git a/docker/network-node-haveged/checksums/libhavege1_1.9.1-6ubuntu1_arm64.deb.sha256 b/docker/network-node-haveged/checksums/libhavege1_1.9.1-6ubuntu1_arm64.deb.sha256 deleted file mode 100644 index ce8601dc..00000000 --- a/docker/network-node-haveged/checksums/libhavege1_1.9.1-6ubuntu1_arm64.deb.sha256 +++ /dev/null @@ -1 +0,0 @@ -fe474cb31f53deaf111e212e3fd9f9ef7e0f6cda13251b99d635f41a0428ab6b libhavege1_1.9.1-6ubuntu1_arm64.deb