Public Repository

Last pushed: 2 years ago
Short Description
promises workshop
Full Description

git repo: https://github.com/oren/promises-workshop

Run

alias workshop='docker run -it -v $(pwd):/root oreng/promises-workshop'

workshop                 # show menu
workshop run foo.js      # run your solution
workshop verify foo.js   # verify your solution

The workshop stores your progress in .config. so sudo rm -r .config will reset the workshop.

Setup on your laptop

Prerequisites

Build Image

git clone git@github.com:oren/promises-workshop.git
cd promises-workshop
docker-compose build

Run the workshop

docker-compose run workshop                          # show menu
docker-compose run workshop run <file.js>            # run a solution
docker-compose run workshop verify <file.js>         # verify a solution

Dockerfile

FROM alpine:edge
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories 
RUN apk update
RUN apk add --update iojs && rm -rf /var/cache/apk/*

RUN mkdir promise-shop && cd promise-shop
ENV init.author.name=whatever
# RUN npm init -yf
RUN npm install q
RUN npm install -g promise-it-wont-hurt@latest
WORKDIR /root
ENV PATH /root:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

ENTRYPOINT ["promise-it-wont-hurt"]
Docker Pull Command
Owner
oreng