Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Latest commit

 

History

History
67 lines (50 loc) · 1.85 KB

AmbraPWD.md

File metadata and controls

67 lines (50 loc) · 1.85 KB
title terms
Ambra Demo
2

Make document interactive using pwder.io

How to use this demo

Please, validate the Google capcha to activate the shell on the right. Then, you can either copy the commands yourself, or simply click on the grey boxes to automatically copy commands into the terminal.

Note: "Play With Docker" is a little buggey and seems to work better in Chrome then Firefox unfortunately.

echo 'hello world'

Fetch the sample themes and set up the stack

git clone https://github.com/PLOS/Dockerfiles.git
cd Dockerfiles
themes/fetch.sh minimal

Bring it up

./nv stack ambra_minimal

See the services running

ssh -o StrictHostKeyChecking=no node1
cd Dockerfiles
./nv stack ambra_minimal ps

Ping the content repo to see if its up

curl -I node1:8085/docs/

Wait a minute until you see the logs ending with messages from wombat_1. Ping the wombat to see if its up.

curl node1:8015 | grep Wombat

Visit a running service

  • Wombat{:data-term=".term1"}{:data-port="8015"} running on port 8015
  • Content Repo{:data-term=".term1"}{:data-port="8085"} running on port 8085

Ingest an article in rhino

curl -X POST --form "archive=@tests/test_data/demo/pone.0153419.zip" localhost:8006/articles
curl -X POST localhost:8006/articles/10.1371++journal.pone.0153419/revisions?ingestion=1
curl -I localhost:8015/article?id=10.1371/journal.pone.0153419

See the article rendered in wombat