-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from stelligent/develop
Pipelines
- Loading branch information
Showing
41 changed files
with
1,550 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.iml | ||
.idea | ||
.release/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
[![Build Status](https://circleci.com/gh/stelligent/mu.svg?style=svg)](https://circleci.com/gh/stelligent/mu) | ||
[![Build Status](https://circleci.com/gh/stelligent/mu.svg?style=shield)](https://circleci.com/gh/stelligent/mu) [![Join the chat at https://gitter.im/stelligent/mu](https://badges.gitter.im/stelligent/mu.svg)](https://gitter.im/stelligent/mu?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
|
||
|
||
|
||
# Why? | ||
Amazon ECS (EC2 Container Service) provides an excellent platform for deploying microservices as containers. The challenge however is that there is a significant learning curve for microservice developers to deploy their applications in an efficient manner. Specifically, they must learn to use CloudFormation to orchestrate the management of ECS, ECR, EC2, ELB, VPC, and IAM resources. Additionally, tools like CodeBuild and CodePipeline must be mastered to create a continuous delivery pipeline for their microservices. | ||
|
@@ -17,7 +19,7 @@ curl -s https://raw.githubusercontent.com/stelligent/mu/master/install.sh | sh | |
curl -s https://raw.githubusercontent.com/stelligent/mu/master/install.sh | INSTALL_VERSION=0.1.0 INSTALL_DIR=~/bin sh | ||
``` | ||
|
||
## Commands | ||
# Commands | ||
|
||
``` | ||
# List all environments | ||
|
@@ -35,29 +37,26 @@ curl -s https://raw.githubusercontent.com/stelligent/mu/master/install.sh | INST | |
# Show details about a specific service (Which versions in which environments, pipeline status) | ||
> mu service show [-s <service_name>] | ||
# Build docker image and push to ECR | ||
> mu service push | ||
# Deploy the service to an environment | ||
> mu service deploy <environment_name> | ||
# Set an environment variable(s) for a service | ||
> mu service setenv <environment_name> [-s <service_name>] key=value[,...] | ||
# Undeploy the service from an environment | ||
> mu service undeploy <environment_name> [-s <service_name>] | ||
# List the pipelines | ||
> mu pipeline list | ||
# Show the pipeline details for a specific service | ||
> mu pipeline show <service_name> | ||
# Upsert the pipeline | ||
> mu pipeline up [-s <service_name>] [-u <repo_url>] [-t <repo_token>] | ||
> mu pipeline up [-t <repo_token>] | ||
# Terminate the pipeline | ||
> mu pipeline terminate [-s <service_name>] | ||
``` | ||
|
||
## Configuration | ||
# Configuration | ||
The definition of your environments, services and pipelines is done via a YAML file (default `./mu.yml`). | ||
|
||
``` | ||
|
@@ -86,9 +85,9 @@ environments: | |
vpcTarget: | ||
vpcId: vpc-xxxxx # The id of the VPC to launch ECS container instances into | ||
publicSubnetIds: # The list of subnets to use for ECS container instances | ||
- sg-xxxxx | ||
- sg-xxxxy | ||
- sg-xxxxz | ||
- subnet-xxxxx | ||
- subnet-xxxxy | ||
- subnet-xxxxz | ||
### Define the service for this repo | ||
service: | ||
|
@@ -105,4 +104,32 @@ service: | |
pathPatterns: | ||
- /bananas | ||
- /apples | ||
# Define the behavior of the pipeline | ||
pipeline: | ||
source: | ||
repo: stelligent/microservice-exemplar # The GitHub repo slug to build (default: none) | ||
branch: mu # The branch to build from (default: master) | ||
build: | ||
image: aws/codebuild/java:openjdk-8 # The image to use for CodeBuild job (default: aws/codebuild/ubuntu-base:latest) | ||
type: linuxContainer | ||
computeType: BUILD_GENERAL1_SMALL # The type of compute instance for builds (default: BUILD_GENERAL1_SMALL) | ||
acceptance: | ||
environment: dev # The environment name to deploy to for testing (default: dev) | ||
production: | ||
environment: production # The environment name to deploy to for production (default: production) | ||
``` | ||
|
||
|
||
|
||
# Contributing | ||
|
||
Want to contribute to Mu? Awesome! Check out the [contributing guidelines](CONTRIBUTING.md) to get involved. | ||
|
||
## Building from source | ||
|
||
* Install Go tools 1.7+ - (https://golang.org/doc/install) | ||
* Install [Glide](https://github.com/Masterminds/glide) via `curl https://glide.sh/get | sh` | ||
* Clone this repo `git clone [email protected]:stelligent/mu.git $GOPATH/src/github.com/stelligent/mu` | ||
* Go to src `cd $GOPATH/src/github.com/stelligent/mu` | ||
* Build with `make` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.4 | ||
0.1.5 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.