forked from mtusi2026/mtusi2026lab4
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
771882427c | ||
|
|
4cec8f1c5a |
+1
-3
@@ -65,15 +65,13 @@ services:
|
|||||||
args:
|
args:
|
||||||
MC_VERSION: RELEASE.2025-08-13T08-35-41Z
|
MC_VERSION: RELEASE.2025-08-13T08-35-41Z
|
||||||
image: mtusi-mc:RELEASE.2025-08-13T08-35-41Z
|
image: mtusi-mc:RELEASE.2025-08-13T08-35-41Z
|
||||||
entrypoint: ["/bin/sh", "/bootstrap/bootstrap.sh"]
|
entrypoint: ["/bin/sh", "/usr/local/bin/bootstrap.sh"]
|
||||||
environment:
|
environment:
|
||||||
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
|
||||||
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
|
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
|
||||||
S3_BUCKET: ${S3_BUCKET}
|
S3_BUCKET: ${S3_BUCKET}
|
||||||
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
|
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
|
||||||
S3_SECRET_KEY: ${S3_SECRET_KEY}
|
S3_SECRET_KEY: ${S3_SECRET_KEY}
|
||||||
volumes:
|
|
||||||
- ./infra/minio:/bootstrap:ro
|
|
||||||
depends_on:
|
depends_on:
|
||||||
s3:
|
s3:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -11,5 +11,6 @@ RUN LDFLAGS="$(MC_RELEASE=RELEASE go run buildscripts/gen-ldflags.go)" && \
|
|||||||
FROM alpine:3.22.2
|
FROM alpine:3.22.2
|
||||||
|
|
||||||
COPY --from=build /out/mc /usr/local/bin/mc
|
COPY --from=build /out/mc /usr/local/bin/mc
|
||||||
|
COPY infra/minio/bootstrap.sh /usr/local/bin/bootstrap.sh
|
||||||
|
|
||||||
ENTRYPOINT ["mc"]
|
ENTRYPOINT ["mc"]
|
||||||
|
|||||||
Reference in New Issue
Block a user