Skip to content

Commit

Permalink
Update debian package to use Ruby 2.5 instead of 2.2 (cyberark#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahlee authored Jun 4, 2018
1 parent 88ca4b9 commit fc61f50
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions Dockerfile.fpm
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Build from the same version of ubuntu as phusion/baseimage
FROM @@image@@

RUN apt-get update -y && \
apt-get purge -y ruby2.2 ruby2.2-dev && \
apt-get install -y ruby2.5 ruby2.5-dev

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

RUN mkdir -p /src/opt/conjur/project

WORKDIR /src/opt/conjur/project

COPY Gemfile ./
COPY Gemfile.lock ./

RUN bundle --deployment
RUN mkdir -p .bundle
RUN cp /usr/local/bundle/config .bundle/config

COPY . .
ADD debify.sh /

WORKDIR /src
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex

debify package \
--dockerfile=Dockerfile.fpm \
possum \
-- \
--depends tzdata

0 comments on commit fc61f50

Please sign in to comment.