Skip to content

Commit

Permalink
Add installation guide for openshift to README
Browse files Browse the repository at this point in the history
Effort Towards Bug #16
  • Loading branch information
liam-middlebrook committed Dec 30, 2017
1 parent 2df5665 commit f6fdadd
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,53 @@ CSH Gallery is an internal site, and thus not public-facing, however below are s

#### View Text File:
![View Text File](https://csh.rit.edu/~ram/gallery/gallery_txt.png)

## Installation on Openshift Origin
CSH Gallery is designed with Openshift Origin in mind as the hosting platform.
Below are a series of instructions needed in order to get CSH Gallery running on
an Openshift Origin cluster.

1. Create a new Python3.5 Source to Image Openshift Project

2. Point Openshift towards your forked CSH Gallery Repository and setup build
hooks and routing as you see appropriate

3. Under the builds menu select your BuildConfig and then go to Actions -> Edit
Build Configuration

a. Under Image Configuration please change Build From to "Docker Image"
b. Under Image Configuration please change Docker Image Repository to
"liammiddlebrook/s2i-python-container"

4. Under the Deployments menu select your DeploymentConfig and then go to the
Environment section

a. Enter in your OIDC provider information as follows:
```
GALLERY_OIDC_CLIENT_SECRET = $yourOIDCclientSecret
GALLERY_OIDC_ISSUER = $yourOIDCissuerURI
```

b. Enter in your hosting and route information as follows:
```
GALLERY_PORT = $thePortExposedByYourRoute
GALLERY_SERVER_NAME = $theDNSRecordForAccessingYourGalleryInstance
```

c. Enter in your ldap bind information as follows:
```
GALLERY_LDAP_BIND_PW = $ldapBindPassword
```

d. Enter in your database credential string as follows:
```
GALLERY_DATABASE_URI = $yourSQLAlchemyConnectionString
```

e. Enter in your S3 credentials as follows:

```
GALLERY_S3_ACCESS_ID = $s3AccessID
GALLERY_S3_BUCKET_ID = $s3BucketID
GALLERY_S3_SECRET_KEY = $s3SecretKey
```

0 comments on commit f6fdadd

Please sign in to comment.