Skip to content
Snippets Groups Projects
Commit 978d118a authored by Balasankar C's avatar Balasankar C
Browse files

Add dockerfile for jessie-slim with packer integrated

parent 25aebb1a
No related branches found
No related tags found
1 merge request!29Add dockerfile for jessie-slim with packer integrated
Loading
Loading
@@ -39,6 +39,7 @@ trusty test: *test_build
xenial test: *test_build
opensuse13.2 test: *test_build
opensuse42.1 test: *test_build
jessie_packer test: *test_build
 
wheezy: *build_and_deploy
centos7: *build_and_deploy
Loading
Loading
@@ -52,3 +53,4 @@ trusty: *build_and_deploy
xenial: *build_and_deploy
opensuse13.2: *build_and_deploy
opensuse42.1: *build_and_deploy
jessie_packer test: *build_and_deploy
FROM debian:jessie-slim
MAINTAINER GitLab Inc. <support@gitlab.com>
# Install required packages
RUN apt-get update -q
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
build-essential \
zlib1g-dev \
byacc \
cmake \
python-pip \
git \
gcc \
libssl-dev \
libyaml-dev \
libffi-dev \
libreadline-dev \
libgdbm-dev \
libncurses5-dev \
make \
bzip2 \
curl \
ca-certificates \
locales \
openssh-server \
libcurl4-openssl-dev \
libexpat1-dev \
gettext \
libz-dev \
libssl-dev \
fakeroot \
python-dev \
ccache \
distcc \
apt-transport-https \
unzip \
wget && apt-get -yq clean
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV GIT_VERSION 2.7.4
RUN curl -fsSL "https://www.kernel.org/pub/software/scm/git/git-${GIT_VERSION}.tar.gz" \
| tar -xzC /tmp \
&& cd /tmp/git-2.7.4 \
&& ./configure \
&& make all \
&& make install
ENV RUBY_VERSION 2.3.3
RUN curl -fsSL "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-${RUBY_VERSION}.tar.gz" \
| tar -xzC /tmp \
&& cd /tmp/ruby-2.3.3 \
&& ./configure --disable-install-rdoc --disable-install-doc --disable-install-capi\
&& make \
&& make install
ENV RUBYGEMS_VERSION 2.6.8
RUN /usr/local/bin/gem update --system ${RUBYGEMS_VERSION} --no-ri --no-rdoc
ENV BUNDLER_VERSION 1.13.6
RUN /usr/local/bin/gem install bundler --version ${BUNDLER_VERSION} --no-ri --no-rdoc
RUN mkdir -p /opt/gitlab /var/cache/omnibus ~/.ssh
RUN git config --global user.email "packages@gitlab.com"
RUN git config --global user.name "GitLab Inc."
RUN wget https://releases.hashicorp.com/packer/0.12.2/packer_0.12.2_linux_amd64.zip && \
unzip packer_0.12.2_linux_amd64.zip -d /usr/local/bin && \
rm packer_0.12.2_linux_amd64.zip
RUN rm -rf /tmp/*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment