Dockerfile 1.14 KB
Newer Older
Torstein Leversund's avatar
Torstein Leversund committed
1
FROM centos:7
Torstein Leversund's avatar
Torstein Leversund committed
2
3
4
5
6

RUN localedef -i en_DK -f UTF-8 en_DK.UTF-8 \
 && echo "LANG=en_DK.UTF-8" > /etc/locale.conf \
 && export LANG=en_DK.UTF-8

7
RUN yum -y install epel-release
Torstein Leversund's avatar
Torstein Leversund committed
8
RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash -
9
10
11
RUN yum -y update
RUN yum -y install \
    ansible \
Torstein Leversund's avatar
Torstein Leversund committed
12
13
14
    autoconf \
    automake \
    bison \
15
16
17
    gcc \
    gcc-c++ \
    git \
Torstein Leversund's avatar
Torstein Leversund committed
18
19
    libffi-devel \
    libtool \
20
21
22
23
    make \
    nodejs \
    openssh-clients \
    openssl \
Torstein Leversund's avatar
Torstein Leversund committed
24
25
    openssl-devel \
    readline-devel \
26
27
    rpm-build \
    rsync \
Torstein Leversund's avatar
Torstein Leversund committed
28
29
    ruby \
    sqlite-devel \
Torstein Leversund's avatar
Torstein Leversund committed
30
    vim \
31
32
    wget \
    which \
Torstein Leversund's avatar
Torstein Leversund committed
33
    zlib-devel \
34
 && yum clean all
35

Torstein Leversund's avatar
Torstein Leversund committed
36
37
38
39
40
41
42
# Install RVM
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys \
      409B6B1796C275462A1703113804BB82D39DC0E3 \
      7D2BAF1CF37B13E2069D6956105BD0E739499BDB \
 && curl -sSL https://get.rvm.io | bash -s -- --autolibs=read-fail stable \
 && echo 'rvm_silence_path_mismatch_check_flag=1' >> ~/.rvmrc

43
44
45
SHELL ["/bin/bash", "-lc"]
CMD ["/bin/bash", "-l"]

Torstein Leversund's avatar
Torstein Leversund committed
46
# Install Ruby
Torstein Leversund's avatar
Torstein Leversund committed
47
48
49
RUN rvm install 2.6.6 \
 && rvm alias create 2.6 ruby-2.6.6 \
 && rvm use --default 2.6.6
Torstein Leversund's avatar
Torstein Leversund committed
50

Torstein Leversund's avatar
Torstein Leversund committed
51
RUN gem install -N fpm-cookery
Torstein Leversund's avatar
Torstein Leversund committed
52

Torstein Leversund's avatar
Torstein Leversund committed
53
RUN echo "export PATH=$PATH" > /etc/environment