-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dockerfiles and updated run instructions in readme
- Loading branch information
Showing
4 changed files
with
58 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Build the JAR | ||
FROM maven:3.5-jdk-8 AS build | ||
COPY src /usr/src/knox/src | ||
COPY pom.xml /usr/src/knox | ||
RUN mvn -f /usr/src/knox/pom.xml clean package | ||
|
||
# Base image containing Java runtime | ||
FROM openjdk:8-jdk-alpine | ||
COPY --from=build /usr/src/knox/target/knox-0.0.1-SNAPSHOT.jar /usr/knox/knox-0.0.1-SNAPSHOT.jar | ||
# Make port 8080 available to the world outside this container | ||
EXPOSE 8080 | ||
ENTRYPOINT ["java","-jar","/usr/knox/knox-0.0.1-SNAPSHOT.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Knox - A Genetic Design Space Repository | ||
|
||
## Quickstart | ||
|
||
### Docker Instructions | ||
1) Install [Docker Compose](https://docs.docker.com/compose/install/) | ||
2) Clone this repository | ||
3) Run `docker-compose up --build` in the root directory of this repo | ||
4) Open Knox web interface at http://localhost:8080 | ||
|
||
### Non-Docker Instructions | ||
1) Install [Neo4J](http://neo4j.com/download) | ||
2) Open the Desktop app and add a new project | ||
3) Within the project, click "Add Graph", then create a local graph using "*kn0x*" as password | ||
4) Click "Start" | ||
7) [Download](https://maven.apache.org/download.cgi) and [Install](https://maven.apache.org/install.html) Maven | ||
8) Clone this repository | ||
9) Run `mvn spring-boot:run` in the root directory of this repo | ||
10) Open Knox web interface at http://localhost:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: '3.7' | ||
|
||
services: | ||
knox-db: | ||
image: neo4j:3.4.1-enterprise | ||
ports: | ||
- '7474:7474' | ||
- '7687:7687' # for bolt | ||
container_name: knox-db | ||
environment: | ||
- NEO4J_AUTH=neo4j/kn0x | ||
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes | ||
volumes: | ||
# local_folder:container_folder | ||
# for persistence | ||
- ./data:/data | ||
- ./logs:/logs | ||
knox-app: | ||
build: | ||
context: . | ||
ports: | ||
- '8080:8080' | ||
container_name: knox-app | ||
environment: | ||
- spring.data.neo4j.uri=bolt://knox-db:7687 | ||
depends_on: | ||
- knox-db |
This file was deleted.
Oops, something went wrong.