Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use docker for testing fcrepo and solr
- Loading branch information
Showing
60 changed files
with
319 additions
and
93 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
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
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,10 +1,10 @@ | ||
test: | ||
url: http://localhost:9983/fedora-test | ||
url: http://localhost:9080/fedora | ||
user: fedoraAdmin | ||
password: fedoraAdmin | ||
time_zone: America/New_York | ||
development: | ||
url: http://localhost:8983/fedora | ||
url: http://localhost:8080/fedora | ||
user: fedoraAdmin | ||
password: fedoraAdmin | ||
time_zone: America/New_York |
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,6 +1,6 @@ | ||
development: | ||
url: http://localhost:8983/solr/dcv-dev | ||
url: http://localhost:8983/solr/dcv | ||
timeout: 120 | ||
test: | ||
url: http://localhost:8993/solr/dcv-test | ||
url: http://localhost:9983/solr/dcv | ||
timeout: 120 |
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,25 @@ | ||
version: "3.9" | ||
|
||
# Although a name isn't required for docker to work, we want to explicitly specify it so we know | ||
# which prefix is used for the volumes that we create. | ||
name: 'dcv-development' | ||
|
||
volumes: | ||
redis-data: | ||
solr-cores: | ||
fedora-data: | ||
services: | ||
solr: | ||
build: ./solr | ||
restart: always | ||
ports: | ||
- '8983:8983' | ||
volumes: | ||
- solr-cores:/data | ||
fedora: | ||
build: ./fedora | ||
restart: always | ||
ports: | ||
- '8080:8080' | ||
volumes: | ||
- fedora-data:/opt/fedora/data |
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,25 @@ | ||
version: "3.9" | ||
|
||
# Although a name isn't required for docker to work, we want to explicitly specify it so we know | ||
# which prefix is used for the volumes that we create. | ||
name: 'dcv-test' | ||
|
||
volumes: | ||
redis-data: | ||
solr-cores: | ||
fedora-data: | ||
services: | ||
solr: | ||
build: ./solr | ||
restart: always | ||
ports: | ||
- '9983:8983' | ||
volumes: | ||
- solr-cores:/data | ||
fedora: | ||
build: ./fedora | ||
restart: always | ||
ports: | ||
- '9080:8080' | ||
volumes: | ||
- fedora-data:/opt/fedora/data |
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,23 @@ | ||
# This Dockerfile is based on "samveralabs/fcrepo3:3.8.1" (https://github.com/samvera-labs/fcrepo3/blob/main/Dockerfile), | ||
# but we're not pulling "samveralabs/fcrepo3:3.8.1" in directly because: | ||
# 1) That image isn't built for ARM | ||
# 2) That image references a much slower sourceforge download link (we use GitHub instead). | ||
# 3) We want to run on a different port (8080) | ||
# 4) We want to enable the resource index (ri.enabled=true in install.properties) | ||
# 5) We want to enable authentication with the default username/password (apia.auth.required=true in install.properties) | ||
|
||
FROM amazoncorretto:8 | ||
|
||
ENV FEDORA_HOME /opt/fedora | ||
ENV CATALINA_HOME /opt/fedora/tomcat | ||
ENV PATH $CATALINA_HOME/bin:$PATH | ||
|
||
RUN curl -L https://github.com/fcrepo3/fcrepo/releases/download/v3.8.1/fcrepo-installer-3.8.1.jar -o /opt/fcrepo-installer.jar | ||
|
||
COPY ./install.properties /opt/install.properties | ||
RUN java -jar /opt/fcrepo-installer.jar /opt/install.properties | ||
|
||
EXPOSE 8080 | ||
WORKDIR $FEDORA_HOME | ||
|
||
CMD ["catalina.sh", "run"] |
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,28 @@ | ||
#Install Options | ||
#Wed Jul 31 20:33:30 UTC 2019 | ||
ri.enabled=true | ||
apia.auth.required=true | ||
messaging.enabled=false | ||
database.jdbcDriverClass=org.apache.derby.jdbc.EmbeddedDriver | ||
upstream.auth.enabled=false | ||
ssl.available=false | ||
database.jdbcURL=jdbc\:derby\:/opt/fedora/derby/fedora3;create\=true | ||
database.password=fedoraAdmin | ||
database.username=fedoraAdmin | ||
fesl.authz.enabled=false | ||
tomcat.shutdown.port=8005 | ||
deploy.local.services=true | ||
xacml.enabled=false | ||
tomcat.http.port=8080 | ||
fedora.serverHost=localhost | ||
database=included | ||
database.driver=included | ||
fedora.serverContext=fedora | ||
llstore.type=akubra-fs | ||
tomcat.home=/opt/fedora/tomcat | ||
fesl.authn.enabled=true | ||
fedora.home=/opt/fedora | ||
install.type=quick | ||
servlet.engine=included | ||
apim.ssl.required=false | ||
fedora.admin.pass=fedoraAdmin |
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,15 @@ | ||
FROM solr:6.3.0 | ||
|
||
WORKDIR /data | ||
|
||
# Set up template cores in image | ||
|
||
COPY --chown=solr:solr './solr_cores/dcv-solr-6-3' /template-cores/dcv | ||
RUN echo 'name=dcv' > /template-cores/dcv/core.properties | ||
|
||
# When image runs, the command below will copy template cores to final location (on mounted docker | ||
# volume) if they don't already exist, and then will start solr. | ||
|
||
CMD [ ! -d /opt/solr/server/solr/dcv ] && cp -pr /template-cores/dcv /data/dcv && \ | ||
ln -s /data/dcv /opt/solr/server/solr/dcv && \ | ||
solr-foreground |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,25 @@ | ||
version: "3.9" | ||
|
||
# Although a name isn't required for docker to work, we want to explicitly specify it so we know | ||
# which prefix is used for the volumes that we create. | ||
name: 'dcv-development' | ||
|
||
volumes: | ||
redis-data: | ||
solr-cores: | ||
fedora-data: | ||
services: | ||
solr: | ||
build: ./solr | ||
restart: always | ||
ports: | ||
- '8983:8983' | ||
volumes: | ||
- solr-cores:/data | ||
fedora: | ||
build: ./fedora | ||
restart: always | ||
ports: | ||
- '8080:8080' | ||
volumes: | ||
- fedora-data:/opt/fedora/data |
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,25 @@ | ||
version: "3.9" | ||
|
||
# Although a name isn't required for docker to work, we want to explicitly specify it so we know | ||
# which prefix is used for the volumes that we create. | ||
name: 'dcv-test' | ||
|
||
volumes: | ||
redis-data: | ||
solr-cores: | ||
fedora-data: | ||
services: | ||
solr: | ||
build: ./solr | ||
restart: always | ||
ports: | ||
- '9983:8983' | ||
volumes: | ||
- solr-cores:/data | ||
fedora: | ||
build: ./fedora | ||
restart: always | ||
ports: | ||
- '9080:8080' | ||
volumes: | ||
- fedora-data:/opt/fedora/data |
Oops, something went wrong.