Skip to content

Commit df8fb7f

Browse files
authored
Merge pull request #124 from common-workflow-language/generic-git
Generic Git Support
2 parents 17bfb01 + 6597b69 commit df8fb7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2105
-1978
lines changed

LICENSE.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -199,24 +199,3 @@
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202-
203-
---------------------------------------------------------
204-
205-
./src/main/resources/static/img/GitHub-Mark-32px.png
206-
207-
GITHUB®, the GITHUB® logo design, OCTOCAT® and the OCTOCAT® logo design
208-
are exclusive trademarks registered in the United States by GitHub, Inc.
209-
210-
The OCTOCAT design is the exclusive property of GitHub, Inc and has
211-
been federally registered with the United States Copyright Office.
212-
All rights reserved.
213-
214-
Use rules apply: https://github.com/logos
215-
216-
---------------------------------------------------------
217-
218-
./src/main/resources/static/img/Docker-logo.png
219-
220-
Copyright 2013-2015 Docker, Inc. All rights reserved.
221-
222-
Use rules apply: https://www.docker.com/brand-guidelines

NOTICE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ For more information regarding the authorized uses of these items please [contac
7676

7777
-----------
7878

79+
# Git logo
80+
img/gitlogo.png
81+
Git Logo by Jason Long is licensed under the [Creative Commons Attribution 3.0 Unported License](https://creativecommons.org/licenses/by/3.0/)
82+
83+
-----------
84+
7985
# European Union flag
8086
img/Flag_of_Europe.svg
8187
Public Domain

README.md

Lines changed: 33 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ provide a [pull request](https://github.com/common-workflow-language/cwlviewer/p
1919
or join the [gitter chat for common-workflow-language](https://gitter.im/common-workflow-language/common-workflow-language)!
2020

2121

22-
## Running with Docker
22+
## Recommended - Running with Docker
2323

2424
This application can be started with [Docker](https://www.docker.com/).
2525

26-
If you have [Docker Compose](https://docs.docker.com/compose/install/), then to start
27-
MongoDB and CWLViewer exposed on port `8080`, run:
26+
If you have [Docker Compose](https://docs.docker.com/compose/install/), then to start CWLViewer exposed on port `8080`, run:
2827

2928
docker-compose up
3029

@@ -42,7 +41,6 @@ services:
4241
build: .
4342
```
4443
45-
4644
See the [docker-compose.yml](docker-compose.yml) file for details.
4745
4846
If you don't want to use Docker Compose, you can do the equivalent manually with `docker`
@@ -51,54 +49,33 @@ and the [commonworkflowlanguage/cwlviewer](https://hub.docker.com/r/commonworkfl
5149
docker run --name cwlviewer-mongo -p 27017:27017 -d mongo
5250
docker run --name cwlviewer -p 8080:8080 --link cwlviewer-mongo:mongo -d commonworkflowlanguage/cwlviewer
5351
docker logs -f cwlviewer
52+
53+
54+
**WARNING**: Please ensure that your MongoDB installation is not exposed to the world on port `27017`
5455

5556
If you have modified the source code, then you may want to build the docker image locally first:
5657

5758
docker build -t commonworkflowlanguage/cwlviewer .
5859

60+
## Running without Docker
61+
62+
### Requirements
5963

60-
## Requirement: MongoDB
64+
#### MongoDB
6165

6266
You will need to have [MongoDB](https://www.mongodb.com/) running,
63-
by default on `localhost:27017`.
67+
by default on `localhost:27017`
6468

6569
If you are running from the command line, you can override this by supplying
6670
system properties like `-Dspring.data.mongodb.host=mongo.example.org` and
6771
`-Dspring.data.mongodb.port=1337`
6872

69-
If you have Docker, but are not using the Docker Compose method above,
70-
you may start MongoDB with [Docker](https://www.docker.com/) using:
71-
72-
docker run --name cwlviewer-mongo -p 27017:27017 -d mongo
73-
74-
**WARNING**: The above expose mongodb to the world on port `27017`.
75-
76-
## Configuration
77-
78-
There are a variety of configuration options detailed in the [application configuration file](https://github.com/common-workflow-language/cwlviewer/blob/master/src/main/resources/application.properties) which can be adjusted.
73+
#### Apache Jena Fuseki (or alternative SPARQL server)
7974

80-
When deploying with docker, these can be overriden externally by creating/modifying `docker-compose.override.yml` as follows:
81-
82-
```yaml
83-
version: '2'
84-
services:
85-
spring:
86-
environment:
87-
githubAPI.authentication: oauth
88-
githubAPI.oauthToken: abcdefghhijklmnopqrstuvwxyz
89-
```
90-
91-
The properties can alternatively be provided as system properties on the
92-
command line, e.g. `-DgithubAPI.authentication=oauth`
93-
`-DgithubAPI.oauthToken=abcdefghhijklmnopqrstuvwxyz` or via a [variety of other methods supported by Spring Boot](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html)
75+
You will also need to have a SPARQL server such as [Apache Jena Fuseki](https://jena.apache.org/documentation/fuseki2/) running,
76+
by default on `localhost:3030`
9477

95-
### Github API
96-
97-
If you run cwlviewer in production, you are likely to hit the GitHub API's rate limit of 60 requests/hr. This can be increased to 5000 requests/hr by using authentication (either basic or OAuth) by setting the `githubAPI.authentication` and either `githubAPI.oauthToken` or both `githubAPI.username` and `githubAPI.password` in the [application configuration file](https://github.com/common-workflow-language/cwlviewer/blob/master/src/main/resources/application.properties) depending on the method.
98-
99-
OAuth tokens can be obtained using the [Github authorizations API](https://developer.github.com/v3/oauth_authorizations/).
100-
101-
## Building and Running
78+
## Compiling and Running
10279

10380
To compile you will need [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html) or OpenJDK 8 (`apt install openjdk-8-jdk`),
10481
as well as [Apache Maven 3](https://maven.apache.org/download.cgi) (`apt install maven`).
@@ -132,6 +109,25 @@ org.researchobject.CwlViewerApplication : Started CwlViewerApplication in 28.60
132109

133110
Now check out http://localhost:8080/ to access CWL Viewer.
134111

112+
## Configuration
113+
114+
There are a variety of configuration options detailed in the [application configuration file](https://github.com/common-workflow-language/cwlviewer/blob/master/src/main/resources/application.properties) which can be adjusted.
115+
116+
When deploying with docker, these can be overriden externally by creating/modifying `docker-compose.override.yml` as follows:
117+
118+
```yaml
119+
version: '2'
120+
services:
121+
spring:
122+
environment:
123+
githubAPI.authentication: oauth
124+
githubAPI.oauthToken: abcdefghhijklmnopqrstuvwxyz
125+
```
126+
127+
The properties can alternatively be provided as system properties on the
128+
command line, e.g. `-DgithubAPI.authentication=oauth`
129+
`-DgithubAPI.oauthToken=abcdefghhijklmnopqrstuvwxyz` or via a [variety of other methods supported by Spring Boot](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html)
130+
135131
# Thanks
136132

137133
Developers and [contributors](https://github.com/common-workflow-language/cwlviewer/graphs/contributors) include:

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@
6262
<artifactId>commons-io</artifactId>
6363
<version>1.3.2</version>
6464
</dependency>
65-
<dependency>
66-
<groupId>org.eclipse.mylyn.github</groupId>
67-
<artifactId>org.eclipse.egit.github.core</artifactId>
68-
<version>2.1.5</version>
69-
</dependency>
7065
<dependency>
7166
<groupId>org.yaml</groupId>
7267
<artifactId>snakeyaml</artifactId>
@@ -98,6 +93,11 @@
9893
<artifactId>jena-core</artifactId>
9994
<version>3.3.0</version>
10095
</dependency>
96+
<dependency>
97+
<groupId>org.eclipse.jgit</groupId>
98+
<artifactId>org.eclipse.jgit</artifactId>
99+
<version>4.8.0.201706111038-r</version>
100+
</dependency>
101101
</dependencies>
102102

103103
<build>

0 commit comments

Comments
 (0)