Skip to content

Commit 50181a7

Browse files
committed
chore(opa): Remove legacy bundle-builder
1 parent 9635482 commit 50181a7

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

opa/Dockerfile

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,6 @@
11
# syntax=docker/dockerfile:1.10.0@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
22
# check=error=true
33

4-
FROM stackable/image/stackable-base AS opa-bundle-builder
5-
6-
ARG BUNDLE_BUILDER_VERSION
7-
8-
# Update image and install everything needed for Rustup & Rust
9-
RUN <<EOF
10-
microdnf update
11-
microdnf install \
12-
cmake \
13-
gcc \
14-
gcc-c++ \
15-
git \
16-
make \
17-
openssl-devel \
18-
pkg-config \
19-
systemd-devel \
20-
unzip
21-
rm -rf /var/cache/yum
22-
EOF
23-
24-
WORKDIR /
25-
26-
# WARNING (@NickLarsenNZ): We should pin the rustup version
27-
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
28-
RUN git clone --depth 1 --branch ${BUNDLE_BUILDER_VERSION} https://github.com/stackabletech/opa-bundle-builder
29-
RUN <<EOF
30-
cd ./opa-bundle-builder
31-
. "$HOME/.cargo/env"
32-
rustup toolchain install
33-
cargo --quiet build --release
34-
# set correct groups
35-
chmod -R g=u /opa-bundle-builder/target/release/
36-
EOF
37-
384
FROM stackable/image/stackable-base AS multilog-builder
395

406
ARG DAEMONTOOLS_VERSION=0.76
@@ -137,7 +103,6 @@ LABEL name="Open Policy Agent" \
137103
COPY --chown=${STACKABLE_USER_UID}:0 opa/licenses /licenses
138104

139105
COPY --from=opa-builder --chown=${STACKABLE_USER_UID}:0 /stackable/opa /stackable/opa
140-
COPY --from=opa-bundle-builder --chown=${STACKABLE_USER_UID}:0 /opa-bundle-builder/target/release/stackable-opa-bundle-builder /stackable/opa-bundle-builder
141106
COPY --from=multilog-builder --chown=${STACKABLE_USER_UID}:0 /daemontools/admin/daemontools/command/multilog /stackable/multilog
142107

143108
RUN <<EOF

opa/versions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
"product": "1.0.1",
44
"vector": "0.46.1",
5-
"bundle_builder_version": "1.1.2",
65
"stackable-base": "1.0.0",
76
},
87
]

0 commit comments

Comments
 (0)