mirror of
https://github.com/ublue-os/forge.git
synced 2025-04-12 09:43:44 +03:00
chore(devcontainer): add connection from devcontainer to docker registry (#43)
This commit is contained in:
parent
7f3910039b
commit
b40e0dd4a1
|
@ -16,6 +16,8 @@
|
||||||
"version": "1.8.2"
|
"version": "1.8.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// Additional arguments when starting the container
|
||||||
|
"runArgs": ["--add-host=host.docker.internal:host-gateway"],
|
||||||
// Create symbolic link for forge data dir mount
|
// Create symbolic link for forge data dir mount
|
||||||
"initializeCommand": "${localWorkspaceFolder}/.devcontainer/prepare_mount.sh",
|
"initializeCommand": "${localWorkspaceFolder}/.devcontainer/prepare_mount.sh",
|
||||||
// Container user definition - This is needed for compatibility with podman -> https://github.com/containers/podman/issues/15001#issuecomment-1193321924
|
// Container user definition - This is needed for compatibility with podman -> https://github.com/containers/podman/issues/15001#issuecomment-1193321924
|
||||||
|
|
|
@ -4,6 +4,20 @@ YELLOW="\e[33m"
|
||||||
GREEN="\e[32m"
|
GREEN="\e[32m"
|
||||||
ENDCOLOR="\e[0m"
|
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
|
## Update system
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${YELLOW}Updating OS${ENDCOLOR}"
|
echo -e "${YELLOW}Updating OS${ENDCOLOR}"
|
||||||
|
|
Loading…
Reference in a new issue