From 1421676d175b727b24e5c920f5fe769c4210c328 Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Fri, 27 Jun 2014 15:05:52 -0700 Subject: [PATCH 1/2] Create Dockerfile for wetty --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4f75d35 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node +MAINTAINER Nathan LeClaire + +ADD . /app +WORKDIR /app +RUN npm install +RUN apt-get update +RUN apt-get install -y vim +RUN useradd -d /home/term -m -s /bin/bash term +RUN echo 'term:term' | chpasswd + +EXPOSE 3000 + +ENTRYPOINT ["node"] +CMD ["app.js", "-p", "3000"] From 3c1a9f6feb93e00bff1ea4cf03c489f22ad5d15b Mon Sep 17 00:00:00 2001 From: Nathan LeClaire Date: Fri, 27 Jun 2014 16:38:00 -0700 Subject: [PATCH 2/2] Modify README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index acb5310..c26ef80 100644 --- a/README.md +++ b/README.md @@ -84,3 +84,18 @@ Issues ------ Does not work on Firefox as hterm was written for ChromeOS. So works well on Chrome. + +Dockerized Version +------------------ + +This repo includes a Dockerfile you can use to run a Dockerized version of wetty. You can run +whatever you want! + +Just do: + +``` +docker run --name term -p 3000 -dt nathanleclaire/wetty +``` + +Visit the appropriate URL in your browser (`[localhost|$(boot2docker ip)]:PORT`). +The username is `term` and the password is `term`.