chore(devcontainer): add connection from devcontainer to docker registry (#43)

This commit is contained in:
Stephan Lüscher 2024-05-13 08:41:12 +00:00
parent 7f3910039b
commit b40e0dd4a1
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF
2 changed files with 16 additions and 0 deletions

View file

@ -4,6 +4,20 @@ YELLOW="\e[33m"
GREEN="\e[32m"
ENDCOLOR="\e[0m"
# Add Forge DEV DNS entries
echo ""
echo -e "${YELLOW}Adding DNS entries for ublue.local${ENDCOLOR}"
echo ""
DOCKER_HOST=$(getent hosts host.docker.internal | awk '{ print $1 }')
echo "$DOCKER_HOST registry.ublue.local" | sudo tee -a /etc/hosts
## Install SSL certificates
echo ""
echo -e "${YELLOW}Installing SSL certificates${ENDCOLOR}"
echo ""
sudo cp /data/ublue-os_forge-root.pem /usr/local/share/ca-certificates/ublue-os_forge-root.crt
sudo update-ca-certificates --fresh
## Update system
echo ""
echo -e "${YELLOW}Updating OS${ENDCOLOR}"