Skip to content

Commit 77a223b

Browse files
committed
Document Dockerfile changes
1 parent 438945c commit 77a223b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/openshift.md

+15
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ To deploy Railsgoat with Openshift you must first have a working [Openshift Clus
44
```bash
55
$ oc new-project railsgoat --description="Railsgoat Openshift Deployment" --display-name="Railsgoat"
66
```
7+
8+
## Edit the Build Strategy
9+
Since Railsgoat supports both normal Docker deployment and openshift deployment, the Openshift deployment is located in the `openshift-configs` directory. Find the railsgoat build in your openshift deployment and edit the dockerStrategy so that it reads something like:
10+
11+
```
12+
strategy:
13+
dockerStrategy:
14+
dockerfilePath: openshift-configs/Dockerfile
15+
from:
16+
kind: ImageStreamTag
17+
name: 'ruby:2.6.5'
18+
namespace: railsgoat
19+
type: Docker
20+
```
21+
722
### Creating a Database Service
823

924
Although Railsgoat in Openshift can be used with the development SQL Lite database, it also takes advantage of the PostgreSQL database image in Openshift for more creative demonstrations and an expansion of SQL attacks. To create the database service you will use the `oc new-app` command and will need to pass some environment variables. You can change these to anything you want.

0 commit comments

Comments
 (0)