Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable FIPS support #227

Merged
merged 2 commits into from
Dec 11, 2024
Merged
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
22 changes: 6 additions & 16 deletions Containerfile.rhtap
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_1.22 AS builder
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.22 AS builder

ENV SOURCE_DIR=/maestro
WORKDIR $SOURCE_DIR
COPY . $SOURCE_DIR

ENV GOFLAGS=""
RUN make binary
RUN pwd
ENV GOEXPERIMENT=strictfipsruntime
ENV CGO_ENABLED=1
RUN make binary BUILD_OPTS="-tags strictfipsruntime"

FROM registry.access.redhat.com/ubi9/ubi-minimal:latest

RUN \
microdnf update -y \
&& \
microdnf install -y util-linux \
&& \
microdnf clean all

COPY --from=builder \
/maestro/maestro \
/usr/local/bin/

RUN microdnf update -y && microdnf install -y util-linux && microdnf clean all
COPY --from=builder /maestro/maestro /usr/local/bin/
EXPOSE 8000

ENTRYPOINT ["/usr/local/bin/maestro", "server"]

LABEL name="maestro" \
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ lint:
# Build binaries
# NOTE it may be necessary to use CGO_ENABLED=0 for backwards compatibility with centos7 if not using centos7
binary: check-gopath
${GO} build ./cmd/maestro
${GO} mod vendor
${GO} build $(BUILD_OPTS) ./cmd/maestro
.PHONY: binary

# Install
Expand Down
Loading