From 24bd1ff914261c6c8fb01b3ada9a4307c96014cd Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Tue, 26 Mar 2024 16:43:36 +0000 Subject: [PATCH 1/2] ENH: Use `--no-install-recommends` in dockerfile --- share/docker/openfast_ubuntu/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/docker/openfast_ubuntu/Dockerfile b/share/docker/openfast_ubuntu/Dockerfile index 40e68e185..2c991eb2c 100644 --- a/share/docker/openfast_ubuntu/Dockerfile +++ b/share/docker/openfast_ubuntu/Dockerfile @@ -25,7 +25,7 @@ FROM ${BASE} AS build ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update -qq && \ - apt-get install -y \ + apt-get install --no-install-recommends -y \ software-properties-common \ build-essential \ cmake \ @@ -64,7 +64,7 @@ ARG TIMEZONE=UTC ENV DEBIAN_FRONTEND=noninteractive TZ=${TIMEZONE} RUN apt-get update -qq && \ - apt-get install -y \ + apt-get install --no-install-recommends -y \ libblas-dev \ liblapack-dev \ nano \ From 8cbac60679b8d64b184b30b4cde550c5afa58cca Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Tue, 26 Mar 2024 16:44:40 +0000 Subject: [PATCH 2/2] OPS: Factor out and fix docker repository in docker workflow --- .github/workflows/build-docker-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 264348330..393ee1daa 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -18,6 +18,7 @@ jobs: env: DOCKERFILE_PATH: share/docker/openfast_ubuntu/Dockerfile DOCKERFILE_PERMALINK: https://raw.githubusercontent.com/octue/openfast/update-dockerfiles/share/docker/openfast_ubuntu/Dockerfile + DOCKER_HUB_REPOSITORY: octue/openfast steps: - name: Checkout uses: actions/checkout@v4 @@ -45,7 +46,7 @@ jobs: context: . file: ${{ env.DOCKERFILE_PATH }} platforms: linux/amd64 - tags: nrel/openfast:${{ github.event.inputs.tag }} + tags: ${{ env.DOCKER_HUB_REPOSITORY }}:${{ github.event.inputs.tag }} push: true cache-from: type=gha cache-to: type=gha,mode=max