first steps to the distro 4-0-0
This commit is contained in:
parent
37c896049f
commit
3862f22ad1
|
@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||||
|
|
||||||
# Changelog for Smartgears Distribution
|
# Changelog for Smartgears Distribution
|
||||||
|
|
||||||
|
## [v4.0.0-SNAPSHOT] - 2022-03-30
|
||||||
|
|
||||||
|
- moving to smartgears-4.0.0
|
||||||
|
|
||||||
## [v3.4.5] - 2022-03-29
|
## [v3.4.5] - 2022-03-29
|
||||||
|
|
||||||
- fixes issue [#23075]
|
- fixes issue [#23075]
|
||||||
|
|
|
@ -2,8 +2,8 @@ FROM tomcat:8.5.47-jdk8-openjdk
|
||||||
ARG nexuspath
|
ARG nexuspath
|
||||||
ARG filename
|
ARG filename
|
||||||
ARG version
|
ARG version
|
||||||
|
COPY ./target/$filename.tar.gz /smartgears-distro.tar.gz
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN curl -k $nexuspath/$filename.tar.gz --output /smartgears-distro.tar.gz
|
|
||||||
RUN tar zxvf /smartgears-distro.tar.gz
|
RUN tar zxvf /smartgears-distro.tar.gz
|
||||||
RUN export CATALINA_HOME=/usr/local/tomcat
|
RUN export CATALINA_HOME=/usr/local/tomcat
|
||||||
RUN mv smartgears-distribution-$version smartgears-distribution
|
RUN mv smartgears-distribution-$version smartgears-distribution
|
||||||
|
|
|
@ -220,13 +220,8 @@ function change_line {
|
||||||
|
|
||||||
function replace_property {
|
function replace_property {
|
||||||
local PROPERTY=$1
|
local PROPERTY=$1
|
||||||
#local OLD_LINE=$(sed -n "/${PROPERTY}/p" $ghnhome/container.xml)
|
local NEW_LINE=$(sed -n "/${PROPERTY}/p" $distro/container.ini)
|
||||||
local NEW_LINE=$(sed -n "/${PROPERTY}/p" $distro/container.xml)
|
change_line "${PROPERTY}" "${NEW_LINE}" $ghnhome/container.ini
|
||||||
#echo "Replacing property ${PROPERTY}:"
|
|
||||||
#echo $OLD_LINE
|
|
||||||
#echo $NEW_LINE
|
|
||||||
change_line "${PROPERTY}" "${NEW_LINE}" $ghnhome/container.xml
|
|
||||||
#echo "done."
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo -e "\ninstalling configuration \c"
|
echo -e "\ninstalling configuration \c"
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
<configuration scan="true" debug="false">
|
<configuration scan="true" debug="false">
|
||||||
|
|
||||||
<appender name="FILE"
|
<appender name="FILE"
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
[node]
|
||||||
|
; mandatory
|
||||||
|
; optional fields: mode (=online), publication-frequency-seconds (=60), authorizeChildrenContext (=false)
|
||||||
|
mode = offline
|
||||||
|
hostname = localhost
|
||||||
|
protocol= https
|
||||||
|
port = 8080
|
||||||
|
infrastructure = gcube
|
||||||
|
authorizeChildrenContext = true
|
||||||
|
publicationFrequencyInSeconds = 60
|
||||||
|
|
||||||
|
[properties]
|
||||||
|
; not mandatory
|
||||||
|
SmartGearsDistribution = ${SmartGearsDistribution}
|
||||||
|
SmartGearsDistributionBundle = ${SmartGearsDistributionBundle}
|
||||||
|
|
||||||
|
[site]
|
||||||
|
; mandatory
|
||||||
|
; optional fields: latitude, logitude
|
||||||
|
country = it
|
||||||
|
location = rome
|
||||||
|
|
||||||
|
;[proxy]
|
||||||
|
; not mandatory
|
||||||
|
;protocol = https
|
||||||
|
;hostname = proxy
|
||||||
|
;port = 80
|
||||||
|
|
||||||
|
[authorization]
|
||||||
|
; mandatory
|
||||||
|
; optional fields: provider (=org.gcube.smartgears.security.DefaultAuthorizationProvider)
|
||||||
|
provider = org.gcube.smartgears.security.DefaultAuthorizationProvider
|
||||||
|
credentials.class = org.gcube.smartgears.security.SimpleCredentials
|
||||||
|
credentials.clientID = testClient
|
||||||
|
credentials.secret = testSecret
|
||||||
|
|
||||||
|
;[persistence]
|
||||||
|
; not mandatory (default is LocalPersistence writing in the ghn home)
|
||||||
|
;class = utils.PersistenceWriterTest
|
||||||
|
;location = /tmp
|
|
@ -47,8 +47,8 @@
|
||||||
</fileSets>
|
</fileSets>
|
||||||
<files>
|
<files>
|
||||||
<file>
|
<file>
|
||||||
<source>${distroDirectory}/contents/samplecontainer.xml</source>
|
<source>${distroDirectory}/contents/samplecontainer.ini</source>
|
||||||
<destName>container.xml</destName>
|
<destName>container.ini</destName>
|
||||||
<filtered>true</filtered>
|
<filtered>true</filtered>
|
||||||
</file>
|
</file>
|
||||||
</files>
|
</files>
|
||||||
|
|
3
pom.xml
3
pom.xml
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>smartgears-distribution</artifactId>
|
<artifactId>smartgears-distribution</artifactId>
|
||||||
<version>3.4.5</version>
|
<version>4.0.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>A distribution for the SmartGears Framework</name>
|
<name>A distribution for the SmartGears Framework</name>
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.core</groupId>
|
<groupId>org.gcube.core</groupId>
|
||||||
<artifactId>common-smartgears</artifactId>
|
<artifactId>common-smartgears</artifactId>
|
||||||
|
<version>[4.0.0-SNAPSHOT, 5.0.0-SNAPSHOT)</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.core</groupId>
|
<groupId>org.gcube.core</groupId>
|
||||||
|
|
Loading…
Reference in New Issue