Skip to content

Commit 0293728

Browse files
committed
chore: align zookeeper patch directory structure
1 parent 597ec11 commit 0293728

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

druid/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ EOF
3333
USER ${STACKABLE_USER_UID}
3434
WORKDIR /stackable
3535

36-
COPY --chown=stackable:0 druid/stackable/patches/${PRODUCT} /stackable/src/druid/stackable/patches/${PRODUCT}
36+
COPY --chown=${STACKABLE_USER_UID}:0 druid/stackable/patches/${PRODUCT} /stackable/src/druid/stackable/patches/${PRODUCT}
3737

3838
# Cache mounts are owned by root by default
3939
# We need to explicitly give the uid to use which is hardcoded to "1000" in stackable-base

zookeeper/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ ARG PRODUCT
1010
ARG JMX_EXPORTER
1111
ARG STACKABLE_USER_UID
1212

13-
# Copy patches and JMX config into the builder
14-
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable /stackable
13+
# Copy patches into the builder
14+
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/patches/${PRODUCT} /stackable/src/zookeeper/stackable/patches/${PRODUCT}
15+
# Copy JMX config into the builder
16+
COPY --chown=${STACKABLE_USER_UID}:0 zookeeper/stackable/jmx /stackable/jmx
1517

1618
USER ${STACKABLE_USER_UID}
1719
WORKDIR /stackable
1820

1921
# Download ZooKeeper sources from our own repo
20-
RUN mkdir -p zookeeper/stackable && mv patches zookeeper/stackable/ && \
21-
BUILD_SRC_DIR="$(/stackable/patchable --images-repo-root=. checkout zookeeper ${PRODUCT})" && \
22+
RUN BUILD_SRC_DIR="$(/stackable/patchable --images-repo-root=src checkout zookeeper ${PRODUCT})" && \
2223
cd "${BUILD_SRC_DIR}" && \
2324
# Exclude the `zookeeper-client` submodule, this is not needed and has c parts
2425
# that created all kinds of issues for the build container

0 commit comments

Comments
 (0)