-
Notifications
You must be signed in to change notification settings - Fork 68
/
Dockerfile
55 lines (48 loc) · 1.47 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
FROM ubuntu:xenial-20171006
# Set locale, required for Metrics UI
RUN apt-get update --fix-missing && apt-get install -y locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV WALLAROO_VERSION 0.6.1
RUN apt-get install -y \
curl \
man \
netcat-openbsd \
curl \
wget \
less \
dnsutils \
net-tools \
vim \
sysstat \
htop \
numactl \
python-dev \
python-pip \
python3-dev \
python3-pip && \
pip3 install virtualenv virtualenvwrapper && \
pip3 install --upgrade pip && \
pip2 install virtualenv virtualenvwrapper && \
pip2 install --upgrade pip && \
cd /tmp && \
curl https://raw.githubusercontent.com/WallarooLabs/wallaroo/${WALLAROO_VERSION}/misc/wallaroo-up.sh -o wallaroo-up.sh -J -L && \
chmod +x wallaroo-up.sh && \
export WALLAROO_UP_SOURCE=docker && \
export CUSTOM_WALLAROO_BUILD_ARGS="target_cpu=x86-64" && \
echo y | ./wallaroo-up.sh -t all && \
ln -s ~/wallaroo-tutorial/wallaroo-${WALLAROO_VERSION} /wallaroo-src && \
cd /wallaroo-src && \
sed -i "s@^export RELEASE_MUTABLE_DIR=.*@export RELEASE_MUTABLE_DIR=\"/tmp/metrics_ui\"@" bin/activate && \
mkdir /wallaroo-bin && \
cp docker/env-setup /wallaroo-bin && \
make clean && \
mkdir /src && \
rm -rf /var/lib/apt/lists/* && \
apt-get -y autoremove --purge && \
apt-get -y clean
VOLUME /src/wallaroo
ENV PATH /wallaroo-bin:$PATH
WORKDIR /src
ENTRYPOINT ["env-setup"]