Coder Social home page Coder Social logo

previewer's Introduction

Previewer

Manual Setup Instructions

  1. https://705622348339.signin.aws.amazon.com/console
  2. Create EC2 instance. Give it a public IP and 80GB of storage
  3. Install docker per ( https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository )
sudo apt-get update
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo usermod -aG docker ubuntu
  1. Install docker-compose
sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.15.0/docker-compose-$(uname -s)-$(uname -m)"
sudo chmod +x /usr/local/bin/docker-compose
  1. Install previewer
sudo apt-get install -y git make python-virtualenv
git clone https://github.com/Mashape/previewer.git
cd previewer
make setup
place a ssh private key with access to github at /home/ubuntu/.ssh/id_rsa
place the previewer.service unit files in /etc/systemd/system/previewer-[web|task].system
edit the previewer-[web|task].system file and update the changeme env variables
sudo systemctl daemon-reload
sudo systemctl enable previewer-web
sudo systemctl enable previewer-task
sudo systemctl start previewer-web
sudo systemctl start previewer-task
sudo systemctl status previewer-web #verify its running
sudo systemctl status previewer-task #verify its running
sudo journalctl -u previewer-web  #view the logs
sudo journalctl -u previewer-task  #view the logs
ssh -T [email protected] #verify we can access github

Adding Your Project to Previewer

  1. Make sure my github user (hutchic) can clone the repository
  2. Setup a github webhook for http://IP:5000/hooks with content type application/json
  3. Select the individual events create, delete, pull request and push
  4. Get the previewer webhook secret out of 1password
  5. Make sure the ping event gets a pong response
  6. Make a test PR in the repository
  7. setup R53 to point to the ELB

Adding Your IP

Login to 705622348339.signin.aws.amazon.com/console and edit the security group sg-79786d09. Be sure to note in the description who - where the IP exception is for. Set yourself a reminder to clean up locations that are temporary (coffee shop, library, customer premises etc)

previewer's People

Contributors

hutchic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.