add a GHNConfig.xml with defaults for scopes and infrastructure
This commit is contained in:
parent
899b58e858
commit
fd5c25763f
|
@ -18,14 +18,11 @@ ENV GLOBUS_OPTIONS=""
|
|||
|
||||
RUN adduser --system --gecos "Gcube service user" --disabled-password --disabled-login --uid 333 --shell /usr/sbin/nologin gcube
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y wget gettext-base
|
||||
RUN apt-get install -y wget
|
||||
WORKDIR /home/gcube
|
||||
RUN cd /home/gcube && wget https://nexus.d4science.org/nexus/content/repositories/gcube-staging-gcore/org/gcube/distribution/ghn-distribution/7.0.1-4.16.0-144317/ghn-distribution-7.0.1-4.16.0-144317.tar.gz && tar zxf ghn-distribution-7.0.1-4.16.0-144317.tar.gz && rm -f ghn-distribution-7.0.1-4.16.0-144317.tar.gz && mkdir -p /home/gcube/gCore/logs /home/gcube/gCore/tmp /home/gcube/gCore/config /home/gcube/gCore/etc && chown gcube /home/gcube/gCore/logs /home/gcube/gCore/tmp /home/gcube/gCore/config /home/gcube/gCore/etc
|
||||
COPY src/gcube-start-container.sh /home/gcube/gCore/bin/gcore-start-container
|
||||
COPY src/GHNConfig.xml.template /home/gcube/gCore/config/GHNConfig.xml.template
|
||||
ENV INFRASTRUCTURE=gcube
|
||||
ENV START_SCOPE=devNext
|
||||
RUN envsubst < /home/gcube/gCore/config/GHNConfig.xml.template > /home/gcube/gCore/config/GHNConfig.xml
|
||||
COPY src/GHNConfig.xml /home/gcube/gCore/config/GHNConfig.xml
|
||||
RUN chmod 755 /home/gcube/gCore/bin/gcore-start-container
|
||||
EXPOSE 8080
|
||||
USER gcube
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<!-- multiple scopes must be separated by a comma (e.g "EM,testing")-->
|
||||
<environment
|
||||
name="startScopes"
|
||||
value="${START_SCOPE}"
|
||||
value="devNext"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
|
@ -32,7 +32,7 @@
|
|||
override="false" />
|
||||
<environment
|
||||
name="infrastructure"
|
||||
value="${INFRASTRUCTURE}"
|
||||
value="gcube"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
Loading…
Reference in New Issue