You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run.sh 683B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # Figure out which arch we are and set the repo appropriately
  3. ARCH=`arch`
  4. if [ $ARCH == "aarch64" ]
  5. then
  6. echo "64bit arm"
  7. ARCH='arm64v8'
  8. else
  9. echo "32bit arm"
  10. ARCH='arm32v7'
  11. fi
  12. docker pull registry.lollipopcloud.solutions/${ARCH}/reg
  13. docker rm -f reg-server
  14. docker run \
  15. --name reg-server \
  16. --restart unless-stopped \
  17. --net docker-private \
  18. --ip 172.30.12.17 \
  19. -e TZ=UTC \
  20. -e DEBUG=1 \
  21. -l traefik.enable=false \
  22. registry.lollipopcloud.solutions/${ARCH}/reg \
  23. server -d \
  24. --registry registry.domain.tld \
  25. --clair http://172.31.98.79:6060 \
  26. --username reg-server --password aPassword \
  27. --interval 24h