forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (47 loc) · 2.09 KB
/
Dockerfile
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
FROM ruby:2.1
# Add Jessie repos
# Fixes https://superuser.com/questions/1423486/issue-with-fetching-http-deb-debian-org-debian-dists-jessie-updates-inrelease
RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
ENV DEBIAN_FRONTEND=noninteractive
# Install prerequisites
RUN set -ex && \
echo "===> Installing dependencies" && \
apt-get -y update && \
apt-get install -y --force-yes --no-install-recommends \
curl wget tar gzip gnupg apt-transport-https ca-certificates tzdata locales && \
\
echo "===> Installing NodeJS" && \
apt-get install -y --force-yes --no-install-recommends nodejs && \
\
echo "===> Installing Yarn" && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && \
apt-get install -y --force-yes --no-install-recommends yarn && \
\
echo "===> Installing database libraries" && \
apt-get install -y --force-yes --no-install-recommends \
postgresql-client sqlite3 && \
\
echo "===> Installing dev tools" && \
mkdir -p /usr/share/man/man1 && \
apt-get install -y --force-yes --no-install-recommends \
sudo git openssh-client rsync vim \
net-tools netcat parallel unzip zip bzip2 && \
\
echo "===> Cleaning up" && \
rm -rf /var/lib/apt/lists/*;
# Set timezone to UTC by default
RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
# Set language
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
# Install RubyGems
RUN gem update --system 2.7.9
RUN gem install bundler -v '1.17.3'
ENV BUNDLE_SILENCE_ROOT_WARNING 1
# Setup demo environment includes
COPY ./include /vendor/dd-demo
ENV RUBYLIB /vendor/dd-demo
ENV RUBYOPT -rdatadog/demo_env