Giter Site home page Giter Site logo

iri-research / learninglocker-vagrant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rael9/learninglocker-vagrant

0.0 2.0 0.0 27 KB

Vagrant with an ansible-provisioned Learning Locker instance. It's a nice easy way to get a local version of Learning Locker running.

License: GNU General Public License v2.0

Shell 100.00%

learninglocker-vagrant's Introduction

Learning Locker Vagrant

Vagrant with an ansible-provisioned Learning Locker instance. It's a nice easy way to get a local version of Learning Locker running.

Setup

  1. Install Vagrant, Virtualbox, Git, and Ansible.

Requires Vagrant 1.5+.

See http://vagrantup.com/downloads and https://www.virtualbox.org/wiki/Downloads for binary installers.

If you're on Mac OS X, you probably want to install Homebrew (http://brew.sh/) because it makes installing Ansible easy, and because it is awesome anyway.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then you can install Ansible easily.

brew update
brew install ansible

If you are on a debian-based Linux, you can install Ansible thusly:

apt-get install python-software-properties -y
add-apt-repository ppa:rquillo/ansible
apt-get update
apt-get install ansible -y
  1. Clone this repo if you haven't already.
git clone https://github.com/rael9/learninglocker-vagrant.git learninglocker-vagrant
cd learninglocker-vagrant
  1. Edit the vars.project.yml.

Edit the vars.project.yml file to change the URL that you would like to use, if you want.

You can also change the mongo user/pass if you want.

By default, it uses a local private network using the 2.3.4.5 IP address. You should add this, and the URL configured, to your hosts file:

# MacOS/Linux: /etc/hosts
# Windows: C:\Windows\System32\drivers\etc\hosts
2.3.4.5       local.learninglocker.org

If you want to change the local IP address you can add this, editing the IP:

vansible_ip: '2.3.4.5'
  1. Copy the vars.secret.yml.example to vars.secret.yml and edit it.

When using composer to install Learning Locker, GitHub will sometimes rate-limit the download of items. This usually only happens when an install fails and you have to do it a second time. But just in case, you can create a Personal Access Token here: https://github.com/settings/applications and change the github_token in vars.secret.yml from 'false' to the token value. I would suggest doing this just to save yourself the headache of the install failing. Just be sure not to commit your token anywhere, obviously!

  1. Bring up the virtual machine.
vagrant up

Vagrant will automatically install all the required packages, and then install Learning Locker.

  1. Reboot the machine.
vagrant reload
  1. Visit http://local.learninglocker.org/register (or whatever URL you configured).

This will allow you to configure the first user.

Notes

It must be said that while Vagrant and VirtualBox are supported on Windows, Ansible is not (at least not as a controller). So the provisioning won't work on Windows. You could set the vagrant up on a Linux or Mac machine and then copy it to a Windows machine to run it, I think, but I have not tried this. I can't think of any reason it wouldn't work, though.

learninglocker-vagrant's People

Contributors

rael9 avatar rklancer avatar ymph avatar

Watchers

James Cloos 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.