Skip to content

Instantly share code, notes, and snippets.

@adamalex
Last active August 8, 2017 10:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamalex/6100288 to your computer and use it in GitHub Desktop.
Save adamalex/6100288 to your computer and use it in GitHub Desktop.
Single-command evaluation of StrongLoop Node using Docker
# PREREQUISITE
# Install Docker: http://www.docker.io/gettingstarted/
# SINGLE COMMAND STRONGLOOP NODE.JS (http://strongloop.com) EVALUATION
# This will log you in to an isolated lightweight virtual system (LXC)
# - Base Ubuntu 12.10 (Quantal Quetzal)
# - StrongLoop Node 1.1 GA
docker run -i -t adamalex/strongloop bash
# First run takes some time while system files are downloaded. Subsequent runs are nearly instantaneous
# Source Dockerfile can be found at https://gist.github.com/adamalex/6098134
# CHECK STRONGLOOP VERSION (from inside LXC)
# slnode version
# -> strongloop 1.1.0-1 (node v0.10.13)
# BONUS COMMANDS
# Map LXC port 80 to host port 49800 and /app to host directory /projects/nodeweb
# This allows you to run a node app listening on LXC port 80 and visit it from host at http://localhost:49800
# docker run -i -t -p=49800:80 -v=/projects/nodeweb:/app adamalex/strongloop bash
# Do as above, but start the server immediately
# docker run -i -t -p=49800:80 -v=/projects/nodeweb:/app adamalex/strongloop node /app/app.js
# Please comment below with questions or to let me know about any improvements you make. Enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment