Skip to content

Instantly share code, notes, and snippets.

💭
Catching up and prepping for Kubecon Shanghai

Josh Berkus jberkus

💭
Catching up and prepping for Kubecon Shanghai
Block or report user

Report or block jberkus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1b3e6989cf37a3852c60d2d4318a160e
Demos in the booth
Virtualization Salon
OpenShift Commons
Talks?
Dinner/other team outing?
View gist:1eb55b7d85e2d584f7c7c6138776c2d1
Potential ordering for F27 Blog Posts
Tuesday: Release announcement/summary
Tuesday: 26->27 Migration post
Wednesday: Migrating Kubernetes post
Thursday: Multi-arch (both on blog and on Magazine)
View gist:0547beeb9c2713d7d8c67796a0eb2492
FROM fedora:25
MAINTAINER Josh Berkus "josh@agliodbs.com"
LABEL Usage="docker run -d -P --tmpfs /run --tmpfs /tmp -v /sys/fs/cgroup:/sys/fs/cgroup pgadmin4"
ENV container=oci
# install packages
RUN dnf install -y https://download.postgresql.org/pub/repos/yum/9.6/fedora/fedora-25-x86_64/pgdg-fedora96-9.6-3.noarch.rpm && \
View gist:75168b0c0cd3656c4fd8f57d1a3028ba
As an example, let's say that we have a Fedora Atomic host which is on the default ref. That ostree will now be updated every two weeks, and only every two weeks:
```
-bash-4.3# date
Fri Feb 10 21:05:27 UTC 2017
-bash-4.3# rpm-ostree status
State: idle
Deployments:
● fedora-atomic:fedora-atomic/25/x86_64/docker-host
@jberkus
jberkus / download_issues.py
Last active Dec 6, 2016
Simple script for downloading all of a project's github issues into a PostgreSQL database
View download_issues.py
#!/usr/bin/env python
# Usage: download_issues.py owner repo postgres_dsn github_token
# simple script for downloading all issues from the given repository
# requires you to set up an API token with no special permissions
# also requires a PostgreSQL database with the following tables:
"""
create table issues (
View gist:4e926c76fbf772ffee4eb774cb0a4c60
Nov 22 22:06:57 ip-172-31-36-35.us-west-2.compute.internal oci-systemd-hook[9680]: systemdhook <debug>: Skipping as container command is /usr/local/bin/kube-controller-manager, not init or systemd
Nov 22 22:06:57 ip-172-31-36-35.us-west-2.compute.internal kubelet[8942]: I1122 22:06:57.998626 8942 factory.go:111] Using factory "docker" for container "/system.slice/docker-ba0c74e340d3795cd0d490cbad0b4135
Nov 22 22:06:58 ip-172-31-36-35.us-west-2.compute.internal systemd[1]: libcontainer-9684-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Nov 22 22:06:58 ip-172-31-36-35.us-west-2.compute.internal systemd[1]: libcontainer-9684-systemd-test-default-dependencies.scope: Scope has no PIDs. Refusing.
Nov 22 22:06:58 ip-172-31-36-35.us-west-2.compute.internal kubelet[8942]: I1122 22:06:58.046995 8942 server.go:608] Event(api.ObjectReference{Kind:"Pod", Namespace:"kube-system", Name:"kube-controller-manager
Nov 22 22:06:58 ip-172-31-36-35.us-west-2.compute.internal kernel: XFS (dm-8): Mounti
@jberkus
jberkus / containers_and_dbs.txt
Last active Oct 15, 2016
Notes from Containers & Databases session at ContainerDays Austin
View containers_and_dbs.txt
containers & databases
======================
databases
---------
* postgres
* mysql & mariadb
* oracle
* redis
View gist:07872701823daa1aab86c72f785284c9
install
reboot
lang en_US.UTF-8
keyboard us
timezone --utc America/Los_Angeles
selinux --enforcing
zerombr
clearpart --all --initlabel
bootloader --location=mbr --boot-drive=sda
reqpart --add-boot
@jberkus
jberkus / atomic-ks.cfg
Created Aug 31, 2016
Sample Kickstart for Atomic on Minnowboard
View atomic-ks.cfg
```
# install Fedora Atomic and then reboot automatically
install
reboot
# set language, keyboard and timezone
lang en_US.UTF-8
keyboard us
timezone --utc America/Los_Angeles
View gist:21350c9279405e8dd5c3
apiVersion: v1
kind: Pod
metadata:
name: patroni
labels:
app: postgresql
spec:
containers:
- name: postgresql
image: jberkus/patroni-node
You can’t perform that action at this time.