From 2e8aa368580585215298fa740e50a9361a0a281e Mon Sep 17 00:00:00 2001 From: stacksmith-bot Date: Tue, 12 Jul 2016 16:53:33 -0700 Subject: [PATCH 1/2] stacksmith: Add Dockerfile --- bitnami/node/Dockerfile | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/bitnami/node/Dockerfile b/bitnami/node/Dockerfile index 639a87dbe159..fd6edf1b9e8e 100644 --- a/bitnami/node/Dockerfile +++ b/bitnami/node/Dockerfile @@ -1,17 +1,35 @@ +## BUILDING +## (from project root directory) +## $ docker build -t bitnami-bitnami-docker-node . +## +## RUNNING +## $ docker run -p 3000:3000 bitnami-bitnami-docker-node +## +## CONNECTING +## Lookup the IP of your active docker host using: +## $ docker-machine ip $(docker-machine active) +## Connect to the container at DOCKER_IP:3000 +## replacing DOCKER_IP for the IP of your active docker host + FROM gcr.io/stacksmith-images/ubuntu-buildpack:14.04-r8 + MAINTAINER Bitnami -ENV BITNAMI_IMAGE_VERSION=6.3.0-r0 \ - BITNAMI_APP_NAME=node +ENV STACKSMITH_STACK_ID="2eg0n7n" \ + STACKSMITH_STACK_NAME="bitnami/bitnami-docker-node" \ + STACKSMITH_STACK_PRIVATE="1" RUN bitnami-pkg install node-6.3.0-0 --checksum f2997c421e45beb752673a531bf475231d183c30f7f8d5ec1a5fb68d39744d5f -ENV PATH=/opt/bitnami/python/bin:/opt/bitnami/$BITNAMI_APP_NAME/bin:/opt/bitnami/common/bin:$PATH -RUN bitnami-pkg install imagemagick-6.7.5-10-3 --checksum 617e85a42c80f58c568f9bc7337e24c03e35cf4c7c22640407a7e1e16880cf88 -RUN bitnami-pkg install mysql-libraries-10.1.13-0 --checksum 71ca428b619901123493503f8a99ccfa588e5afddd26e0d503a32cca1bc2a389 +ENV PATH=/opt/bitnami/node/bin:/opt/bitnami/python/bin:$PATH \ + NODE_PATH=/opt/bitnami/node/lib/node_modules -CMD ["node"] +## STACKSMITH-END: Modifications below this line will be unchanged when regenerating +# Node base template +COPY . /app WORKDIR /app -EXPOSE 3000 +RUN npm install + +CMD ["node"] From 83b374953947a6469b8f810879ab45911c7a45b6 Mon Sep 17 00:00:00 2001 From: Adnan Abdulhussein Date: Tue, 12 Jul 2016 17:06:38 -0700 Subject: [PATCH 2/2] Add addons to Stacksmith Dockerfile, remove COPY instruction --- bitnami/node/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bitnami/node/Dockerfile b/bitnami/node/Dockerfile index fd6edf1b9e8e..2816544e1f7e 100644 --- a/bitnami/node/Dockerfile +++ b/bitnami/node/Dockerfile @@ -26,10 +26,13 @@ ENV PATH=/opt/bitnami/node/bin:/opt/bitnami/python/bin:$PATH \ ## STACKSMITH-END: Modifications below this line will be unchanged when regenerating -# Node base template -COPY . /app +RUN bitnami-pkg install imagemagick-6.7.5-10-3 --checksum 617e85a42c80f58c568f9bc7337e24c03e35cf4c7c22640407a7e1e16880cf88 +RUN bitnami-pkg install mysql-libraries-10.1.13-0 --checksum 71ca428b619901123493503f8a99ccfa588e5afddd26e0d503a32cca1bc2a389 + +ENV BITNAMI_APP_NAME=node \ + BITNAMI_IMAGE_VERSION=6.3.0-r0 + +EXPOSE 3000 WORKDIR /app -RUN npm install - CMD ["node"]