mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-04 08:45:45 +03:00
chore(devcontainer): add connection from devcontainer to docker registry (#43)
This commit is contained in:
parent
7f3910039b
commit
b40e0dd4a1
2 changed files with 16 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue