Browse Source

get on error

master
zeus 3 years ago
parent
commit
562370fa6b
  1. 21
      0-cert.error
  2. 3
      build-intro.sh

21
0-cert.error

@ -0,0 +1,21 @@
#!/bin/sh
cat <<'EOF'
-----------------------------------------------------------------------------------------
*** On Error ***
Get https://hub.swarmlab.io:5480/v2/: x509: certificate
Pulling …
ERROR: Get https://hub.swarmlab.io:5480/v2/: x509: certificate signed by unknown authority
*** run ***
./0-get-certs.sh
-----------------------------------------------------------------------------------------
EOF
echo $cat

3
build-intro.sh

@ -2,6 +2,9 @@ docker stop swarmlab-documentation
docker container rm swarmlab-documentation
docker pull hub.swarmlab.io:5480/antora
./0-cert.error
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