Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Dockerfile.rh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM registry.redhat.io/ubi9/go-toolset:latest@sha256:0f4f6f7868962aa75dddfe4230b664bdf77071e92c43c70c824c58450e37693f as builder
ENV CGO_ENABLED=1 \
GOEXPERIMENT=strictfipsruntime
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:f5346fbb587b72b5376e66272935d22c62af78be2e8ea1dcf3e9e46865a9a2ee as builder

USER root

RUN dnf install -y perl gcc openssl openssl-devel cmake gcc-c++ git curl-minimal unzip cyrus-sasl-devel rust cargo
RUN microdnf -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 install \
perl gcc openssl openssl-devel cmake gcc-c++ git curl-minimal unzip cyrus-sasl-devel rust cargo golang && \
microdnf -y clean all

RUN mkdir /tmp/tuftool
COPY . /tmp/tuftool
RUN cd /tmp/tuftool && cargo build --release --features fips

FROM registry.access.redhat.com/ubi9/ubi:latest@sha256:9e6e193bfc3596a84d2a32f42d6b1552398ec9735b9a4e893a0fc3c6fbccb381 as deploy
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:f5346fbb587b72b5376e66272935d22c62af78be2e8ea1dcf3e9e46865a9a2ee as deploy

RUN microdnf -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 install openssl && \
microdnf -y clean all

COPY --from=builder /tmp/tuftool/target/release/tuftool /usr/bin/
COPY licenses/LICENSE-APACHE /licenses/license.txt
Expand Down
15 changes: 8 additions & 7 deletions Dockerfile.tuffer
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
FROM registry.redhat.io/ubi9/go-toolset:latest@sha256:0f4f6f7868962aa75dddfe4230b664bdf77071e92c43c70c824c58450e37693f as builder
ENV CGO_ENABLED=1 \
GOEXPERIMENT=strictfipsruntime
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:f5346fbb587b72b5376e66272935d22c62af78be2e8ea1dcf3e9e46865a9a2ee as builder

USER root

RUN dnf install -y perl gcc openssl openssl-devel cmake gcc-c++ git curl-minimal unzip cyrus-sasl-devel rust cargo
RUN microdnf -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 install \
perl gcc openssl openssl-devel cmake gcc-c++ git curl-minimal unzip cyrus-sasl-devel rust cargo golang && \
microdnf -y clean all

RUN mkdir /tmp/tuftool
COPY . /tmp/tuftool
RUN cd /tmp/tuftool && cargo build --release --features fips

FROM registry.access.redhat.com/ubi9/ubi:latest@sha256:9e6e193bfc3596a84d2a32f42d6b1552398ec9735b9a4e893a0fc3c6fbccb381 as deploy
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:f5346fbb587b72b5376e66272935d22c62af78be2e8ea1dcf3e9e46865a9a2ee as deploy

RUN microdnf -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 install openssl && \
microdnf -y clean all

COPY --from=builder /tmp/tuftool/target/release/tuftool /usr/bin/
COPY licenses/LICENSE-APACHE /licenses/license.txt
Expand Down
2 changes: 1 addition & 1 deletion rpms.in.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages: [perl, gcc, openssl, openssl-devel, cmake, gcc-c++, git, curl-minimal, unzip, cyrus-sasl-devel, rust, cargo]
packages: [perl, gcc, openssl, openssl-devel, cmake, gcc-c++, git, curl-minimal, unzip, cyrus-sasl-devel, rust, cargo, golang]
contentOrigin:
repofiles: ["./ubi.repo"]
arches: [x86_64]
Loading
Loading