Skip to content

Quickstart

Todd Wells edited this page Jun 24, 2019 · 11 revisions

Demo

Watch the 90 second demo below to see mu in action!

Demo

Steps

  • Install mu
  • Create a new git repo and clone - git clone git@github.com:my-github-user/my-app && cd my-app
  • Create a webpage - vi index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
  </head>
  <body>Hello World!</body>
</html>
  • Create Dockerfile - vi Dockerfile
FROM nginx
COPY index.html /usr/share/nginx/html/index.html
  • Initialize the mu.yml and buildspec.yml files: mu init --port 80 --env
  • Update the mu.yml to use / for the healthEndpoint:
service:
  name: extension
  port: 80
  healthEndpoint: /
  pathPatterns:
  - /*
  pipeline:
  • Commit and push: git add --all && git commit -m "mu init" && git push
  • Create the pipeline: mu pipeline up
  • Enter your GitHub Token when prompted (creation of OAuth GitHub token guide here)
  • Show the status of the service: mu svc show
  • Once the Acceptance Test has Succeeded, go to the console URL and provide the manual approval of the production change
  • Delete all resources in AWS: mu purge