This repository has been archived by the owner on Feb 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
/
Dockerfile
67 lines (53 loc) · 2.32 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
55
56
57
58
59
60
61
62
63
64
65
66
67
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Apache HTrace Docker build environment
#
FROM ubuntu:trusty
MAINTAINER Apache HTrace <[email protected]>
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && apt-get dist-upgrade -y
# HTrace Dependencies
RUN apt-get install -y build-essential curl gcc git libleveldb-dev libsnappy-dev
# - Patchelf
RUN curl -sSL http://nixos.org/releases/patchelf/patchelf-0.8/patchelf-0.8.tar.bz2 | tar -C /tmp -xj && \
cd /tmp/patchelf-*/ && \
./configure --prefix=/usr && \
make install
# Java dependencies
RUN apt-get install -y software-properties-common && \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer oracle-java8-set-default
RUN curl -sSL http://archive.apache.org/dist/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz | tar -C /usr/share -xz && \
mv /usr/share/apache-maven-3.0.4 /usr/share/maven && \
ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
RUN curl -sSL http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.6-bin.tar.gz | tar -C /usr/share -xz && \
mv /usr/share/apache-ant-1.9.6 /usr/share/ant && \
ln -s /usr/share/ant/bin/ant /usr/bin/ant
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV MAVEN_HOME /usr/share/maven
ENV ANT_HOME /ust/share/ant
# GO dependencies
RUN curl -sSL https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz | tar -C /usr/lib/ -xz && \
mkdir -p /usr/share/go
ENV GOROOT /usr/lib/go
ENV GOPATH /usr/share/go
ENV PATH ${GOROOT}/bin:${GOPATH}/bin:$PATH
# Clean up
RUN apt-get clean && \
rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
WORKDIR $HOME