Skip to content

Commit

Permalink
vault: adjust bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
miku committed Nov 29, 2024
1 parent 68b546e commit 92c4fb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/vault/extra/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN echo "6c340afe7608744d099834972ca243ee5eaed6f1 /wait" | sha1sum --check && \

# this will be the bootstrap script that runs, when the vault containers runs
ADD dev/bootstrap.sh bootstrap.sh
RUN echo "233bb40f0e97a2822a5e0e0b55b7f1ccbf7b1724 ./bootstrap.sh" | sha1sum --check && \
RUN echo "a45490b064f32b3cbe61a0c9df08c951f9d5f1c1 ./bootstrap.sh" | sha1sum --check && \
chmod +x ./bootstrap.sh

# TODO: we may remove these values here, because vault will need a docker
Expand Down
10 changes: 6 additions & 4 deletions backend/vault/extra/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ mkdir -p /usr/local/bin
curl -sL --fail https://dl.min.io/client/mc/release/linux-amd64/mc --create-dirs -o /usr/local/bin/mc
# this is to notice upstream changes and to track them, manually for now
# echo '070f831f1df265ca7de913e6be0174a7555cb3e9 /usr/local/bin/mc' | sha1sum -c
# chmod +x /usr/local/bin/mc
chmod +x ./mc
chmod +x /usr/local/bin/mc
# chmod +x ./mc
# The default configuration stores deposited content in a local S3 daemon. The
# bucket in which replica content is stored must be created manually.
#
Expand All @@ -103,8 +103,10 @@ chmod +x ./mc

# > mc commands that operate on S3-compatible services require specifying an
# alias for that service. -- https://min.io/docs/minio/linux/reference/minio-mc/mc-alias.html
./mc alias set vault http://minio:9000 accesskey secretkey
./mc mb vault/s3storagemanagerdevstorage
# ./mc alias set vault http://minio:9000 accesskey secretkey
# ./mc mb vault/s3storagemanagerdevstorage
/usr/local/bin/mc alias set vault http://minio:9000 accesskey secretkey
/usr/local/bin/mc mb vault/s3storagemanagerdevstorage

# run workers in the background; taken from Makefile: make run-workers; we do
# not care how these are teared down
Expand Down

0 comments on commit 92c4fb3

Please sign in to comment.