Update to latest S3Proxy

This commit is contained in:
byte[] 2022-02-09 20:33:10 -05:00
parent 963c20c60c
commit 82c84fcccb
3 changed files with 3 additions and 33 deletions

View file

@ -77,9 +77,9 @@ services:
driver: "none"
files:
build:
context: .
dockerfile: ./docker/files/Dockerfile
image: andrewgaul/s3proxy:sha-5aec5c1
environment:
- JCLOUDS_FILESYSTEM_BASEDIR=/srv/philomena/priv/s3
volumes:
- .:/srv/philomena

View file

@ -1,2 +0,0 @@
FROM andrewgaul/s3proxy:sha-2e61c38
COPY docker/files/run-docker-container.sh /opt/s3proxy/run-docker-container.sh

View file

@ -1,28 +0,0 @@
#!/bin/sh
# forked because it doesn't let me configure the filesystem basedir via env
mkdir -p /srv/philomena/priv/s3
exec java \
-DLOG_LEVEL="${LOG_LEVEL}" \
-Ds3proxy.endpoint="${S3PROXY_ENDPOINT}" \
-Ds3proxy.virtual-host="${S3PROXY_VIRTUALHOST}" \
-Ds3proxy.authorization="${S3PROXY_AUTHORIZATION}" \
-Ds3proxy.identity="${S3PROXY_IDENTITY}" \
-Ds3proxy.credential="${S3PROXY_CREDENTIAL}" \
-Ds3proxy.cors-allow-all="${S3PROXY_CORS_ALLOW_ALL}" \
-Ds3proxy.cors-allow-origins="${S3PROXY_CORS_ALLOW_ORIGINS}" \
-Ds3proxy.cors-allow-methods="${S3PROXY_CORS_ALLOW_METHODS}" \
-Ds3proxy.cors-allow-headers="${S3PROXY_CORS_ALLOW_HEADERS}" \
-Ds3proxy.ignore-unknown-headers="${S3PROXY_IGNORE_UNKNOWN_HEADERS}" \
-Djclouds.provider="${JCLOUDS_PROVIDER}" \
-Djclouds.identity="${JCLOUDS_IDENTITY}" \
-Djclouds.credential="${JCLOUDS_CREDENTIAL}" \
-Djclouds.endpoint="${JCLOUDS_ENDPOINT}" \
-Djclouds.region="${JCLOUDS_REGION}" \
-Djclouds.regions="${JCLOUDS_REGIONS}" \
-Djclouds.keystone.version="${JCLOUDS_KEYSTONE_VERSION}" \
-Djclouds.keystone.scope="${JCLOUDS_KEYSTONE_SCOPE}" \
-Djclouds.keystone.project-domain-name="${JCLOUDS_KEYSTONE_PROJECT_DOMAIN_NAME}" \
-Djclouds.filesystem.basedir="/srv/philomena/priv/s3" \
-jar /opt/s3proxy/s3proxy \
--properties /dev/null