Skip to content
Snippets Groups Projects
Commit d66f6133 authored by Anthony's avatar Anthony
Browse files

WIP refactoring deploy

parent 436c57aa
Branches
No related tags found
No related merge requests found
......@@ -7,3 +7,8 @@ dist/
annotot-db/
.bash_history
.npm/
.idea
demo-content/
www-COESO-TEST/
annotations-plugin/
mirador-video-annotation/
FROM debian:stable as builder
RUN apt-get update && apt-get install -y npm git
RUN apt-get update && apt-get install -y npm git curl
COPY . /opt
WORKDIR /opt
RUN npm ci
RUN curl https://deb.nodesource.com/setup_14.x | bash
RUN apt-get install -y nodejs
RUN node -v
RUN npm install
RUN npm run build
FROM caddy:latest as httpd
......
Subproject commit ecf8aea15ed8e80861517687d96f3629105ca3ed
Subproject commit ef26ae0c256297a881111bf3d1a7578387f5248a
#!/bin/bash
cd mirador-video-annotation
docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build:es"
docker run --rm -v $PWD:/opt -it node:14 /bin/sh -c "cd /opt && npm install && npm run build:es"
cd ../annotations-plugin
docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build"
pwd
ls -a
docker run --rm -v $PWD:/opt -it node:14 /bin/sh -c "cd /opt && npm install && npm run build"
Subproject commit 2de71320cb830dcb2be99b346a050cc8582ea724
Subproject commit e366a53790bc263cae34541dbd64e748ae9ab8b2
This diff is collapsed.
......@@ -5,7 +5,8 @@
"private": true,
"scripts": {
"build": "webpack --config webpack.config.js",
"serve": "npm install && webpack serve --config webpack.config.js"
"serve": "npm install && webpack serve --config webpack.config.js",
"start" : "NODE_ENV=development webpack serve --open"
},
"author": "",
"license": "ISC",
......@@ -14,6 +15,7 @@
"dotenv-webpack": "^8.0.1",
"mirador": "file:mirador-video-annotation",
"mirador-annotations": "file:annotations-plugin",
"node-pre-gyp": "^0.17.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"style-loader": "^1.2.1"
......
......@@ -17,9 +17,10 @@ const config = {
sideBarOpenByDefault: true,
},
windows: [{
loadedManifest: 'https://iiif.harvardartmuseums.org/manifests/object/299843',
loadedManifest: 'https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/COESO/COESO_Project_Home_manifest.json',
}],
catalog: [
{ manifestId: 'https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/COESO/COESO_Project_Home_manifest.json' },
{ manifestId: 'https://dzkimgs.l.u-tokyo.ac.jp/videos/iiif_in_japan_2017/manifest.json' },
{ manifestId: 'https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json' },
{ manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843' }
......
......@@ -17,7 +17,7 @@ module.exports = {
logging: 'verbose',
overlay: true,
progress: true,
webSocketURL: 'ws://0.0.0.0:' + process.env.DEV_PORT + '/ws'
webSocketURL: 'ws://0.0.0.0:9000/ws'
},
static: [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment