Skip to content

Commit

Permalink
stub out Docker and OpenShift files IQSS#4040
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Sep 14, 2017
1 parent 1ee12ff commit d287772
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# See `conf/docker` for Docker images
2 changes: 2 additions & 0 deletions conf/docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
echo "TODO: Build docker images and push to DockerHub."
5 changes: 5 additions & 0 deletions conf/docker/dataverse-glassfish/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Glassfish and Dataverse in one Docker image, as suggested by danmcp.
#
# TODO: Start with the Dataverse 4.2.3 version at https://github.com/pdurbin/ndslabs-dataverse/blob/v4.2.3.1/dockerfiles/dataverse/Dockerfile
#
# TODO: Once we get Dataverse 4.2.3 working, we can try Dataverse 4.7 from https://github.com/pdurbin/ndslabs-dataverse/blob/upgrade-4.7/dockerfiles/dataverse/Dockerfile
3 changes: 3 additions & 0 deletions conf/docker/postgresql/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PostgreSQL for Dataverse (but consider switching to the image from CentOS)
#
# See also conf/docker/dataverse-glassfish/Dockerfile
8 changes: 8 additions & 0 deletions conf/docker/solr/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Solr for Dataverse
#
# See the note about Dataverse 4.2.3 vs. 4.7 at conf/docker/dataverse-glassfish/Dockerfile
#
# Note that there is a separate Dockerfile we can start with:
#
# Dataverse 4.2.3: https://github.com/pdurbin/ndslabs-dataverse/blob/v4.2.3.1/dockerfiles/solr/Dockerfile
# Dataverse 4.7: https://github.com/pdurbin/ndslabs-dataverse/blob/upgrade-4.7/dockerfiles/solr/Dockerfile
40 changes: 40 additions & 0 deletions conf/openshift/openshift.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"kind": "Project",
"apiVersion": "v1",
"metadata": {
"name": "dataverse",
"creationTimestamp": null,
"labels": {
"name": "dataverse"
},
"annotations": {
"openshift.io/description": "Dataverse is open source research data repository software: https://dataverse.org",
"openshift.io/display-name": "Dataverse"
}
},
"spec": {
"containers": [
{
"name": "dataverse-glassfish",
"image": "ndslabs/dataverse",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
]
},
{
"name": "dataverse-solr",
"image": "ndslabs/dataverse-solr",
"ports": [
{
"containerPort": 8983,
"protocol": "TCP"
}
]
}
]
},
"status": {}
}
1 change: 1 addition & 0 deletions doc/sphinx-guides/source/installation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Installation Guide
geoconnect
shibboleth
oauth2
openshift
24 changes: 24 additions & 0 deletions doc/sphinx-guides/source/installation/openshift.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
=================================
Installing Dataverse on OpenShift
=================================

.. contents:: |toctitle|
:local:

Familiarize Yourself with OpenShift
-----------------------------------

https://docs.openshift.com/online/getting_started/index.html

Create OpenShift Account
------------------------

Create Project
--------------

Import YAML/JSON
----------------

Upload ``conf/openshift/openshift.json``.

FIXME: Getting "cannot create projects at the cluster scope"
5 changes: 5 additions & 0 deletions doc/sphinx-guides/source/installation/prep.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ We'll try to get you up and running as quickly as possible, but we thought you m
Choose Your Own Installation Adventure
--------------------------------------

OpenShift (for Testing Only)
++++++++++++++++++++++++++++

If you would like to kick the tires on your own installation of Dataverse, you can install it for free on OpenShift Online, a platform as a service (PaaS) offering from Red Hat. For details, please see the :doc:`openshift` section.

Vagrant (for Testing Only)
++++++++++++++++++++++++++

Expand Down

0 comments on commit d287772

Please sign in to comment.