Skip to content

Commit

Permalink
Dockerfile: install kstart
Browse files Browse the repository at this point in the history
* add XrootD
  • Loading branch information
kpsherva committed May 23, 2023
1 parent d8d49f0 commit a394a44
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,29 @@

FROM registry.cern.ch/inveniosoftware/almalinux:1

ENV KEYTAB_PATH '/var/lib/secrets'
ENV KERBEROS_TOKEN_PATH '/var/run/krb5-tokens'

RUN dnf install -y epel-release

# Volume where to mount the keytab as a secrets
# If credentials are passed as username and password with
# KEYTAB_USER and KEYTAB_PWD environment variables, a keytab will be
# generated and stored in KEYTAB_PATH.
RUN dnf install -y kstart krb5-workstation

RUN mkdir -p $KEYTAB_PATH && chmod a+rw $KEYTAB_PATH


ARG xrootd_version="5.5.4"
RUN if [ ! -z "$xrootd_version" ] ; then XROOTD_V="-$xrootd_version" ; else XROOTD_V="" ; fi && \
echo "Will install xrootd version: $XROOTD_V (latest if empty)" && \
dnf install -y xrootd"$XROOTD_V" python3-xrootd"$XROOTD_V"

COPY site ./site
COPY Pipfile Pipfile.lock ./
RUN pipenv install --deploy --system
RUN pipenv install invenio-xrootd">=2.0.0a1"

COPY ./docker/uwsgi/ ${INVENIO_INSTANCE_PATH}
COPY ./invenio.cfg ${INVENIO_INSTANCE_PATH}
Expand All @@ -26,4 +46,5 @@ RUN cp -r ./static/. ${INVENIO_INSTANCE_PATH}/static/ && \
invenio collect --verbose && \
invenio webpack buildall


ENTRYPOINT [ "bash", "-c"]
1 change: 1 addition & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -245,3 +245,4 @@ OAISERVER_ID_PREFIX = "cds-rdm.com"
# --------------

SEARCH_INDEX_PREFIX = "cds-rdm-"
COMMUNITIES_ALLOW_RESTRICTED = False

0 comments on commit a394a44

Please sign in to comment.