Skip to content

Commit

Permalink
refactor(e2e): pull vector image and push to local registry
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Dec 2, 2024
1 parent e2b5498 commit 3f82ecf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/e2e/setup/create-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ DEFAULT_TIMEOUT=300s
# We always use the latest released greptimedb image for testing.
GREPTIMEDB_IMAGE=greptime/greptimedb:latest

# We always use the latest released vector image for testing.
VECTOR_IMAGE=timberio/vector:nightly-alpine

# Define the color for the output.
RED='\033[1;31m'
GREEN='\033[1;32m'
Expand Down Expand Up @@ -107,6 +110,14 @@ function pull_greptimedb_image() {
echo -e "${GREEN}<= Greptimedb image is pulled and pushed.${RESET}"
}

function pull_vector_image() {
echo -e "${GREEN}=> Pull and push vector image...${RESET}"
docker pull "$VECTOR_IMAGE"
docker tag "$VECTOR_IMAGE" localhost:${REGISTRY_PORT}/timberio/vector:nightly-alpine
docker push localhost:${REGISTRY_PORT}/timberio/vector:nightly-alpine
echo -e "${GREEN}<= Vector image is pulled and pushed.${RESET}"
}

function create_kind_cluster() {
echo -e "${GREEN}=> Create kind cluster...${RESET}"
# check cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ spec:
replicas: 1
monitoring:
enabled: true
vector:
image: localhost:5001/timberio/vector:nightly-alpine

0 comments on commit 3f82ecf

Please sign in to comment.