No Description

Bachir Soussi Chiadmi 99eb178b62 horizontal scroll 7 months ago
Docker 084e087a11 added express server container 8 months ago
app @ f3eb580a36 99eb178b62 horizontal scroll 7 months ago
log edff8f413c starting point of docker vue app (not working: npm wont install) 8 months ago
remote @ 6311fa06a6 99eb178b62 horizontal scroll 7 months ago
server @ ea45802b9f 99eb178b62 horizontal scroll 7 months ago
static edff8f413c starting point of docker vue app (not working: npm wont install) 8 months ago
.env f7d699d22d added remote container, updated main app 8 months ago
.gitmodules 084e087a11 added express server container 8 months ago
LICENSE 83b110bc91 Initial commit 8 months ago
Makefile 084e087a11 added express server container 8 months ago
README.md 39885e6c6a readme 8 months ago
docker-compose.yml 084e087a11 added express server container 8 months ago

README.md

offline-timeline-docker

Install docker (only once)

sudo pacman -S docker docker-compose docker-machine

Clone this repos

this will clone this repos (main docker environement) and necessary other source code (synopsx, webapp, xml-tei sources, vuejs client)

git clone --recursive https://esadhar.net/gogs/bachir/offline-timeline-docker.git

Docker

start docker engine

sudo systemctl start docker

build

only before the first run (may take some time)

make build

run

then each time you want to launch the app

make upd

Client

open http://localhost:8988 in your browser

Vhost or Cross Origins Policy

Cross origin poilicy will block the api requests from client You'll need to install vhost domain for api and client, like dev.gdp.net and dev.api.gdp.net Or in firefox install this addon to allow cors addons.mozilla.org/en-US/firefox/addon/cors-everywhere/

Logs

to follow the webpack compilation process, run

make logs

Update

update the code

git pull origin master
git pull --recurse-submodules

restart the containers

docker-compose restart app