Skip to content
Snippets Groups Projects
Commit 033bf5c7 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

BIS-1047 : AFS installer

parent 71b59279
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ println "installerDir:${installerDistDir}"
println "buildDir:${buildDir}"
println "installer:${project.projectDir}/resource/installer"
task copyResources(type: Copy, dependsOn: [compileJava, ':core-plugin-openbis:zip', ':core-plugin-openbis:zipDss', ':core-plugin-openbis:zipBdlServer']) {
task copyResources(type: Copy, dependsOn: [compileJava, ':core-plugin-openbis:zip', ':core-plugin-openbis:zipDss', ':core-plugin-openbis:zipBdlServer', ':core-plugin-openbis:zipAfsServer']) {
duplicatesStrategy 'include'
from "${project.projectDir}/resource/installer"
from "${project.projectDir}/../core-plugin-openbis/dist/tarball/installer"
......@@ -62,6 +62,8 @@ task copyResources(type: Copy, dependsOn: [compileJava, ':core-plugin-openbis:zi
into installerDistDir
from zipTree(project(':core-plugin-openbis').zipBdlServer.archivePath)
into installerDistDir
from zipTree(project(':core-plugin-openbis').zipAfsServer.archivePath)
into installerDistDir
from("${installerDistDir}/../BUILD-app-openbis-installer.INFO") {
into 'bin'
}
......
......@@ -224,6 +224,11 @@
targetdir="$INSTALL_PATH/servers"/>
</pack>
<pack name="AFS Server" required="yes" loose="yes">
<description>The atomic filesystem server managing raw data</description>
<file src="@{installer.dist.dir}/afs-server"
targetdir="$INSTALL_PATH/servers"/>
</pack>
<pack name="Administration Scripts" required="yes" loose="yes">
<description>Scripts to facilitate openBIS administration</description>
......
includeFlat 'lib-commonbase', 'lib-common', 'lib-json',
includeFlat 'lib-commonbase', 'lib-common', 'lib-json', 'lib-transactional-file-system',
'api-openbis-java', 'lib-openbis-common', 'lib-authentication', 'lib-dbmigration', 'server-application-server',
'server-original-data-store', 'server-screening', 'core-plugin-openbis', 'server-external-data-store',
'server-original-data-store', 'server-screening', 'core-plugin-openbis', 'server-external-data-store', 'server-data-store',
'ui-admin', 'lib-microservice-server', 'ui-eln-lims', 'api-openbis-javascript', 'api-openbis-typescript', 'api-data-store-server-java', 'api-data-store-server-javascript'
......@@ -38,6 +38,7 @@ evaluationDependsOn(':server-application-server')
evaluationDependsOn(':server-original-data-store')
evaluationDependsOn(':server-screening')
evaluationDependsOn(':server-external-data-store')
evaluationDependsOn(':server-data-store')
evaluationDependsOn(':ui-admin')
evaluationDependsOn(':ui-eln-lims')
......@@ -467,6 +468,11 @@ task zipBdlServer(type: Zip, dependsOn: project(':server-external-data-store').t
from zipTree('../server-external-data-store/build/distributions/server-external-data-store.zip')
}
task zipAfsServer(type: Zip, dependsOn: project(':server-data-store').tasks.distZip) {
baseName 'afs_server'
from zipTree('../server-data-store/build/distributions/afs-server.zip')
}
task pybisZip(type: Zip) {
baseName 'pybis'
from '../api-openbis-python3-pybis/'
......
includeFlat 'lib-commonbase', 'lib-common', 'api-openbis-java', 'lib-openbis-common', 'lib-authentication', 'lib-dbmigration', 'lib-json',
'server-application-server', 'server-original-data-store', 'server-screening', 'server-external-data-store',
includeFlat 'lib-commonbase', 'lib-common', 'api-openbis-java', 'lib-openbis-common', 'lib-authentication', 'lib-dbmigration', 'lib-json', 'lib-transactional-file-system',
'server-application-server', 'server-original-data-store', 'server-screening', 'server-external-data-store', 'server-data-store',
'ui-admin', 'lib-microservice-server', 'ui-eln-lims', 'api-openbis-javascript', 'api-openbis-typescript', 'api-data-store-server-java', 'api-data-store-server-javascript'
......@@ -40,4 +40,8 @@ task AFSServerDevelopmentEnvironmentStart(type: JavaExec) {
'--add-opens=java.base/java.nio=ALL-UNNAMED',
'-Dio.netty.tryReflectionSetAccessible=true',
'-Xmx256M', '-ea'])
}
distZip {
baseName 'afs-server'
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<Appenders>
<File name="File" fileName="logs/afs-server.log" immediateFlush="false" append="false">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
</Appenders>
<Loggers>
<Root level="ALL">
<AppenderRef ref="File"/>
</Root>
</Loggers>
</Configuration>
\ No newline at end of file
logFactoryClass=ch.ethz.sis.shared.log.log4j2.Log4J2LogFactory
logConfigFile=./etc/log4j2.xml
jsonObjectMapperClass=ch.ethz.sis.afsjson.jackson.JacksonObjectMapper
# Where all the transactions information is written until the prepare step
# For performance reasons should be on the save volume as the configured storage
writeAheadLogRoot=./transactions
storageRoot=./store
storageUuid=
httpServerClass=ch.ethz.sis.afsserver.http.impl.NettyHttpServer
httpServerUri=/afs-server
httpServerPort=8085
// 1 MiB of Base64 URL encoded data, 1 kiB of other data and 10% safety margin
httpMaxContentLength=1540165
maxReadSizeInBytes=1048576
authenticationInfoProviderClass=ch.ethz.sis.afsserver.worker.providers.impl.OpenBISAuthenticationInfoProvider
authorizationInfoProviderClass=ch.ethz.sis.afsserver.worker.providers.impl.OpenBISAuthorizationInfoProvider
poolSize=50
connectionFactoryClass=ch.ethz.sis.afsserver.worker.ConnectionFactory
workerFactoryClass=ch.ethz.sis.afsserver.worker.WorkerFactory
publicApiInterface=ch.ethz.sis.afsapi.api.PublicAPI
apiServerInteractiveSessionKey=
apiServerTransactionManagerKey=
apiServerWorkerTimeout=3600000
openBISUrl=https://localhost:8443/
openBISTimeout=30000
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment