11# Using inlined version of ubi8-rust-builder, ends at ## END OF ubi8-rust-builder
22# Each modification (apart from removing ONBUILD clauses) should be preceded by a ## PATCH comment explaining the change
33# FROM docker.stackable.tech/stackable/ubi8-rust-builder AS builder
4- FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7 @sha256:3e1adcc31c6073d010b8043b070bd089d7bf37ee2c397c110211a6273453433f AS builder
4+ FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:987ae81ce046652ee4a2c3df54dad5e82faa1b078dab5d09f7cfaae11784ed30 AS builder
55LABEL maintainer="Stackable GmbH"
66
77# https://github.com/hadolint/hadolint/wiki/DL4006
88SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
99
1010# Update image and install everything needed for Rustup & Rust
11+ # hadolint ignore=DL3041
1112RUN microdnf update --disablerepo=* --enablerepo=ubi-8-appstream-rpms --enablerepo=ubi-8-baseos-rpms -y \
1213 && rm -rf /var/cache/yum \
1314 && microdnf install --disablerepo=* --enablerepo=ubi-8-appstream-rpms --enablerepo=ubi-8-baseos-rpms curl findutils gcc gcc-c++ make cmake openssl-devel pkg-config systemd-devel unzip tar xz clang krb5-libs libkadm5 -y \
@@ -57,8 +58,8 @@ COPY docker/ubi8-rust-builder/copy_artifacts.sh /
5758WORKDIR /src
5859COPY . /src
5960
60- # hadolint ignore=SC1091
6161# # PATCH: disabled cyclonedx, run yarn install, build stackable-cockpitd with ui feature enabled
62+ # hadolint ignore=SC1091
6263RUN . "$HOME/.cargo/env" && yarn && cargo build --release --workspace --features stackable-cockpitd/ui
6364# ONBUILD RUN . "$HOME/.cargo/env" && cargo auditable build --release --workspace && cargo cyclonedx --output-pattern package --all --output-cdx
6465
@@ -79,6 +80,7 @@ RUN find /src/target/release \
7980RUN echo "The following files will be copied to the runtime image: $(ls /app)"
8081# # END OF ubi8-rust-builder
8182
83+ # hadolint ignore=DL3006
8284FROM registry.access.redhat.com/ubi8/ubi-minimal AS operator
8385
8486ARG VERSION
@@ -93,12 +95,14 @@ LABEL name="Stackable Cockpit" \
9395 description="Deploy and manage Stackable clusters."
9496
9597# Update image
98+ # hadolint ignore=DL3041
9699RUN microdnf install -y yum \
97100 && yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical \
98101 && yum clean all \
99102 && microdnf clean all
100103
101104# Install kerberos client libraries
105+ # hadolint ignore=DL3041
102106RUN microdnf install -y krb5-libs libkadm5 && microdnf clean all
103107
104108# COPY LICENSE /licenses/LICENSE
0 commit comments