Skip to content

Commit

Permalink
Add io.js v2.0.0-rc-3
Browse files Browse the repository at this point in the history
PR-URL: nodejs#55
Related: nodejs#51
Related: nodejs/iojs.org#327
Related: nodejs/node#1532

Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@turistforeningen.no>
  • Loading branch information
Hans Kristian Flaatten committed May 4, 2015
1 parent 82e25e0 commit 18d119c
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM buildpack-deps:jessie

# gpg keys listed at https://github.com/iojs/io.js
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
FD3A5288F042B6850C66B31F09FE44734EB7990E

ENV NPM_CONFIG_LOGLEVEL info
ENV IOJS_VERSION 2.0.0-nightly20150504f34b105ccd

RUN curl -SLO "https://iojs.org/download/nightly/v$IOJS_VERSION/iojs-v$IOJS_VERSION-linux-x64.tar.gz" \
&& curl -SLO "https://iojs.org/download/nightly/v$IOJS_VERSION/SHASUMS256.txt" \
&& grep " iojs-v$IOJS_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xzf "iojs-v$IOJS_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
&& rm "iojs-v$IOJS_VERSION-linux-x64.tar.gz" SHASUMS256.txt

CMD [ "iojs" ]
1 change: 1 addition & 0 deletions 2.0/README.md
7 changes: 7 additions & 0 deletions 2.0/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
iojs2:
build: .
command: iojs --version

iojs2slim:
build: slim
command: iojs --version
10 changes: 10 additions & 0 deletions 2.0/onbuild/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM iojs:2.0.0

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY package.json /usr/src/app/
ONBUILD RUN npm install
ONBUILD COPY . /usr/src/app

CMD [ "npm", "start" ]
18 changes: 18 additions & 0 deletions 2.0/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM buildpack-deps:jessie-curl

# gpg keys listed at https://github.com/iojs/io.js
RUN gpg --keyserver pool.sks-keyservers.net --recv-keys \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
FD3A5288F042B6850C66B31F09FE44734EB7990E

ENV NPM_CONFIG_LOGLEVEL info
ENV IOJS_VERSION 2.0.0-nightly20150504f34b105ccd

RUN curl -SLO "https://iojs.org/download/nightly/v$IOJS_VERSION/iojs-v$IOJS_VERSION-linux-x64.tar.gz" \
&& curl -SLO "https://iojs.org/download/nightly/v$IOJS_VERSION/SHASUMS256.txt" \
&& grep " iojs-v$IOJS_VERSION-linux-x64.tar.gz\$" SHASUMS256.txt | sha256sum -c - \
&& tar -xzf "iojs-v$IOJS_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 \
&& rm "iojs-v$IOJS_VERSION-linux-x64.tar.gz" SHASUMS256.txt

CMD [ "iojs" ]

0 comments on commit 18d119c

Please sign in to comment.