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
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) |
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
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 && \ |
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
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 |
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
#!/user/bin/env python | |
import psycopg2 | |
import datetime | |
import random | |
import time | |
import sys | |
def randuser(): | |
return (int(random.random() * 100) + 1) |
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
#!/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 ( |
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
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 |
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
containers & databases | |
====================== | |
databases | |
--------- | |
* postgres | |
* mysql & mariadb | |
* oracle | |
* redis |
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
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 |
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
``` | |
# 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 |
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
-- For documentation on these functions, please see blog post at: | |
-- http://www.databasesoup.com/2012/10/determining-furthest-ahead-replica.html | |
-- determines current xlog location as a monotonically increasing numeric. | |
CREATE OR REPLACE FUNCTION xlog_location_numeric(vcloc text default NULL) | |
RETURNS numeric | |
LANGUAGE plpgsql | |
as $f$ | |
DECLARE cloc text; | |
floc text[]; |