Skip to content

Instantly share code, notes, and snippets.

View errordeveloper's full-sized avatar

Ilya Dmitrichenko errordeveloper

View GitHub Profile
# 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
rm /var/db/BootCache.playlist /var/db/volinfo.database /var/db/.AppleSetupDone
rm /var/vm/swap*
#!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 December 13, 2016 19:08
systemd units for Weave Net
[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}

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 April 5, 2016 19:04
Marathon manifest for Weave Scope (in standalone mode)
{
"id": "/weavescope",
"cmd": null,
"cpus": 1,
"mem": 128,
"disk": 0,
"instances": 3,
"ports": [
0
],
@errordeveloper
errordeveloper / weave.service
Last active February 4, 2016 19:25
systemd units for Weave Net
[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
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 March 27, 2021 15:03
A quick guide to using Weave Net with Docker Swarm

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.