forked from IQSS/dataverse
-
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.
IQSS#7384 point docker-aio, docker-dcm, openshift, and vagrant at Cen…
…tOS 8
- Loading branch information
don.sizemore
committed
Nov 5, 2020
1 parent
119c0bc
commit 5c0fb2f
Showing
11 changed files
with
108 additions
and
178 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,82 @@ | ||
FROM centos:8 | ||
# OS dependencies | ||
# PG 10 is the default in centos8; keep the repo comment for when we bump to 11+ | ||
#RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm | ||
RUN yum install -y java-1.8.0-openjdk-devel postgresql-server sudo epel-release unzip perl curl httpd | ||
RUN yum install -y jq lsof awscli | ||
|
||
# copy and unpack dependencies (solr, payara) | ||
COPY dv /tmp/dv | ||
COPY testdata/schema*.xml /tmp/dv/ | ||
COPY testdata/solrconfig.xml /tmp/dv | ||
|
||
# ITs need files | ||
COPY testdata/sushi_sample_logs.json /tmp/ | ||
|
||
# IPv6 and localhost appears to be related to some of the intermittant connection issues | ||
COPY disableipv6.conf /etc/sysctl.d/ | ||
RUN rm /etc/httpd/conf/* | ||
COPY httpd.conf /etc/httpd/conf | ||
RUN cd /opt ; tar zxf /tmp/dv/deps/solr-7.7.2dv.tgz | ||
RUN cd /opt ; unzip /tmp/dv/deps/payara-5.2020.2.zip ; ln -s /opt/payara5 /opt/glassfish4 | ||
|
||
# this copy of domain.xml is the result of running `asadmin set server.monitoring-service.module-monitoring-levels.jvm=LOW` on a default glassfish installation (aka - enable the glassfish REST monitir endpoint for the jvm` | ||
COPY domain-restmonitor.xml /opt/payara5/glassfish/domains/domain1/config/domain.xml | ||
|
||
#RUN sudo -u postgres /usr/bin/initdb -D /var/lib/pgsql/data | ||
RUN sudo -u postgres /usr/pgsql-9.6/bin/initdb -D /var/lib/pgsql/data | ||
|
||
# copy configuration related files | ||
RUN cp /tmp/dv/pg_hba.conf /var/lib/pgsql/data/ | ||
RUN cp -r /opt/solr-7.7.2/server/solr/configsets/_default /opt/solr-7.7.2/server/solr/collection1 | ||
RUN cp /tmp/dv/schema*.xml /opt/solr-7.7.2/server/solr/collection1/conf/ | ||
RUN cp /tmp/dv/solrconfig.xml /opt/solr-7.7.2/server/solr/collection1/conf/solrconfig.xml | ||
|
||
# skipping payara user and solr user (run both as root) | ||
|
||
#solr port | ||
EXPOSE 8983 | ||
|
||
# postgres port | ||
EXPOSE 5432 | ||
|
||
# payara port | ||
EXPOSE 8080 | ||
|
||
# apache port, http | ||
EXPOSE 80 | ||
|
||
# debugger ports (jmx,jdb) | ||
EXPOSE 8686 | ||
EXPOSE 9009 | ||
|
||
RUN mkdir /opt/dv | ||
|
||
# keeping the symlink on the off chance that something else is still assuming /usr/local/glassfish4 | ||
RUN ln -s /opt/payara5 /usr/local/glassfish4 | ||
COPY dv/install/ /opt/dv/ | ||
COPY install.bash /opt/dv/ | ||
COPY entrypoint.bash /opt/dv/ | ||
COPY testdata /opt/dv/testdata | ||
COPY testdata/updateSchemaMDB.sh /opt/dv/testdata/ | ||
COPY testscripts/* /opt/dv/testdata/ | ||
COPY setupIT.bash /opt/dv | ||
WORKDIR /opt/dv | ||
|
||
# need to take DOI provider info from build args as of ec377d2a4e27424db8815c55ce544deee48fc5e0 | ||
# Default to EZID; use built-args to switch to DataCite (or potentially handles) | ||
#ARG DoiProvider=EZID | ||
ARG DoiProvider=FAKE | ||
ARG doi_baseurl=https://ezid.cdlib.org | ||
ARG doi_username=apitest | ||
ARG doi_password=apitest | ||
ENV DoiProvider=${DoiProvider} | ||
ENV doi_baseurl=${doi_baseurl} | ||
ENV doi_username=${doi_username} | ||
ENV doi_password=${doi_password} | ||
COPY configure_doi.bash /opt/dv | ||
|
||
# healthcheck for payara only (assumes modified domain.xml); | ||
# does not check dataverse application status. | ||
HEALTHCHECK CMD curl --fail http://localhost:4848/monitoring/domain/server.json || exit 1 | ||
CMD ["/opt/dv/entrypoint.bash"] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# build from repo root | ||
FROM centos:8 | ||
RUN yum install -y epel-release | ||
RUN yum install -y rsync openssh-clients jq curl wget lynx | ||
RUN useradd depositor | ||
USER depositor | ||
WORKDIR /home/depositor |
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
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,7 +1,7 @@ | ||
[security_shibboleth] | ||
name=Shibboleth (CentOS_CentOS-6) | ||
name=Shibboleth (CentOS_8) | ||
type=rpm-md | ||
baseurl=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_CentOS-6/ | ||
baseurl=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_8/ | ||
gpgcheck=1 | ||
gpgkey=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_CentOS-6/repodata/repomd.xml.key | ||
gpgkey=http://download.opensuse.org/repositories/security:/shibboleth/CentOS_8/repodata/repomd.xml.key | ||
enabled=1 |
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 was deleted.
Oops, something went wrong.