@@ -38,19 +38,19 @@ This application can be started with [Docker](https://www.docker.com/) and [Dock
38
38
39
39
Then run the following commands to clone the project in your local system.
40
40
41
- ```
41
+ ```
42
42
git clone https://github.com/common-workflow-language/cwlviewer.git
43
- cd cwlviewer
43
+ cd cwlviewer
44
44
```
45
45
46
46
In the project directory, to start CWLViewer exposed on port ` 8080 ` , run:
47
47
48
48
docker-compose up
49
-
50
- The web server will connect to a local host, you'll see the message saying "Tomacat started on port(s):8080".
51
49
52
- To see the locally running CWL Viewer app, visit http://localhost:8080/ in your web browser.
53
-
50
+ The web server will connect to a local host, you'll see the message saying "Tomacat started on port(s):8080".
51
+
52
+ To see the locally running CWL Viewer app, visit http://localhost:8080/ in your web browser.
53
+
54
54
To stop and remove:
55
55
56
56
docker-compose down
@@ -72,6 +72,44 @@ If you have modified the source code, then you may want to build the docker imag
72
72
73
73
docker build -t commonworkflowlanguage/cwlviewer .
74
74
75
+ ## Running Spring Boot locally for development, with MongoDB and Jena Fuseki in Docker
76
+
77
+ Create ` docker-compose.override.yml`:
78
+
79
+ ```
80
+ version: '3.2'
81
+ services:
82
+ mongo:
83
+ ports:
84
+ - "27017:27017"
85
+ sparql:
86
+ ports:
87
+ - "3030:3030"
88
+ ```
89
+
90
+ Then start the containers:
91
+
92
+ ```
93
+ docker-compose up
94
+ ```
95
+
96
+ Then start Spring Boot locally:
97
+
98
+ ```
99
+ mvn spring-boot: run -Dserver.port=7999
100
+ ```
101
+
102
+ Now you can connect to http://localhost:7999 in your browser.
103
+
104
+ ## Deleting the data volumes to reset state
105
+
106
+ To completely reset the state, you must delete the data volumes:
107
+
108
+ ```
109
+ docker-compose down
110
+ docker volume rm cwlviewer_bundle cwlviewer_git cwlviewer_graphviz cwlviewer_mongo cwlviewer_sparql
111
+ ```
112
+
75
113
## Running without Docker
76
114
77
115
### Requirements
0 commit comments