From b25fd59b9ac84a0ba2e11fe1c4d25ec6ce1af215 Mon Sep 17 00:00:00 2001 From: Josh Berkus Date: Thu, 24 Mar 2016 21:04:06 -0700 Subject: [PATCH] Made changes to Atomic App instructions, run command in response to issue #274 --- BUILD.md | 22 ++++++++++++---------- Nulecule/artifacts/docker/atomic-site-run | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/BUILD.md b/BUILD.md index 436371fc..2587ed8f 100644 --- a/BUILD.md +++ b/BUILD.md @@ -6,22 +6,23 @@ instructions for building it. ## Atomic.app The recommended way to test the site is with [atomic.app](https://github.com/projectatomic/atomicapp). Currently, -verion 0.4.2 or later is required. +version 0.4.2 or later is required. ### First time setup -There are a few setup steps you need to do the first time you clone -the repository and run this as an atomic app. You should have to do these again -unless you re-clone the repo for some reason. +The first time you run it in Atomic App, you'll need to generate an answers.conf +file with information it needs to launch the container. You shouldn't have to +do this on successive runs unless you delete the answers.conf file for some +reason. -1. authorize directory sharing in SELinux (may not be required in a VM): +1. run genanswers: -``` - ./selinux_share.sh -``` + ``` + cd /path/to/atomic-site/Nulecule/ + atomicapp genanswers . + ``` -2. configure answers.conf by copying Nulecule/answers.conf.sample to answers.conf - and editing the contents. +2. edit answers.conf to match your setup. For answers.conf, the two things you are required to set is the full file paths to the two directories, /source and /data. The other fields should not require @@ -33,6 +34,7 @@ Once you've done the setup, you should be able to do this to run the container each time and test the atomic site by running from the repository root: ``` + cd /path/to/atomic-site/ sudo atomicpp run Nulecule/ ``` diff --git a/Nulecule/artifacts/docker/atomic-site-run b/Nulecule/artifacts/docker/atomic-site-run index 77009b62..b7bea3f6 100644 --- a/Nulecule/artifacts/docker/atomic-site-run +++ b/Nulecule/artifacts/docker/atomic-site-run @@ -1 +1 @@ -docker run --rm -p $hostport:4567 --volume $sourcedir:/tmp/source --volume $datadir:/tmp/data $image +docker run --rm -p $hostport:4567 --volume $sourcedir:/tmp/source:z --volume $datadir:/tmp/data:z $image