1
1
# Using inlined version of ubi8-rust-builder, ends at ## END OF ubi8-rust-builder
2
2
# Each modification (apart from removing ONBUILD clauses) should be preceded by a ## PATCH comment explaining the change
3
3
# 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
5
5
LABEL maintainer="Stackable GmbH"
6
6
7
7
# https://github.com/hadolint/hadolint/wiki/DL4006
8
8
SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
9
9
10
10
# Update image and install everything needed for Rustup & Rust
11
+ # hadolint ignore=DL3041
11
12
RUN microdnf update --disablerepo=* --enablerepo=ubi-8-appstream-rpms --enablerepo=ubi-8-baseos-rpms -y \
12
13
&& rm -rf /var/cache/yum \
13
14
&& 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 /
57
58
WORKDIR /src
58
59
COPY . /src
59
60
60
- # hadolint ignore=SC1091
61
61
# # PATCH: disabled cyclonedx, run yarn install, build stackable-cockpitd with ui feature enabled
62
+ # hadolint ignore=SC1091
62
63
RUN . "$HOME/.cargo/env" && yarn && cargo build --release --workspace --features stackable-cockpitd/ui
63
64
# ONBUILD RUN . "$HOME/.cargo/env" && cargo auditable build --release --workspace && cargo cyclonedx --output-pattern package --all --output-cdx
64
65
@@ -79,6 +80,7 @@ RUN find /src/target/release \
79
80
RUN echo "The following files will be copied to the runtime image: $(ls /app)"
80
81
# # END OF ubi8-rust-builder
81
82
83
+ # hadolint ignore=DL3006
82
84
FROM registry.access.redhat.com/ubi8/ubi-minimal AS operator
83
85
84
86
ARG VERSION
@@ -93,12 +95,14 @@ LABEL name="Stackable Cockpit" \
93
95
description="Deploy and manage Stackable clusters."
94
96
95
97
# Update image
98
+ # hadolint ignore=DL3041
96
99
RUN microdnf install -y yum \
97
100
&& yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical \
98
101
&& yum clean all \
99
102
&& microdnf clean all
100
103
101
104
# Install kerberos client libraries
105
+ # hadolint ignore=DL3041
102
106
RUN microdnf install -y krb5-libs libkadm5 && microdnf clean all
103
107
104
108
# COPY LICENSE /licenses/LICENSE
0 commit comments