aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrej Marolt2016-07-02 12:53:53 +0200
committerAndrej Marolt2016-07-02 12:53:53 +0200
commitc568a6e0cd7e8bd4baf9e7e54d9c773d79b9b02c (patch)
treef38c63c32a4424d2db0a06e3975d5999188e70c9
parent756ad1764458751f2bbaca38a6d74c758ba69661 (diff)
downloadaur-c568a6e0cd7e8bd4baf9e7e54d9c773d79b9b02c.tar.gz
Update README.md
-rw-r--r--README.md93
1 files changed, 92 insertions, 1 deletions
diff --git a/README.md b/README.md
index e5a51889835e..94b422ac812d 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,92 @@
-# AUR \ No newline at end of file
+## [openshift-origin-git](https://aur.archlinux.org/packages/openshift-origin-git/) is a package for [Arch Linux](https://www.archlinux.org/).
+
+It downloads source code from official [OpenShift Origin](https://docs.openshift.org/latest) [GitHub repository](https://github.com/openshift/origin).
+
+Install script compiles source code, installs two binaries (oc, openshift) and six symlinks (kubectl, kube-apiserver, kube-controller-manager, kubelet, kube-proxy, kube-scheduler, oadm) into /usr/bin/ .
+
+I will release this package upon each upstream release.
+You can reinstall this package at any time to build binaries based on the latest commit (yaourt --sync openshift-origin-git).
+
+
+#### Core files
+
+These files are the core of openshift-origin-git package for Arch Linux.
+
+- PKGBUILD
+- install.sh
+- .SRCINFO
+
+PKGBUILD
+- Package build specification.
+- Source code is downloaded from GitHub.
+- Binaries are built from source code and placed into /usr/bin .
+- Some hooks are specified in the following script.
+
+install.sh
+- Install script is used when installing, upgrading or removing the package.
+
+.SRCINFO
+- Package metadata.
+
+
+#### Optional scripts
+
+These files are optional scripts. They let you run a cluster once you have installed the package.
+You should probably copy them to your path (/usr/local/bin).
+
+- config.sh
+- 0.read.config.sh
+- 1.install.cluster.sh
+- 2.install.certificate.sh
+- 3.start.cluster.sh
+- 4.stop.cluster.sh
+- 5.delete.cluster.sh
+
+config.sh
+- Sample configuration file. You can copy or edit it to your liking.
+
+0.read.config.sh
+- Shared dependency used by many scripts.
+
+1.install.cluster.sh
+- Create and start a new cluster configured by configuration file.
+- Usage: 1.install.cluster.sh config.sh
+
+2.install.certificate.sh
+- Install your server's certificate and private key into cluster.
+- Usage: 2.install.certificate.sh config.sh
+
+3.start.cluster.sh
+- Start an existing cluster that has been stopped.
+- Usage: 3.start.cluster.sh config.sh
+
+4.stop.cluster.sh
+- Stop a running cluster. Docker containers will be destroyed, but they will be recreated upon restart.
+- Usage: 4.stop.cluster.sh
+
+5.delete.cluster.sh
+- Delete a cluster and all it's data.
+- Usage: 5.delete.cluster.sh config.sh
+
+
+#### Dependencies
+
+##### Docker
+
+This package depends on docker package.
+docker.service should be enabled and started before running openshift origin cluster.
+You have to update docker.service configuration file (/etc/systemd/system/multi-user.target.wants/docker.service) to enable unsecured embedded docker registry.
+
+ExecStart=/usr/bin/docker daemon -s zfs --storage-opt zfs.fsname=ZFS0/docker --insecure-registry 172.30.0.0/16
+
+#### Recommended packages
+
+- lvm2: [LVM](https://wiki.archlinux.org/index.php/LVM): create logical volumes to be used by ZFS .
+- lxd: [LXD](https://wiki.archlinux.org/index.php/LXD): create linux containers .
+- zfs-dkms: [ZFS](https://wiki.archlinux.org/index.php/ZFS) support . Enable ZFS backend for Docker and LXD .
+
+#### Custom kernel
+
+"Due to security concerns, the default Arch kernel does not ship with the ability to run containers as an unprivileged user. LXD however needs this ability to run. You can either build a kernel yourself that has CONFIG_USER_NS enabled, or use linux-user-ns-enabled from the AUR."
+
+It's easy to build a [custom kernel](https://wiki.archlinux.org/index.php/Kernels/Arch_Build_System) .