View gist:7a078c53d4694f0cad9a727255fb23a6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create an new direcotry with a very simple dockerfile | |
$ mkdir quay-issue && cd mkdir quay-issue | |
$ echo 'FROM scratch' > Dockerfile | |
# buildx auto-push only works with a builxkit driver, so we need to create a builder instance | |
$ docker buildx create --use | |
gifted_lewin | |
# try building and pushing to docker.io | |
$ docker buildx build --push --tag "docker.io/errordeveloper/gke-test-cluster-job-runner-init:e8e34968c060a23cfbfb27012d38e5ccbd3e27fe-dev-wip" . | |
[+] Building 2.9s (3/3) FINISHED | |
=> [internal] load build definition from Dockerfile 0.0s |
View macos-reset.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm /var/db/BootCache.playlist /var/db/volinfo.database /var/db/.AppleSetupDone | |
rm /var/vm/swap* |
View test.ipxe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ipxe | |
set base-url http://192.168.0.5 | |
kernel ${base-url}/homebox-kernel initrd=homebox-initrd.img console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0 | |
initrd ${base-url}/homebox-initrd.img | |
boot || goto local | |
:local | |
kernel /boot/homebox-kernel initrd=homebox-initrd.img console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0 |
View install-weave.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
After=network-online.target | |
After=docker.service | |
Before=weave.service | |
Requires=docker.service | |
Requires=network-online.target | |
Description=Install Weave | |
Documentation=http://docs.weave.works/ | |
ConditionFileNotEmpty=!/opt/bin/weave-${WEAVE_SCRIPT_VERSION} | |
ConditionFileIsExecutable=!/opt/bin/weave-${WEAVE_SCRIPT_VERSION} |
View scope.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "/weavescope", | |
"cmd": null, | |
"cpus": 1, | |
"mem": 128, | |
"disk": 0, | |
"instances": 3, | |
"ports": [ | |
0 | |
], |
View weave.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
#After=install-weave.service | |
After=docker.service | |
Description=Weave Network Router | |
Documentation=http://docs.weave.works/ | |
Requires=docker.service | |
Requires=install-weave.service | |
[Service] | |
TimeoutStartSec=0 | |
EnvironmentFile=-/etc/weave.%H.env |
View kube-up-gce-simplified
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute networks create \ | |
default --range 10.240.0.0/16 | |
gcloud compute firewall-rules create default-default-internal \ | |
--network default --source-ranges 10.0.0.0/8 --allow tcp:1-65535,udp:1-65535,icmp | |
gcloud compute firewall-rules create default-default-ssh \ | |
--network default --source-ranges 0.0.0.0/0 --allow tcp:22 | |
gcloud compute disks create kubernetes-master-pd \ |
View Swarm.md
Weave Net and Docker Swarm
This example show how-to setup a very simple Swarm cluster enabled with Weave Net.
## Infratructure
There are two hosts that have a recent version of Docker Engine running.
These hosts are named host1
and host2
, and might have the following in
/etc/hosts
or you just substitute IP addresses in the commands shown below.
NewerOlder