Skip to content

Commit a16f00e

Browse files
Support Multiple S3 and Docker Endpoints, and Offering Vault Integration alongside SSM (#350)
* Parametrize Docker image registry * Refactoring scripts for generalization * Automatic style fix * pr changes * added import hvac in get_vault_robot_tokens * pr-changes --------- Co-authored-by: robot-clickhouse <[email protected]>
1 parent 5752ad2 commit a16f00e

File tree

22 files changed

+123
-44
lines changed

22 files changed

+123
-44
lines changed

docker/packager/binary/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# docker build -t clickhouse/binary-builder .
22
ARG FROM_TAG=latest
3-
FROM clickhouse/test-util:latest AS cctools
3+
ARG DOCKER_REPO=docker.io
4+
FROM $DOCKER_REPO/clickhouse/test-util:latest AS cctools
45
# The cctools are built always from the clickhouse/test-util:latest and cached inline
56
# Theoretically, it should improve rebuild speed significantly
67
ENV CC=clang-${LLVM_VERSION}
@@ -39,7 +40,7 @@ RUN git clone --depth 1 https://github.com/tpoechtrager/cctools-port.git \
3940
# END COMPILE
4041
# !!!!!!!!!!!
4142

42-
FROM clickhouse/test-util:$FROM_TAG
43+
FROM $DOCKER_REPO/clickhouse/test-util:$FROM_TAG
4344
ENV CC=clang-${LLVM_VERSION}
4445
ENV CXX=clang++-${LLVM_VERSION}
4546

docker/test/base/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rebuild in #33610
22
# docker build -t clickhouse/test-base .
33
ARG FROM_TAG=latest
4-
FROM clickhouse/test-util:$FROM_TAG
4+
ARG DOCKER_REPO=docker.io
5+
FROM $DOCKER_REPO/clickhouse/test-util:$FROM_TAG
56

67
RUN apt-get update \
78
&& apt-get install \

docker/test/codebrowser/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# docker build --network=host -t clickhouse/codebrowser .
33
# docker run --volume=path_to_repo:/repo_folder --volume=path_to_result:/test_output clickhouse/codebrowser
44
ARG FROM_TAG=latest
5-
FROM clickhouse/binary-builder:$FROM_TAG
5+
ARG DOCKER_REPO=docker.io
6+
FROM $DOCKER_REPO/clickhouse/binary-builder:$FROM_TAG
67

78
# ARG for quick switch to a given ubuntu mirror
89
ARG apt_archive="http://archive.ubuntu.com"

docker/test/fasttest/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rebuild in #33610
22
# docker build -t clickhouse/fasttest .
33
ARG FROM_TAG=latest
4-
FROM clickhouse/test-util:$FROM_TAG
4+
ARG DOCKER_REPO=docker.io
5+
FROM $DOCKER_REPO/clickhouse/test-util:$FROM_TAG
56

67
RUN apt-get update \
78
&& apt-get install \

docker/test/fuzzer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rebuild in #33610
22
# docker build -t clickhouse/fuzzer .
33
ARG FROM_TAG=latest
4-
FROM clickhouse/test-base:$FROM_TAG
4+
ARG DOCKER_REPO=docker.io
5+
FROM $DOCKER_REPO/clickhouse/test-base:$FROM_TAG
56

67
# ARG for quick switch to a given ubuntu mirror
78
ARG apt_archive="http://archive.ubuntu.com"

docker/test/integration/base/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rebuild in #33610
22
# docker build -t clickhouse/integration-test .
33
ARG FROM_TAG=latest
4-
FROM clickhouse/test-base:$FROM_TAG
4+
ARG DOCKER_REPO=docker.io
5+
FROM $DOCKER_REPO/clickhouse/test-base:$FROM_TAG
56

67
SHELL ["/bin/bash", "-c"]
78

docker/test/keeper-jepsen/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rebuild in #33610
22
# docker build -t clickhouse/keeper-jepsen-test .
33
ARG FROM_TAG=latest
4-
FROM clickhouse/test-base:$FROM_TAG
4+
ARG DOCKER_REPO=docker.io
5+
FROM $DOCKER_REPO/clickhouse/test-base:$FROM_TAG
56

67
ENV DEBIAN_FRONTEND=noninteractive
78
ENV CLOJURE_VERSION=1.10.3.814

docker/test/server-jepsen/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rebuild in #33610
22
# docker build -t clickhouse/server-jepsen-test .
33
ARG FROM_TAG=latest
4-
FROM clickhouse/test-base:$FROM_TAG
4+
ARG DOCKER_REPO=docker.io
5+
FROM $DOCKER_REPO/clickhouse/test-base:$FROM_TAG
56

67
ENV DEBIAN_FRONTEND=noninteractive
78
ENV CLOJURE_VERSION=1.10.3.814

docker/test/sqllogic/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# docker build -t clickhouse/sqllogic-test .
22
ARG FROM_TAG=latest
3-
FROM clickhouse/test-base:$FROM_TAG
3+
ARG DOCKER_REPO=docker.io
4+
FROM $DOCKER_REPO/clickhouse/test-base:$FROM_TAG
45

56
RUN apt-get update --yes \
67
&& env DEBIAN_FRONTEND=noninteractive \

docker/test/stateful/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rebuild in #47031
22
# docker build -t clickhouse/stateful-test .
33
ARG FROM_TAG=latest
4-
FROM clickhouse/stateless-test:$FROM_TAG
4+
ARG DOCKER_REPO=docker.io
5+
FROM $DOCKER_REPO/clickhouse/stateless-test:$FROM_TAG
56

67
RUN apt-get update -y \
78
&& env DEBIAN_FRONTEND=noninteractive \

0 commit comments

Comments
 (0)