Skip to content

Instantly share code, notes, and snippets.

@tnmt
tnmt / stns-query-wrapper.te
Created December 19, 2017 10:20
STNSのsshクエリラッパー用SELinuxのポリシーファイル
module stns-query-wrapper 1.0;
require {
type bin_t;
type chkpwd_t;
type policykit_t;
type sshd_t;
type sysctl_net_t;
type sysfs_t;
type system_dbusd_t;
@Luzifer
Luzifer / README.md
Last active August 25, 2019 12:34
Strategies for persistent data storage on CoreOS-cluster

Persistent data storage on CoreOS-cluster

Storing the data on the host machine

Data directories are created in /home/coreos and mounted into the container using volume cli options of docker run. All data the container writes is stored on the host and as long as the host persists safe against container restarts / recreates.

  • Pro
    • No effort, just create the directories and mount them into the container
  • Contra
  • Container is bound to host (unable to failover)
@hayajo
hayajo / flag-slice.go
Created July 28, 2014 07:25
golangのflagで値をスライスであつかう
package main
import (
"flag"
"fmt"
"log"
)
type items []string