Skip to content

Instantly share code, notes, and snippets.

Avatar

Ilya Dmitrichenko errordeveloper

View GitHub Profile
View gist:7a078c53d4694f0cad9a727255fb23a6
# 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
rm /var/db/BootCache.playlist /var/db/volinfo.database /var/db/.AppleSetupDone
rm /var/vm/swap*
View test.ipxe
#!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
@errordeveloper
errordeveloper / install-weave.service
Last active Dec 13, 2016
systemd units for Weave Net
View install-weave.service
[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 mesos-troubleshooting.md

The Marathon UI doesn't say much: Marathon Mesos UI says even less: Mesos main table Mesos details

Agent log on on of the nodes:

@errordeveloper
errordeveloper / scope.json
Last active Apr 5, 2016
Marathon manifest for Weave Scope (in standalone mode)
View scope.json
{
"id": "/weavescope",
"cmd": null,
"cpus": 1,
"mem": 128,
"disk": 0,
"instances": 3,
"ports": [
0
],
@errordeveloper
errordeveloper / weave.service
Last active Feb 4, 2016
systemd units for Weave Net
View weave.service
[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
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 \
@errordeveloper
errordeveloper / Swarm.md
Last active Mar 27, 2021
A quick guide to using Weave Net with Docker Swarm
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.