GithubHelp home page GithubHelp logo

imclab / flynn-dev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flynn-archive/flynn-demo

0.0 2.0 0.0 411 KB

Flynn development environment in a VM

Home Page: https://flynn.io

License: Other

flynn-dev's Introduction

Flynn Dev Environment

This repo contains a Vagrantfile/Makefile combo that sets up all of the Flynn components and dependencies in a working dev/test configuration.

The only requirement is that you have VirtualBox and Vagrant installed.

Note: Flynn is alpha-quality software, so things are probably broken.

Demo video

Flynn Demo

Setup

After checking out this repo, boot up the VM in Vagrant:

vagrant up

After the VM provisioning has finished, log in to it and run make to install the dependencies and boot up the Flynn services:

vagrant ssh

make

Usage

With the Flynn processes running, open another terminal and deploy the example application:

vagrant ssh

cd nodejs-example

git push flynn master

If the deploy is successful, the example application should have one instance running which will be running a HTTP server:

curl http://10.0.2.15:55000

The flynn command line tool is used to manipulate the application.

Scale

To test out the router and scaling, turn up the web processes and add a domain:

flynn scale web=3

flynn domain example.com

The application will now be accessible via the router:

curl -H "Host: example.com" localhost:8080

Repeated requests to the router should show that the requests are load balanced across the running processes.

Logs

flynn ps will show the running processes. To get the logs from a process, use flynn logs:

flynn logs web.1

Run

An interactive one-off process may be spawned in a container:

flynn run bash

flynn-dev's People

Contributors

crohr avatar grigio avatar marceldegraaf avatar progrium avatar rojaro avatar titanous avatar

Watchers

 avatar  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.