Skip to content

Latest commit

 

History

History
94 lines (60 loc) · 3.37 KB

ReadMe.md

File metadata and controls

94 lines (60 loc) · 3.37 KB

Isogeo - Admin documentation

Build Status

General information

Project used to generate the online help for the Isogeo administration platform.

Technical

For full detailed developement guidelines, see this wiki.

Continuous integration

The project is tested, built and served on Azure DevOps: https://dev.azure.com/isogeo/Documentations/_build?definitionId=27&_a=summary. As specified in the configuration (see: azure-pipelines.yml):

It pushes built static website on a Static Website hosted on Azure Storage (GPv2). For more details on this kind of product, refer to these resources:

To upload built result, rclone is preferred to azure-cli because of more efficient and flexible. It's installed and used through go context in CircleCI. It needs some environment variables corresponding to the storage account keys and set in the CircleCI project settings.


Local build

Git clone this repository then:

yarn
yarn gitbook install
yarn gitbook serve

Docker

First of all: build it.

docker build --rm -f Dockerfile -t isogeo/gitbook-builder:latest .

Serve as a website

docker run --name isogeo-help -v $PWD:/srv/gitbook --rm -it -d -p 4567:4567 isogeo/gitbook-builder:latest
# alternativately, you can use the live reload server
docker run --name isogeo-help -v $PWD:/srv/gitbook --rm -it -d -p 4567:4567 -p 35729:35729 isogeo/gitbook-builder:latest

Then, open your favorite browser to http://localhost:4567.

To stop it : docker stop isogeo-help

Build static website

docker run --rm -v $PWD:/srv/gitbook -v $PWD/dist:/srv/html isogeo/gitbook-builder gitbook build . /srv/html

Push to Azure private container

Using Azure CLI (see: official doc).

# login
az login -u [email protected] -p myGre4atPachweurd
# tag it
docker build --rm -f Dockerfile -t isogeo.azurecr.io/gitbook-builder:latest .
# push it
docker push isogeo.azurecr.io/gitbook-builder:latest
# check it
az acr repository list --name isogeo

Related resources