GithubHelp home page GithubHelp logo

tquentin / lair-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lair-framework/lair-docker

0.0 0.0 0.0 24 KB

Lair Framework dockerized.

JavaScript 6.26% Shell 53.15% Dockerfile 40.59%

lair-docker's Introduction

lair-docker

This is a dockerized version of the Lair Framework. An attempt to take all the steps from the Installation Instructions and simplify it to a few simple commands.

It also includes ngrok, to help automate the process of sharing your Lair instance with co-workers.

This was inspired and built off the initial work done by b00stfr3ak here: https://github.com/b00stfr3ak/dockerfiles/tree/master/lair;

Installation

First make sure you have docker installed. Here are OS X Beta and Linux instructions.

To install docker-compose in Linux (in case you have problem with version 1.5.2 of the repos) use the following guide. You may also need to create a symbolic link

$ ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

then use the following commands:

$ git clone https://github.com/ryhanson/lair-docker.git
$ cd lair-docker
$ docker-compose build
$ docker-compose up

If everything worked, you should see something like:

lair_setup   | MongoDB shell version: 3.2.7
lair_setup   | connecting to: lairdb:27017/admin
lair_setup   | "Replication set initialized."
lair_caddy   | Activating privacy features... done.
lair_caddy   | 0.0.0.0:11013
lair_caddy   | 0.0.0.0:11012
lair_setup exited with code 0
lair_lair    | Created admin@localhost with password 1234abcd5678ef
lair_api     | 2016/06/20 06:29:42 Listening on 0.0.0.0:11015

Copy, paste, save, or write down your admin credentials. Then you can press Ctrl+C to stop all the services.

Usage

Before running any docker-compose commands, make sure you are in the lair-docker directory.

When you are ready to start up Lair again, run:

$ docker-compose start

To stop all Lair services, run:

$ docker-compose stop

To use ngrok, set ENABLED: 1 in docker-compose.yml and run:

$ docker-compose up ngrok

Once you've done this, you can press Ctrl+C and use start and stop like below. The up command has to be ran any time you update the docker-compose.yml file.

Moving existing MongoDB database

If you previously used this environment with /usr/local/mongodb configured as the volume for MongoDB, you'll need to copy your database files to the new volume location. You can do so by running:

$ mkdir ~/.lair
$ cp -R /usr/local/mongodb ~/.lair/

This update was made due to issues with Docker on OS X and not having proper permissions to create the /usr/local/mongodb folder. If you haven't used this Docker environment, you won't have a database to move and you can ignore the instructions above.

Using ngrok

NOTE: If you used this Docker envrionment before the ENABLED flag was added, you'll need to rebuild ngrok by running:

$ docker-compose build ngrok

To re-start ngrok after it has been stopped, run:

$ docker-compose start ngrok

To find the ngrok URL after running start, you can run:

$ docker logs lair_ngrok

To stop ngrok, run:

$ docker-compose stop ngrok

lair-docker's People

Contributors

calebsargent avatar giaurbs avatar iamkgro avatar jamesbcook avatar leesoh avatar mattburch avatar ryhanson avatar tomsteele avatar usezfsyo 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.