Skip to content

Commit

Permalink
Added a docker-compose.yml file for nginx-ocfl and a solr server
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelynch committed Jul 29, 2019
1 parent 84feaa6 commit a627b01
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3.1'

networks:
main:

services:
nginx-ocfl:
build: .
ports:
- "8080:8080"
expose:
- "8080"
networks:
- main
volumes:
- "./test_repos/:/etc/share/nginx/html"

solr:
image: solr
ports:
- "8983:8983"
expose:
- "8983"
networks:
- main
volumes:
- "./test_solr/:/opt/solr/server/solr/ocflcore"
command: solr-precreate ocflcore


4 changes: 2 additions & 2 deletions js/ocfl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var fs = require('fs');

var MAX_INDEX_LENGTH = 80;
var MAX_INDEX_LENGTH = 120;

// ocfl(request)
//
Expand Down Expand Up @@ -85,7 +85,7 @@ function repository_index(req, url_path) {
var js = fs.readFileSync(index_file);
var index = JSON.parse(js);

var html = "<html><body>";
var html = "<html><body><p>Hello, Docker</p>";

index.forEach((e) => {
var entry = index_map(e);
Expand Down

0 comments on commit a627b01

Please sign in to comment.