-
Notifications
You must be signed in to change notification settings - Fork 477
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
7112 payara5 aio #7114
Merged
Merged
7112 payara5 aio #7114
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
97881a6
dependency switch to payara download
pameyer 016f520
first pass switch to payara
pameyer 66206b9
dockerfile cleanup
pameyer 55a0816
more cleanup
pameyer d5688b6
readme updates
pameyer 6a23496
Merge branch 'develop' into 7112-payara5_aio
pameyer 5a77f49
switch to as-setup
pameyer File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
FROM centos:7 | ||
# OS dependencies | ||
RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm | ||
#RUN yum install -y java-1.8.0-openjdk-headless postgresql-server sudo epel-release unzip perl curl httpd | ||
RUN yum install -y java-1.8.0-openjdk-devel postgresql96-server sudo epel-release unzip perl curl httpd | ||
RUN yum install -y jq lsof awscli | ||
|
||
# copy and unpack dependencies (solr, glassfish) | ||
# copy and unpack dependencies (solr, payara) | ||
COPY dv /tmp/dv | ||
COPY testdata/schema*.xml /tmp/dv/ | ||
COPY testdata/solrconfig.xml /tmp/dv | ||
|
@@ -18,10 +17,10 @@ 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 ; tar zxf /tmp/dv/deps/glassfish4dv.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/glassfish4/glassfish/domains/domain1/config/domain.xml | ||
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 | ||
|
@@ -32,15 +31,15 @@ RUN cp -r /opt/solr-7.7.2/server/solr/configsets/_default /opt/solr-7.7.2/server | |
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 glassfish user and solr user (run both as root) | ||
# skipping payara user and solr user (run both as root) | ||
|
||
#solr port | ||
EXPOSE 8983 | ||
|
||
# postgres port | ||
EXPOSE 5432 | ||
|
||
# glassfish port | ||
# payara port | ||
EXPOSE 8080 | ||
|
||
# apache port, http | ||
|
@@ -52,8 +51,8 @@ EXPOSE 9009 | |
|
||
RUN mkdir /opt/dv | ||
|
||
# yeah - still not happy if glassfish isn't in /usr/local :< | ||
RUN ln -s /opt/glassfish4 /usr/local/glassfish4 | ||
# keeping the symlink on the off chance that something else is still assuming /usr/local/glassfish4 | ||
RUN ln -s /opt/payara5 /usr/local/glassfish4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume it's safe to not create this symlink. But it doesn't hurt to leave it in. I'm glad the comment was updated to described what's going on. |
||
COPY dv/install/ /opt/dv/ | ||
COPY install.bash /opt/dv/ | ||
COPY entrypoint.bash /opt/dv/ | ||
|
@@ -76,7 +75,7 @@ ENV doi_username=${doi_username} | |
ENV doi_password=${doi_password} | ||
COPY configure_doi.bash /opt/dv | ||
|
||
# healthcheck for glassfish only (assumes modified domain.xml); | ||
# 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hooray! 🎉