Skip to content
Merged
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
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz
rm -rf /tmp/node-build-master

ENV RAILS_ENV="test"

ARG INSTALL_BROWSER="false"
RUN if [ "$INSTALL_BROWSER" = "true" ]; then \
apt-get update -qq && \
apt-get install --no-install-recommends -y chromium chromium-driver && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives; \
fi
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ if [ -z "${NODE_VERSION:-}" ]; then
fi

docker build --build-arg RUBY_VERSION="$RUBY_VERSION" --build-arg NODE_VERSION="$NODE_VERSION" -t "${DOCKER_REPO}:ruby-${RUBY_VERSION}-node-${NODE_VERSION}" .

docker build --build-arg INSTALL_BROWSER=true --build-arg RUBY_VERSION="$RUBY_VERSION" --build-arg NODE_VERSION="$NODE_VERSION" -t "${DOCKER_REPO}:ruby-${RUBY_VERSION}-node-${NODE_VERSION}-browser" .
1 change: 1 addition & 0 deletions push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ if [ -z "${NODE_VERSION:-}" ]; then
fi

docker push "${DOCKER_REPO}:ruby-${RUBY_VERSION}-node-${NODE_VERSION}"
docker push "${DOCKER_REPO}:ruby-${RUBY_VERSION}-node-${NODE_VERSION}-browser"