Skip to content

Commit

Permalink
Removed Image Building from config.yml file.
Browse files Browse the repository at this point in the history
Removed the code for exiting container when secret is not present.
Signed-off-by: Kushal Shukla <[email protected]>
  • Loading branch information
kushalShukla-web committed Nov 21, 2024
1 parent 3e834aa commit 0f98ebd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 deletions.
8 changes: 0 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,6 @@ jobs:
organization: "$DOCKER_ORG"
login_variable: DOCKER_LOGIN
password_variable: DOCKER_PASSWORD
- prometheus/publish_images:
container_image_name: block-sync
dockerfile_path: "tools/block-sync/Dockerfile"
dockerbuild_context: "tools/block-sync/"
registry: docker.io
organization: "$DOCKER_ORG"
login_variable: DOCKER_LOGIN
password_variable: DOCKER_PASSWORD
workflows:
version: 2
test-infra:
Expand Down
Binary file added tools/block-sync/block-sync
Binary file not shown.
1 change: 1 addition & 0 deletions tools/block-sync/key.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
key: gendata
4 changes: 0 additions & 4 deletions tools/block-sync/upload_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ func newStore(tsdbPath, objectConfig, objectKey string, logger *slog.Logger) (*S
if err != nil {
return nil, fmt.Errorf("failed to read config file: %w", err)
}
if len(configBytes) == 0 {
fmt.Println("Config file is empty, exiting container.")
os.Exit(0)
}

bucket, err := client.NewBucket(log.NewNopLogger(), configBytes, "block-sync")
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions tools/prometheus-builder/key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ git checkout pr-branch
# emptyDir. This file will later be used by the data-downloader init container.
if [ -f "$DIR/key.yml" ]; then
echo "INFO:: key.yml file is Present on $DIR/key.yml directory."
cp "$DIR/key.yml" "$STORAGE/key.yml"
echo "INFO:: key.yml file is Present on $DIR/key.yml directory so download the block from ObjecStorage."
else
echo "INFO:: key.yml File does not exist on $DIR/key.yml directory."
echo "INFO:: key.yml File does not exist on $DIR/key.yml directory so data is not downloaded from ObjectStorage."
fi

0 comments on commit 0f98ebd

Please sign in to comment.