aboutsummaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-03-26 20:51:17 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-03 21:57:39 +0100
commite8d5e4fbf0990ecb497893a45da1c0c200bb5ee4 (patch)
tree1731e9b868233ee4268d5e0fa2a2d1f14450378a /README.org
parentec5614ddec47b94f21f0d48c5175fedd6e77e448 (diff)
downloadgovuk-mini-environment-admin-e8d5e4fbf0990ecb497893a45da1c0c200bb5ee4.tar
govuk-mini-environment-admin-e8d5e4fbf0990ecb497893a45da1c0c200bb5ee4.tar.gz
Add information on dependencies to the README
Diffstat (limited to 'README.org')
-rw-r--r--README.org50
1 files changed, 50 insertions, 0 deletions
diff --git a/README.org b/README.org
index 6b27836..615ff1f 100644
--- a/README.org
+++ b/README.org
@@ -47,3 +47,53 @@ in the PostgreSQL databae. The queues are where Terraform is run.
*** Terraform configuration
The Terraform configuration is split up by provider (libvirt or AWS).
+** Dependencies
+
+The GOV.UK Mini Environment Admin has a number of dependencies.
+
+*** Core Dependencies
+
+The web application is written in [[https://www.ruby-lang.org/][Ruby]] using the [[http://rubyonrails.org/][Ruby on Rails]]
+framework. A number of additional Ruby gems are also required:
+- pg
+- terraform
+- que
+- git
+
+The backends for AWS and libvirt use Terraform.
+
+*** Useful additions
+
+**** Rubocop and Coala
+
+For static analysis and code linting.
+
+**** rerun
+
+Useful to run =que= with, e.g. =rerun -d app que
+./config/environment.rb=.
+
+** Development Environment
+
+The repository includes a minimal =.envrc= file for use with
+[[https://direnv.net/][direnv]]. User specific customisation can be done through the
+=.local.envrc= file.
+
+Unless you've already setup a sufficient development environment, you
+might want to use direnv to set this up. The following code for
+=.local.envrc= will setup the envionment to use a checkout of GNU Guix
+located at =../gnu-guix= and a checkout of =govuk-guix= located at
+=../govuk-guix=.
+
+#+BEGIN_SRC shell
+# To avoid $XDG_CONFIG_HOME/guix/latest from being used
+export GUIX_UNINSTALLED="true"
+
+GOVUK_GUIX_PATH="$(readlink -f "$PWD/../govuk-guix/.guix-package-path")"
+GNU_GUIX_PATH="$(readlink -f "$PWD/../gnu-guix")"
+
+export GUILE_LOAD_PATH="$GOVUK_GUIX_PATH:$GNU_GUIX_PATH"
+export GUILE_LOAD_COMPILED_PATH="$GNU_GUIX_PATH"
+
+export GUIX_PACKAGE_PATH="$GUILE_LOAD_PATH"
+#+END_SRC