The Companies House public beta service core web application.
In order to build this service you need:
- GNU Make
- GetPAN for dependency resolution
In order to run this service you need:
- Perl >=5.18.2
Clone this repository:
$ git clone https://github.com/companieshouse/ch.gov.uk.git
Initialise the submodule:
$ git submodule init
$ git submodule update
Resolve project dependencies by 'building' the service:
$ make build
If a build error is encountered during the 'test' phase, running the following command may fix it:
$ aws s3 cp s3://release.ch.gov.uk/ch.gov.uk-deps/ch.gov.uk-deps-1.1.6.zip . && unzip ch.gov.uk-deps-1.1.6.zip -d <<PATH-TO-DOCKER-CHS-DEVELOPMENT-REPO>>/repositories/ch-gov-uk/local;
Run the service using the provided script:
$ ./start.sh
The default configuration can be overridden by either exporting environment variables at the command line prior to launching the application or by adding variable exports to ~/.chs_env/ch.gov.uk/env
.
Pull image from private CH registry by running docker pull 169942020521.dkr.ecr.eu-west-1.amazonaws.com/local/ch.gov.uk:latest
command or run the following steps to build image locally:
make
(only once to clone submodules and pull dependencies)DOCKER_BUILDKIT=0 docker build -t 169942020521.dkr.ecr.eu-west-1.amazonaws.com/local/ch.gov.uk:latest .