-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.base
54 lines (44 loc) · 1.3 KB
/
Dockerfile.base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# buildpack-deps:xenial comes with Perl 5.22.1
FROM buildpack-deps:xenial
MAINTAINER Rob Kinyon rob.kinyon@gmail.com
RUN (curl -L http://cpanmin.us | perl - App::cpanminus) \
&& cpanm Carton
RUN apt-get update -qq \
&& apt-get upgrade -y \
&& apt-get install -y \
build-essential \
unzip \
uuid-dev \
libaio-dev \
libaio1 \
apt-transport-https \
&& rm -fr /var/lib/apt/lists/*
########
# BEGIN Oracle section
COPY "vendor/oracle/11.2/*.deb" /tmp/
RUN dpkg -i /tmp/*.deb && rm /tmp/*.deb
ENV ORACLE_HOME /usr/lib/oracle/11.2/client64
ENV PATH $PATH:$HOME/bin:$ORACLE_HOME/bin
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$ORACLE_HOME/lib
ENV TNS_ADMIN $ORACLE_HOME/network/admin
# END Oracle section
########
########
# BEGIN MSSQL section
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update -qq \
&& DEBIAN_FRONTEND=noniteractive ACCEPT_EULA=Y apt-get install -y \
msodbcsql \
mssql-tools \
freetds-bin \
freetds-common \
freetds-dev \
unixodbc-dev \
tdsodbc \
locales \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
&& rm -fr /var/lib/apt/lists/*
# END MSSQL section
########