Skip to content

Commit

Permalink
chore: Update Containerfile
Browse files Browse the repository at this point in the history
The Containerfile was using an outdated version of Rust that was
causing compilation failures. This bumps it to the latest.

Signed-off-by: Andrew Lilley Brinker <[email protected]>
  • Loading branch information
alilleybrinker authored and mchernicoff committed Sep 16, 2024
1 parent 2a23383 commit e0892bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run string replace
uses: frabert/replace-string-action@v2
id: format-tag
Expand All @@ -25,13 +27,16 @@ jobs:
string: "${{ github.event.release.tag_name || github.event.inputs.version }}"
replace-with: ""
flags: "g"

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Checkout the Hipcheck Repository
uses: actions/checkout@v4

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
Expand All @@ -41,6 +46,7 @@ jobs:
push: true
platforms: "linux/amd64,linux/arm64"
tags: mitre/hipcheck:latest,mitre/hipcheck:${{ steps.format-tag.outputs.replaced }}

- name: Verify Dockerhub Description Size
id: verify_dockerhub_readme_size
run: |
Expand All @@ -56,6 +62,7 @@ jobs:
exit 1
fi
echo "File is small enough to push: $FILE_SIZE (MAX allowed is $MAX_SIZE)"
- name: Update Dockerhub description
if: success()
uses: peter-evans/dockerhub-description@v4
Expand Down
3 changes: 1 addition & 2 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#============================================================================
# Builder Layer

FROM rust:1.79.0-slim-bookworm AS builder
FROM rust:1.81.0-slim-bookworm AS builder

WORKDIR /build

Expand Down Expand Up @@ -31,7 +31,6 @@ RUN set -eux && \
apt-get update && \
apt-get install -y npm git && \
apt-get clean && \
npm install -g [email protected] --no-audit --no-fund && \
adduser --disabled-password hc_user && \
chown -R hc_user /app

Expand Down

0 comments on commit e0892bb

Please sign in to comment.