Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
/build
39 changes: 0 additions & 39 deletions images/meteor/1.11.1-v1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,6 @@ SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit", "-u", "-c"]
ENV METEOR_VERSION 1.11.1
ENV PATH $PATH:/home/node/.meteor

ENV REACTION_DOCKER_BUILD true
ENV APP_SOURCE_DIR /opt/reaction/src
ENV APP_BUNDLE_DIR /opt/reaction/dist
ENV PATH $PATH:/home/node/.meteor

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
bsdtar \
bzip2 \
ca-certificates \
git \
python \
wget \
librdkafka-dev \
libsasl2-dev \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p "$APP_SOURCE_DIR" \
&& mkdir -p "$APP_BUNDLE_DIR" \
&& chown -R node "$APP_SOURCE_DIR" \
&& chown -R node "$APP_BUNDLE_DIR"

USER node

# Install Meteor. Copy the install script to a temp file first, so that we can
# replace the hard-coded `RELEASE` var in the script with the release we want installed.
RUN wget -O /tmp/install_meteor.sh https://install.meteor.com \
&& sed -i.bak "s/RELEASE=.*/RELEASE=\"$METEOR_VERSION\"/g" /tmp/install_meteor.sh \
&& printf "\\n[-] Installing Meteor %s...\\n" "$METEOR_VERSION" \
&& sh /tmp/install_meteor.sh \
&& rm /tmp/install_meteor.sh

WORKDIR $APP_SOURCE_DIR

# Node flags for the Meteor build tool
ONBUILD ARG TOOL_NODE_FLAGS
ONBUILD ENV TOOL_NODE_FLAGS $TOOL_NODE_FLAGS

USER node

# Install Meteor. Copy the install script to a temp file first, so that we can
Expand Down
52 changes: 52 additions & 0 deletions images/meteor/1.11.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Some Meteor commands fail if we use one of the slimmer Node images.
# Make sure we use the exact version of node shipped with this exact
# version of meteor.
# For example, check this file for your meteor release tag of interest:
# https://github.com/meteor/meteor/blob/release/METEOR%401.11.1/meteor#L3
FROM node:12.18.4

SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit", "-u", "-c"]

ENV METEOR_VERSION 1.11.1
ENV PATH $PATH:/home/node/.meteor

ENV REACTION_DOCKER_BUILD true
ENV APP_SOURCE_DIR /opt/reaction/src
ENV APP_BUNDLE_DIR /opt/reaction/dist
ENV PATH $PATH:/home/node/.meteor

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
bsdtar \
bzip2 \
ca-certificates \
git \
python \
wget \
librdkafka-dev \
libsasl2-dev \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p "$APP_SOURCE_DIR" \
&& mkdir -p "$APP_BUNDLE_DIR" \
&& chown -R node "$APP_SOURCE_DIR" \
&& chown -R node "$APP_BUNDLE_DIR"

USER node

# Install Meteor. Copy the install script to a temp file first, so that we can
# replace the hard-coded `RELEASE` var in the script with the release we want installed.
RUN wget -O /tmp/install_meteor.sh https://install.meteor.com \
&& sed -i.bak "s/RELEASE=.*/RELEASE=\"$METEOR_VERSION\"/g" /tmp/install_meteor.sh \
&& printf "\\n[-] Installing Meteor %s...\\n" "$METEOR_VERSION" \
&& sh /tmp/install_meteor.sh \
&& rm /tmp/install_meteor.sh

WORKDIR $APP_SOURCE_DIR

# Node flags for the Meteor build tool
ONBUILD ARG TOOL_NODE_FLAGS
ONBUILD ENV TOOL_NODE_FLAGS $TOOL_NODE_FLAGS

LABEL maintainer="Reaction Commerce <engineering@reactioncommerce.com>"
55 changes: 55 additions & 0 deletions images/meteor/1.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Some Meteor commands fail if we use one of the slimmer Node images.
# Make sure we use the exact version of node shipped with this exact
# version of meteor.
# For example, check this file for your meteor release tag of interest:
# https://github.com/meteor/meteor/blob/release/METEOR%401.11.1/meteor#L3
FROM node:12.18.4

SHELL ["/bin/bash", "-o", "pipefail", "-o", "errexit", "-u", "-c"]

ENV METEOR_VERSION 1.12
ENV PATH $PATH:/home/node/.meteor


ENV REACTION_DOCKER_BUILD true
ENV APP_SOURCE_DIR /opt/reaction/src
ENV APP_BUNDLE_DIR /opt/reaction/dist
ENV PATH $PATH:/home/node/.meteor

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
bsdtar \
bzip2 \
ca-certificates \
git \
python \
wget \
librdkafka-dev \
libsasl2-dev \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p "$APP_SOURCE_DIR" \
&& mkdir -p "$APP_BUNDLE_DIR" \
&& chown -R node "$APP_SOURCE_DIR" \
&& chown -R node "$APP_BUNDLE_DIR"


USER node

# Install Meteor. Copy the install script to a temp file first, so that we can
# replace the hard-coded `RELEASE` var in the script with the release we want installed.
RUN wget -O /tmp/install_meteor.sh https://install.meteor.com \
&& sed -i.bak "s/RELEASE=.*/RELEASE=\"$METEOR_VERSION\"/g" /tmp/install_meteor.sh \
&& printf "\\n[-] Installing Meteor %s...\\n" "$METEOR_VERSION" \
&& sh /tmp/install_meteor.sh \
&& rm /tmp/install_meteor.sh


WORKDIR $APP_SOURCE_DIR

# Node flags for the Meteor build tool
ONBUILD ARG TOOL_NODE_FLAGS
ONBUILD ENV TOOL_NODE_FLAGS $TOOL_NODE_FLAGS

LABEL maintainer="Reaction Commerce <engineering@reactioncommerce.com>"