-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
405 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> | ||
<fileset name="all" enabled="true" check-config-name=" WebAnno checkstyle file" local="false"> | ||
<file-match-pattern match-pattern="." include-pattern="true"/> | ||
</fileset> | ||
</fileset-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# =================================================================== | ||
# WebAnno Properties | ||
# =================================================================== | ||
|
||
database.initial-pool-size=4 | ||
database.min-pool-size=4 | ||
database.max-pool-size=10 | ||
database.generate=update | ||
|
||
backup.keep.time=0 | ||
backup.interval=0 | ||
backup.keep.number=0 | ||
|
||
ui.brat.sentences.number=5 | ||
|
||
debug.casDoctor.checks= | ||
debug.casDoctor.repairs= | ||
debug.casDoctor.fatal=false | ||
debug.casDoctor.forceReleaseBehavior=false | ||
|
||
# =================================================================== | ||
# Spring Boot Properties | ||
# =================================================================== | ||
|
||
# IDENTITY (ContextIdApplicationContextInitializer) | ||
spring.application.name=WebAnno | ||
|
||
# MULTIPART (MultipartProperties) | ||
spring.http.multipart.max-file-size=100MB | ||
spring.http.multipart.max-request-size=100MB | ||
|
||
spring.resources.cache-period=31536000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,23 @@ | ||
############################################################ | ||
# | ||
# Dockerfile to build webanno container images | ||
# | ||
# Inspired by | ||
# * https://github.com/NLPbox/webanno-docker | ||
# * https://github.com/simonmeoni/webanno-docker | ||
############################################################ | ||
|
||
################## BEGIN INSTALLATION ###################### | ||
FROM tomcat:7-jre8 | ||
FROM openjdk:8 | ||
|
||
MAINTAINER WebAnno Team | ||
|
||
RUN apt-get update | ||
# Install tomcat utilities (we will need tomcat7-instance-create) and mysql | ||
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget mysql-server mysql-client tomcat7-user tomcat7-admin authbind | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget tomcat7-user tomcat7-admin authbind | ||
|
||
# Copy webanno and mysql settings to tmp | ||
# COPY create_webanno_db.sql mysql-init /tmp/ | ||
|
||
# Setup mysql as depicted in the webanno admin guide | ||
# RUN service mysql stop | ||
# RUN mysqld_safe --init-file=/tmp/mysql-init & | ||
# RUN rm /tmp/mysql-init | ||
# RUN service mysql start && \ | ||
# mysql -u root < /tmp/create_webanno_db.sql | ||
|
||
WORKDIR /opt | ||
|
||
# Create a tomcat7 instance of webanno to operate on port 18080 as | ||
# shown in the official admin guide | ||
RUN tomcat7-instance-create -p 18080 -c 18005 webanno && \ | ||
chown -R www-data /opt/webanno | ||
|
||
# create some folders to get rid of tomcat7 warnings | ||
RUN mkdir -p /usr/share/tomcat7/common/classes /usr/share/tomcat7/server/classes /usr/share/tomcat7/shared/classes | ||
WORKDIR /opt/webanno | ||
|
||
# Rename the webanno webapp | ||
COPY webanno_initd /etc/init.d/webanno | ||
COPY @docker.warfile@ /opt/webanno/webapps/ROOT.war | ||
|
||
# Setup webanno as a service | ||
RUN chmod +x /etc/init.d/webanno | ||
RUN update-rc.d webanno defaults | ||
COPY @docker.warfile@ webanno-standalone.jar | ||
|
||
# this will be the WebAnno home folder | ||
RUN mkdir /export | ||
RUN chown -R www-data /export | ||
# COPY settings.properties /export/settings.properties | ||
|
||
COPY entrypoint.sh /opt/webanno/entrypoint.sh | ||
|
||
##################### INSTALLATION END ##################### | ||
|
||
VOLUME /export | ||
|
||
EXPOSE 18080 | ||
EXPOSE 8080 | ||
|
||
ENV JAVA_OPTS="-Xmx750m" | ||
|
||
CMD bash /opt/webanno/entrypoint.sh | ||
CMD java ${JAVA_OPTS} -Djava.awt.headless=true -XX:+UseConcMarkSweepGC -Dwebanno.home=/export -jar webanno-standalone.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
docker run -v /path/on/host/webanno/repository:/export -p 18080:18080 webanno/webanno:latest | ||
mvn -Pdocker clean install docker:build (optionally add docker:push) | ||
|
||
-v /my/own/datadir:/var/lib/mysql | ||
docker run -v /path/on/host/webanno/repository:/export -p port-on-host:8080 webanno/webanno:latest | ||
|
||
export WEBANNO_HOME=/path/on/host/webanno | ||
export WEBANNO_PORT=port-on-host | ||
docker-compose up -d | ||
|
||
docker-compose down |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
## | ||
# docker-compose up [-d] | ||
# docker-compose down | ||
## | ||
version: '2.1' | ||
|
||
networks: | ||
webanno-net: | ||
|
||
services: | ||
mysqlserver: | ||
image: "mysql:5" | ||
environment: | ||
- MYSQL_RANDOM_ROOT_PASSWORD=yes | ||
- MYSQL_DATABASE=webanno | ||
- MYSQL_USER=webanno | ||
- MYSQL_PORT=3306 | ||
- MYSQL_PASSWORD=webanno | ||
volumes: | ||
- ${WEBANNO_HOME}./mysql-data:/var/lib/mysql | ||
command: ["--character-set-server=utf8", "--collation-server=utf8_bin"] | ||
healthcheck: | ||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-pwebanno", "-uwebanno"] | ||
interval: 20s | ||
timeout: 10s | ||
retries: 10 | ||
networks: | ||
webanno-net: | ||
|
||
webserver: | ||
image: "webanno/webanno-snapshots:latest" | ||
ports: | ||
- "${WEBANNO_PORT}:8080" | ||
environment: | ||
- WEBANNO_DB_DIALECT=org.hibernate.dialect.MySQL5InnoDBDialect | ||
- WEBANNO_DB_DRIVER=com.mysql.jdbc.Driver | ||
- WEBANNO_DB_URL=jdbc:mysql://mysqlserver:3306/webanno?useSSL=false&useUnicode=true&characterEncoding=UTF-8 | ||
- WEBANNO_DB_USERNAME=webanno | ||
- WEBANNO_DB_PASSWORD=webanno | ||
volumes: | ||
- ${WEBANNO_HOME}./server-data:/export | ||
depends_on: | ||
mysqlserver: | ||
condition: service_healthy | ||
mem_limit: 4g | ||
memswap_limit: 5g | ||
restart: unless-stopped | ||
networks: | ||
webanno-net: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.