From fa806f26aff927eb0d98b41e79786ae98987da5b Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Fri, 6 Sep 2013 19:58:05 -0700 Subject: [PATCH] Add usage instructions to the Dockerfile. Build, test and release docker using docker. --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Dockerfile b/Dockerfile index a0ef713c81..1f3ae7e712 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,24 @@ # This file describes the standard way to build Docker, using docker +# +# Usage: +# +# # Assemble the full dev environment. This is slow the first time. +# docker build -t docker . +# # Apparmor messes with privileged mode: disable it +# /etc/init.d/apparmor stop ; /etc/init.d/apparmor teardown +# +# # Run the test suite: +# docker run -privileged -lxc-conf=lxc.aa_profile=unconfined docker go test -v +# +# # Publish a release: +# docker run -privileged -lxc-conf=lxc.aa_profile=unconfined \ +# -e AWS_S3_BUCKET=baz \ +# -e AWS_ACCESS_KEY=foo \ +# -e AWS_SECRET_KEY=bar \ +# -e GPG_PASSPHRASE=gloubiboulga \ +# -lxc-conf=lxc.aa_profile=unconfined -privileged docker hack/release/release.sh +# + docker-version 0.6.1 from ubuntu:12.04 maintainer Solomon Hykes