Browse Source

add 0-get-certs.sh

master
zeus 3 years ago
parent
commit
82da096410
  1. 11
      0-get-certs
  2. 5
      0-get-certs.sh
  3. 14
      README.md
  4. 4
      build-intro.sh

11
0-get-certs

@ -0,0 +1,11 @@
registry_address=hub.swarmlab.io
registry_port=5443
mkdir -p /etc/docker/certs.d/$registry_address:$registry_port
openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt
registry_port=5480
mkdir -p /etc/docker/certs.d/$registry_address:$registry_port
openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt

5
0-get-certs.sh

@ -0,0 +1,5 @@
#!/bin/sh
sudo /bin/sh ./0-get-certs

14
README.md

@ -20,4 +20,18 @@ Documentation is a multi-repository site generator (Antora based)
> etc
>
## On Error:
>
> Get https ://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate
>
> Pulling ...
>
> ERROR: Get https://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate signed by unknown authority
>
### run
>
> ./0-get-certs.sh
>

4
build-intro.sh

@ -2,4 +2,6 @@ docker stop swarmlab-documentation
docker container rm swarmlab-documentation
docker pull hub.swarmlab.io:5480/antora
docker run -ti --name swarmlab-documentation -v $PWD/intro:/antora -v $PWD/supplemental-ui:/antora/supplemental-ui hub.swarmlab.io:5480/antora /bin/sh -c "DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_INDEX_VERSION=latest NODE_PATH=/usr/local/lib/node_modules:\$NODE_PATH exec sh -c '/antora/run/build-intro.sh'"
docdir="intro"
build="build-intro.sh"
docker run -ti --name swarmlab-documentation -v $PWD/$docdir:/antora -v $PWD/supplemental-ui:/antora/supplemental-ui hub.swarmlab.io:5480/antora /bin/sh -c "DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_INDEX_VERSION=latest NODE_PATH=/usr/local/lib/node_modules:\$NODE_PATH exec sh -c '/antora/run/$build'"

Loading…
Cancel
Save