This set of Templates provide all the components to deploy a single Gerrit master in ECS
Three templates are provided in this example:
cf-cluster: define the ECS cluster and the networking stack
cf-service: defined the service stack running Gerrit
cf-dns-route: defined the DNS routing for the service
error_logis exported in a Log Group in CloudWatch
You can find on GerritForge's YouTube Channel a step-by-step guide on how to setup you Gerrit Code Review in AWS.
However, keep reading this guide for a more exhaustive explanation.
Follow the steps described in the Prerequisites section
Please refer to the configuration docs to understand how to set up the configuration and what common configuration values are needed. On top of that, you might set the additional parameters, specific for this recipe.
Configuration values affecting deployment environment and cluster properties
SERVICE_STACK_NAME: Optional. Name of the service stack.
GERRIT_INSTANCE_ID: Optional. Identifier for the Gerrit instance. “gerrit-single-master” by default.
make [AWS_REGION=a-valid-aws-region] [AWS_PREFIX=some-cluster-prefix] create-all
AWS_REFIX allow you to define where it will be deployed and what it will be named.
It might take several minutes to build the stack. You can monitor the creations of the stacks in CloudFormation
pemfile on the current directory. To use when ssh-ing into your instances as follow:
ssh -i cluster-keys.pem ec2-user@<ec2_instance_ip>
make [AWS_REGION=a-valid-aws-region] [AWS_PREFIX=some-cluster-prefix] delete-all
AWS_REFIX allow you to specify exactly which stack you target for deletion.
Note that this will not delete:
You Gerrit instance will be available at this URL:
The available ports are
8080 for HTTP and
29418 for SSH.
If you need to setup some external services (maybe for testing purposes, such as SMTP or LDAP), you can follow the instructions here
Refer to the Docker section for information on how to setup docker or how to publish images