Skip to content

Instantly share code, notes, and snippets.

@vsoch
Created July 20, 2018 22:55
Show Gist options
  • Save vsoch/d6f04a55ff77aa1dbb0d3839f486b178 to your computer and use it in GitHub Desktop.
Save vsoch/d6f04a55ff77aa1dbb0d3839f486b178 to your computer and use it in GitHub Desktop.
rsvp-task example container
# Step 1: Find experiments
# =========================
docker run vanessa/expfactory-builder list
# The library is at https://expfactory.github.io/experiments
# You can contribute to it too!
# --> https://expfactory.github.io/expfactory/contribute#the-experiment-repository
# Step 2: Generate a Dockerfile
# =============================
# This is a working directory to do the build
mkdir -p /tmp/data
# Generate a Dockerfile with your task(s)
docker run -v /tmp/data:/data vanessa/expfactory-builder build rsvp-task
# Expfactory Version: 3.13
# LOG Recipe written to /data/Dockerfile
# You can add as many as you like!
# # docker run -v /tmp/data:/data vanessa/expfactory-builder build rsvp-task test-task ...
# Step 3: Build your Container!
# =============================
cd /tmp/data
docker build -t vanessa/rsvp .
# Run it!
docker run -p 80:80 vanessa/rsvp start
# You can put the Dockerfile under version control and build with Docker Hub, for an automated deployment!
# Check out the Container Builder for a template that is ready to go to do this for you!
# LabJS example --> https://expfactory.github.io/expfactory/integration-labjs
# General Builder --> https://expfactory.github.io/builder/
# Thanks to @earcanal for the new task!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment