first steps to the distro 4-0-0

This commit is contained in:
Lucio Lelii 2022-04-20 16:29:44 +02:00
parent 37c896049f
commit 3862f22ad1
7 changed files with 51 additions and 12 deletions

View File

@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
# Changelog for Smartgears Distribution
## [v4.0.0-SNAPSHOT] - 2022-03-30
- moving to smartgears-4.0.0
## [v3.4.5] - 2022-03-29
- fixes issue [#23075]

View File

@ -2,8 +2,8 @@ FROM tomcat:8.5.47-jdk8-openjdk
ARG nexuspath
ARG filename
ARG version
COPY ./target/$filename.tar.gz /smartgears-distro.tar.gz
WORKDIR /
RUN curl -k $nexuspath/$filename.tar.gz --output /smartgears-distro.tar.gz
RUN tar zxvf /smartgears-distro.tar.gz
RUN export CATALINA_HOME=/usr/local/tomcat
RUN mv smartgears-distribution-$version smartgears-distribution

View File

@ -220,13 +220,8 @@ function change_line {
function replace_property {
local PROPERTY=$1
#local OLD_LINE=$(sed -n "/${PROPERTY}/p" $ghnhome/container.xml)
local NEW_LINE=$(sed -n "/${PROPERTY}/p" $distro/container.xml)
#echo "Replacing property ${PROPERTY}:"
#echo $OLD_LINE
#echo $NEW_LINE
change_line "${PROPERTY}" "${NEW_LINE}" $ghnhome/container.xml
#echo "done."
local NEW_LINE=$(sed -n "/${PROPERTY}/p" $distro/container.ini)
change_line "${PROPERTY}" "${NEW_LINE}" $ghnhome/container.ini
}
echo -e "\ninstalling configuration \c"

View File

@ -1,4 +1,3 @@
<configuration scan="true" debug="false">
<appender name="FILE"

View 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

View File

@ -47,8 +47,8 @@
</fileSets>
<files>
<file>
<source>${distroDirectory}/contents/samplecontainer.xml</source>
<destName>container.xml</destName>
<source>${distroDirectory}/contents/samplecontainer.ini</source>
<destName>container.ini</destName>
<filtered>true</filtered>
</file>
</files>

View File

@ -9,7 +9,7 @@
<groupId>org.gcube.distribution</groupId>
<artifactId>smartgears-distribution</artifactId>
<version>3.4.5</version>
<version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>A distribution for the SmartGears Framework</name>
@ -40,6 +40,7 @@
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-smartgears</artifactId>
<version>[4.0.0-SNAPSHOT, 5.0.0-SNAPSHOT)</version>
</dependency>
<dependency>
<groupId>org.gcube.core</groupId>