aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-10-25 12:53:30 -0700
committerJakob Odersky <jakob@odersky.com>2018-10-25 13:12:02 -0700
commitefffe7db837fb292131c6eacefb42bde2a482883 (patch)
treeb02a821cc6cd54dc9d4b0dab5c9d9f1b8ce521bf
parent0b0ae99a63242364f6a6e8966fcb7cb0a0eb1427 (diff)
downloadinfra-efffe7db837fb292131c6eacefb42bde2a482883.tar.gz
infra-efffe7db837fb292131c6eacefb42bde2a482883.tar.bz2
infra-efffe7db837fb292131c6eacefb42bde2a482883.zip
Add readme to package directory
-rw-r--r--packages/Makefile1
-rw-r--r--packages/README.md54
2 files changed, 54 insertions, 1 deletions
diff --git a/packages/Makefile b/packages/Makefile
index e8b72d9..01805c7 100644
--- a/packages/Makefile
+++ b/packages/Makefile
@@ -87,4 +87,3 @@ dist-clean:
rm -rf target
.PHONY: all run clean dist-clean
-# apt install devscripts build-essential lintian qemu-kvm vmdebootstrap
diff --git a/packages/README.md b/packages/README.md
new file mode 100644
index 0000000..6f407e9
--- /dev/null
+++ b/packages/README.md
@@ -0,0 +1,54 @@
+# Config Packages
+
+This directory contains sources and scripts for building and testing
+Debian config packages for common server roles, tailored to the
+conventions used for managing crashbox.io.
+
+All packages are built from a single [debian source
+package](https://wiki.debian.org/Packaging/SourcePackage) in
+`crashbox-config`.
+
+Although this source package can be built in the regular way (e.g. by
+cd'ing into debian and running `debuild`), a makefile is also provided
+for cleaner builds and testing the packages. Some notable makefile
+targets are:
+
+- `all`: builds a package archive (that may be used as a "deb"
+ source for `apt`)
+
+- `run`: starts a virtual machine with the package archive configured
+ as an additional "deb" source. Config packages may be tested by
+ running `apt update` and `apt install <package>`.
+
+## Dependencies
+
+Config packages declare their own dependencies, however the following
+packages are required to get started:
+
+```bash
+apt install \
+ apt-cacher-ng \
+ build-essential \
+ devscripts \
+ lintian \
+ qemu-kvm \
+ vmdebootstrap
+```
+## Example
+
+1. `make run`: builds packages, bundles tem in an archive and starts a
+ virtual machine. Note that running this first time may take a while
+ a require and require significatnt bandwidth, since the base image
+ of the virtual machine needs to be bootstrapped.
+
+2. login with `root` (no password)
+
+3. `apt update`: update apt's list of available packages
+
+4. `apt install crashbox-ip-config`: configure the vm to become an
+ "ip-echo" service. This will install and configure dependent
+ packages too, such as `crashbox-nginx-config` and
+ `crshbox-base-config`.
+
+5. back on the host, visit `https://ip.localhost:10443` to confirm the
+ service os running