Skip to content

Commit

Permalink
Revert "Use ruby:2.4 as base for fpm image (#26)"
Browse files Browse the repository at this point in the history
This reverts commit 9385e65.
  • Loading branch information
Dustin Collins committed May 21, 2018
1 parent 9385e65 commit 77faa18
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# 1.10.1

* Update fpm container to use Ruby 2.4, fixes `ruby-xz` dependency

# 1.10.0

* add `--net` support to `test` and `sandbox` subcommands
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.1
1.10.0
22 changes: 15 additions & 7 deletions lib/conjur/fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
FROM ruby:2.4
# Build from the same version of ubuntu as phusion/baseimage
FROM ubuntu:14.04

RUN apt-get update -y && \
apt-get install -y build-essential git libpq5 libpq-dev libffi-dev && \
rm -rf /var/lib/apt/lists/*
apt-get install -y software-properties-common && \
apt-add-repository -y ppa:brightbox/ruby-ng && \
apt-get update -y && \
apt-get install -y build-essential git libpq5 libpq-dev ruby2.2 ruby2.2-dev libffi-dev


# Configure bundler and gem the way the ruby:2.2 Dockerfile does, as of
# https://github.com/docker-library/ruby/commit/c88f3a67da720bfa9fb1717960d90fd5db11c757
ENV BUNDLER_VERSION 1.11.2
ENV FPM_VERSION 1.9.3

RUN gem install --no-rdoc --no-ri bundler:$BUNDLER_VERSION fpm:$FPM_VERSION
RUN gem install --no-rdoc --no-ri bundler:$BUNDLER_VERSION fpm

ENV GEM_HOME /usr/local/bundle
ENV BUNDLE_PATH="$GEM_HOME" \
BUNDLE_BIN="$GEM_HOME/bin" \
BUNDLE_SILENCE_ROOT_WARNING=1 \
BUNDLE_APP_CONFIG="$GEM_HOME"
ENV PATH $BUNDLE_BIN:$PATH
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" /src \
RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
&& chmod 777 "$GEM_HOME" "$BUNDLE_BIN"

RUN mkdir /src

ENTRYPOINT [ "/package.sh" ]

COPY debify_utils.sh /
COPY package.sh /

ENTRYPOINT [ "/package.sh" ]
4 changes: 2 additions & 2 deletions secrets.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Example of secrets.yml file needed for debify publish
ARTIFACTORY_USERNAME: !var ci/artifactory/users/jenkins/username
ARTIFACTORY_PASSWORD: !var ci/artifactory/users/jenkins/password
ARTIFACTORY_USERNAME: !var artifactory/users/jenkins/username
ARTIFACTORY_PASSWORD: !var artifactory/users/jenkins/password

0 comments on commit 77faa18

Please sign in to comment.