Skip to content

Commit

Permalink
Merge pull request #804 from jecluis/wip-fix-dockerfile
Browse files Browse the repository at this point in the history
Dockerfile: allow specifying s3gw directory
  • Loading branch information
jecluis authored Nov 17, 2023
2 parents f6589aa + 5a11d88 commit e73f70d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ ENV LD_LIBRARY_PATH=/s3gw/lib:$LD_LIBRARY_PATH
FROM s3gw-base as buildenv

ARG CMAKE_BUILD_TYPE=Debug
ARG SRC_CEPH_DIR=./ceph

ENV SRC_CEPH_DIR="${SRC_CEPH_DIR:-"./ceph"}"
ENV SRC_CEPH_DIR=${SRC_CEPH_DIR}
ENV ENABLE_GIT_VERSION=OFF

# Needed for extra build deps
Expand Down Expand Up @@ -189,6 +190,8 @@ ARG QUAY_EXPIRATION=Never
ARG S3GW_VERSION=Development
ARG S3GW_ID=s3gw

ARG SRC_S3GW_DIR=.

ENV S3GW_ID=${S3GW_ID}
ENV S3GW_DNS_NAME=""
ENV S3GW_DEBUG="none"
Expand All @@ -208,7 +211,7 @@ COPY --from=buildenv [ \
"/srv/ceph/build/lib/libceph-common.so.2", \
"/s3gw/lib/" ]

COPY tools/entrypoint.sh /s3gw/bin/
COPY ${SRC_S3GW_DIR}/tools/entrypoint.sh /s3gw/bin/

# ports for S3 endpoints
# http: 7480
Expand Down

0 comments on commit e73f70d

Please sign in to comment.