Add a GHNConfig.xml template with variables taken from the docker env
This commit is contained in:
parent
790ecdcf49
commit
899b58e858
|
@ -18,10 +18,14 @@ 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
|
||||
RUN apt-get install -y wget gettext-base
|
||||
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
|
||||
RUN chmod 755 /home/gcube/gCore/bin/gcore-start-container
|
||||
EXPOSE 8080
|
||||
USER gcube
|
||||
|
|
|
@ -0,0 +1,81 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jndiConfig xmlns="http://wsrf.globus.org/jndi/config">
|
||||
<global>
|
||||
|
||||
<environment
|
||||
name="securityenabled"
|
||||
value="false"
|
||||
type="java.lang.Boolean"
|
||||
override="false" />
|
||||
|
||||
<environment
|
||||
name="accountingenabled"
|
||||
value="false"
|
||||
type="java.lang.Boolean"
|
||||
override="false" />
|
||||
|
||||
<environment
|
||||
name="mode"
|
||||
value="ROOT"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<!-- multiple scopes must be separated by a comma (e.g "EM,testing")-->
|
||||
<environment
|
||||
name="startScopes"
|
||||
value="${START_SCOPE}"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="allowedScopes"
|
||||
value=""
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="infrastructure"
|
||||
value="${INFRASTRUCTURE}"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="labels"
|
||||
value="GHNLabels.xml"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="GHNtype"
|
||||
value="STATIC"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="localProxy"
|
||||
value="/home/globus/..."
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="coordinates"
|
||||
value="43.719627,10.421626"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="country"
|
||||
value="it"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="location"
|
||||
value="Pisa"
|
||||
type="java.lang.String"
|
||||
override="false" />
|
||||
<environment
|
||||
name="updateInterval"
|
||||
value="60"
|
||||
type="java.lang.Long"
|
||||
override="false" />
|
||||
|
||||
<environment
|
||||
name="trustedGHNSynchInterval"
|
||||
value="600"
|
||||
type="java.lang.Long"
|
||||
override="false" />
|
||||
|
||||
</global>
|
||||
</jndiConfig>
|
Loading…
Reference in New Issue