Skip to content

Commit

Permalink
migrated single version per branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonjp committed Oct 9, 2015
1 parent 281b749 commit 811e89b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 45 deletions.
10 changes: 5 additions & 5 deletions 0.10/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
FROM mutterio/mini-base

ENV VERSION=v0.10.39 CMD=node DOMAIN=nodejs.org
ENV VERSION=v0.10.39

RUN apk update && \
apk add --virtual build-dependencies make gcc g++ python paxctl curl && \
curl -sSL https://${DOMAIN}/dist/${VERSION}/${CMD}-${VERSION}.tar.gz | tar -xz && \
cd /${CMD}-${VERSION} && \
curl -sSL https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.gz | tar -xz && \
cd /node-${VERSION} && \
NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
export CFLAGS="$CFLAGS -D__USE_MISC" && \
./configure --prefix=/usr && \
make -j${NPROC} -C out mksnapshot && \
paxctl -c -m out/Release/mksnapshot && \
make -j${NPROC} && \
make install && \
paxctl -cm /usr/bin/${CMD} && \
paxctl -cm /usr/bin/node && \
apk del build-dependencies && \
apk add openssl ca-certificates libgcc libstdc++ && \
npm install -g npm && \
cd / && \
rm -rf \
/${CMD}-${VERSION} \
/node-${VERSION} \
/var/cache/apk/* \
/tmp/* \
/root/.npm \
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions 0.10/dev/Dockerfile → dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
FROM mutterio/mini-base

ENV VERSION=v0.10.39 CMD=node DOMAIN=nodejs.org
ENV VERSION=v0.10.39

RUN apk update && \
apk add make gcc g++ python paxctl curl openssl ca-certificates \
libgcc libstdc++ && \
curl -sSL https://${DOMAIN}/dist/${VERSION}/${CMD}-${VERSION}.tar.gz | tar -xz && \
cd /${CMD}-${VERSION} && \
curl -sSL https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.gz | tar -xz && \
cd /node-${VERSION} && \
NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
export CFLAGS="$CFLAGS -D__USE_MISC" && \
./configure --prefix=/usr && \
make -j${NPROC} -C out mksnapshot && \
paxctl -c -m out/Release/mksnapshot && \
make -j${NPROC} && \
make install && \
paxctl -cm /usr/bin/${CMD} && \
paxctl -cm /usr/bin/node && \
npm install -g npm && \
cd / && \
rm -rf \
/${CMD}-${VERSION} \
/node-${VERSION} \
/var/cache/apk/* \
/tmp/* \
/root/.npm \
Expand Down
2 changes: 1 addition & 1 deletion 0.10/dev/Makefile → dev/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
REGISTRY=mutterio
NAME=mini-nodejs
TAG=builder
TAG=builder_4.1.2

build: Dockerfile
docker build -t ${NAME} .
Expand Down
22 changes: 0 additions & 22 deletions iojs/Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions iojs/Makefile

This file was deleted.

0 comments on commit 811e89b

Please sign in to comment.