-
Notifications
You must be signed in to change notification settings - Fork 134
Docker updates #3844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Docker updates #3844
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
94a9351
Enable war deployment model (#197.1)
70da572
Delay startup for Solr to start when using docker-compose
4c5ebb3
Docker improvements (WIP)
70d029c
Update VIVO Dependencies GitHub branch reference
20e8799
Use app-name variable for log file naming
687f27f
Update README to build using package
3b11f1b
Merge branch 'VIVO-3034-psuedo-rebase' of https://github.com/vivo-pro…
3017d81
Merge branch 'main' of https://github.com/vivo-project/VIVO into VIVO…
31a3002
Merge branch 'VIVO-3034-psuedo-rebase' of https://github.com/vivo-pro…
f504b43
Cleanup and README updates
70bc159
Environment variables added to java opts on start
3b6cde3
Afford reconfigure on restart
e14d58c
Switch to /usr/local/vivo/home for default VIVO home
c9207a9
Afford changing context path on restart
9b83c59
Build digest on start to preserve existing VIVO home
3e78d45
Switch back to /usr/local/vivo/home for default home directory
8b14696
Merge branch 'VIVO-3034-psuedo-rebase' of https://github.com/vivo-pro…
68cb8fa
Update README.md
f23b0a2
Update docker-compose.yml
87a424f
Remove spurious whitespace in log4j.properties
72e9466
Move wait for solr to docker-compose
88bf752
Merge branch 'VIVO-3034-psuedo-rebase' of https://github.com/vivo-pro…
dd98a1d
Update docker-compose.yml
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,4 +1,7 @@ | ||
LOCAL_SOLR_DATA=./vivo-solr | ||
RESET_CORE=false | ||
|
||
LOCAL_VIVO_HOME=./vivo-home | ||
RESET_HOME=false | ||
RESET_CORE=false | ||
|
||
VERBOSE=no |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -22,6 +22,7 @@ utilities/rdbmigration/.work | |
**/bin/ | ||
|
||
vivo-home/ | ||
vivo-solr/ | ||
|
||
.fake | ||
.ionide | ||
|
This file contains hidden or 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,20 +1,42 @@ | ||
FROM tomcat:9-jdk11-openjdk | ||
ARG USER_ID=3001 | ||
ARG USER_NAME=vivo | ||
ARG USER_HOME_DIR=/home/$USER_NAME | ||
|
||
ARG SOLR_URL=http://localhost:8983/solr/vivocore | ||
ARG VIVO_DIR=/usr/local/vivo/home | ||
ARG TDB_FILE_MODE=direct | ||
ENV TOMCAT_CONTEXT_PATH=ROOT | ||
ENV VIVO_HOME_DIR=/usr/local/vivo/home | ||
ENV TDB_FILE_MODE=direct | ||
ENV ROOT_USER_ADDRESS=vivo_root@mydomain.edu | ||
ENV DEFAULT_NAMESPACE=http://vivo.mydomain.edu/individual/ | ||
|
||
ENV SOLR_URL=${SOLR_URL} | ||
ENV JAVA_OPTS="${JAVA_OPTS} -Dtdb:fileMode=$TDB_FILE_MODE" | ||
ENV SOLR_URL=http://localhost:8983/solr/vivocore | ||
ENV SELF_ID_MATCHING_PROPERTY=http://vivo.mydomain.edu/ns | ||
|
||
RUN mkdir /usr/local/vivo | ||
RUN mkdir /usr/local/vivo/home | ||
ENV LOAD_SAMPLE_DATA=false | ||
ENV SAMPLE_DATA_REPO_URL=https://github.com/vivo-project/sample-data.git | ||
ENV SAMPLE_DATA_BRANCH=main | ||
ENV SAMPLE_DATA_DIRECTORY=openvivo | ||
|
||
COPY ./installer/home/target/vivo /vivo-home | ||
COPY ./installer/webapp/target/vivo.war /usr/local/tomcat/webapps/ROOT.war | ||
ENV RECONFIGURE=false | ||
|
||
COPY start.sh /start.sh | ||
RUN \ | ||
apt-get update -y && \ | ||
apt-get upgrade -y && \ | ||
apt install git -y | ||
|
||
RUN \ | ||
addgroup --disabled-password --gid $USER_ID $USER_NAME && \ | ||
adduser --disabled-password --home $USER_HOME_DIR --uid $USER_ID --gid $USER_ID $USER_NAME | ||
|
||
RUN mkdir -p $VIVO_HOME_DIR | ||
|
||
COPY ./installer/webapp/target/vivo.war /tmp/vivo.war | ||
|
||
COPY ./home/src/main/resources/config/default.applicationSetup.n3 /tmp/applicationSetup.n3 | ||
COPY ./home/src/main/resources/config/default.runtime.properties /tmp/runtime.properties | ||
|
||
COPY start.sh /usr/local/vivo/start.sh | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["/bin/bash", "/start.sh"] | ||
CMD ["/bin/bash", "/usr/local/vivo/start.sh"] |
This file contains hidden or 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 hidden or 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,36 +1,44 @@ | ||
version: '3.2' | ||
|
||
networks: | ||
net: | ||
|
||
services: | ||
|
||
solr: | ||
image: vivoweb/vivo-solr:latest | ||
hostname: solr | ||
environment: | ||
- RESET_CORE=${RESET_CORE} | ||
- VERBOSE=${VERBOSE} | ||
- RESET_CORE=true | ||
ports: | ||
- 8983:8983 | ||
volumes: | ||
- ${LOCAL_SOLR_DATA}:/opt/solr/server/solr/mycores | ||
networks: | ||
- vivo | ||
- net | ||
|
||
tomcat: | ||
container_name: vivo | ||
hostname: vivo | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
args: | ||
- VIVO_DIR=/usr/local/vivo/home | ||
- TDB_FILE_MODE=direct | ||
- SOLR_URL=http://solr:8983/solr/vivocore | ||
environment: | ||
- RESET_HOME=${RESET_HOME} | ||
- VERBOSE=${VERBOSE} | ||
- RESET_HOME=true | ||
- SOLR_URL=http://solr:8983/solr/vivocore | ||
- LANGUAGE_FILTER_ENABLED=true | ||
- SELECTABLE_LOCALES=en_US,de_DE,sr_Latn_RS,ru_RU,fr_CA,en_CA,es,pt_BR | ||
- LOAD_SAMPLE_DATA=true | ||
- SAMPLE_DATA_REPO_URL=https://github.com/chenejac/sample-data.git | ||
- SAMPLE_DATA_BRANCH=reorganization | ||
- SAMPLE_DATA_DIRECTORY=i18n | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- ${LOCAL_VIVO_HOME}:/usr/local/vivo/home | ||
depends_on: | ||
- solr | ||
networks: | ||
- vivo | ||
|
||
networks: | ||
vivo: | ||
- net |
This file contains hidden or 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 |
---|---|---|
|
@@ -69,4 +69,4 @@ | |
<type>tar.gz</type> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
</project> |
File renamed without changes.
This file contains hidden or 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.