stop pushing image to DO registry (it's over the free size limit)
This commit is contained in:
parent
ab6f8369f3
commit
938e532639
11
build.sh
11
build.sh
@ -8,12 +8,5 @@ YOU_ARE_HERE="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
|
|||||||
# container will be useless unless we bundle the actual OS
|
# container will be useless unless we bundle the actual OS
|
||||||
test -f "$YOU_ARE_HERE"/container/hdd/hdd.img
|
test -f "$YOU_ARE_HERE"/container/hdd/hdd.img
|
||||||
|
|
||||||
# this image is private on DigitalOcean, make sure we're logged in
|
# build the container & tag it locally
|
||||||
doctl registry login
|
docker build -t y2k:latest --squash --no-cache "$YOU_ARE_HERE"
|
||||||
|
|
||||||
docker build -t registry.digitalocean.com/jakejarvis/y2k:latest --squash --no-cache "$YOU_ARE_HERE"
|
|
||||||
docker push registry.digitalocean.com/jakejarvis/y2k:latest
|
|
||||||
|
|
||||||
# on DigitalOcean, old tags need to be purged manually:
|
|
||||||
# doctl registry garbage-collection start --force --include-untagged-manifests
|
|
||||||
# doctl registry garbage-collection get-active
|
|
||||||
|
@ -66,21 +66,15 @@ cloudflared service install
|
|||||||
cp ~/.cloudflared/cert.pem /etc/cloudflared/
|
cp ~/.cloudflared/cert.pem /etc/cloudflared/
|
||||||
rm ~/.cloudflared/cert.pem
|
rm ~/.cloudflared/cert.pem
|
||||||
|
|
||||||
#### login to DO registry ####
|
|
||||||
snap install doctl
|
|
||||||
snap connect doctl:dot-docker
|
|
||||||
doctl auth init
|
|
||||||
doctl registry login
|
|
||||||
|
|
||||||
#### pull OS container ####
|
|
||||||
docker pull registry.digitalocean.com/jakejarvis/y2k:latest
|
|
||||||
|
|
||||||
#### enable services ####
|
#### enable services ####
|
||||||
cp $REPO_DIR/host/example.service /lib/systemd/system/y2k.service
|
cp $REPO_DIR/host/example.service /lib/systemd/system/y2k.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable y2k
|
systemctl enable y2k
|
||||||
systemctl enable cloudflared
|
systemctl enable cloudflared
|
||||||
|
|
||||||
|
#### build fresh docker image if ready ####
|
||||||
|
bash $REPO_DIR/build.sh || true
|
||||||
|
|
||||||
#### reboot ####
|
#### reboot ####
|
||||||
echo "Rebooting shortly..."
|
echo "Rebooting shortly..."
|
||||||
sleep 15
|
sleep 15
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
REPO_DIR=/root/y2k
|
REPO_DIR=/root/y2k
|
||||||
|
IMAGE_NAME=y2k:latest
|
||||||
|
|
||||||
$REPO_DIR/host/websocketd \
|
$REPO_DIR/host/websocketd \
|
||||||
--port=80 \
|
--port=80 \
|
||||||
@ -14,7 +15,7 @@ $REPO_DIR/host/websocketd \
|
|||||||
--network none \
|
--network none \
|
||||||
--log-driver none \
|
--log-driver none \
|
||||||
--rm -i \
|
--rm -i \
|
||||||
registry.digitalocean.com/jakejarvis/y2k:latest
|
$IMAGE_NAME
|
||||||
|
|
||||||
# to spawn QEMU processes natively on the host machine instead of via
|
# to spawn QEMU processes natively on the host machine instead of via
|
||||||
# individual Docker containers:
|
# individual Docker containers:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user