-
Notifications
You must be signed in to change notification settings - Fork 66
/
Dockerfile.test
36 lines (26 loc) · 1.71 KB
/
Dockerfile.test
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
FROM debian:stretch
RUN apt-get update && apt-get install -y apt-transport-https
RUN echo "deb http://deb.debian.org/debian stretch main contrib\n \
deb http://deb.debian.org/debian-security stretch/updates main" > /etc/apt/sources.list && apt-get update && apt-get -y --force-yes dist-upgrade
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y --force-yes lsb-release wget default-jre sudo vim openssh-server curl netcat build-essential
COPY scripts/install_mysql.sh /scripts/
RUN GOPATH=$HOME/gopath PATH=$HOME/gopath/bin:$PATH DOCKER_BUILD=1 /bin/sh scripts/install_mysql.sh
COPY scripts/install_go.sh /scripts/
RUN GOPATH=$HOME/gopath PATH=$HOME/gopath/bin:$PATH DOCKER_BUILD=1 /bin/sh scripts/install_go.sh
COPY scripts/start_kafka.sh /scripts/
COPY scripts/install_kafka.sh /scripts/
RUN GOPATH=$HOME/gopath PATH=$HOME/gopath/bin:$PATH DOCKER_BUILD=1 /bin/sh scripts/install_kafka.sh
COPY scripts/install_hadoop.sh /scripts/
RUN GOPATH=$HOME/gopath PATH=$HOME/gopath/bin:$PATH DOCKER_BUILD=1 /bin/sh scripts/install_hadoop.sh
COPY scripts/install_sql.sh /scripts/
RUN GOPATH=$HOME/gopath PATH=$HOME/gopath/bin:$PATH DOCKER_BUILD=1 /bin/sh scripts/install_sql.sh
COPY scripts/install_hive.sh /scripts/
RUN GOPATH=$HOME/gopath PATH=$HOME/gopath/bin:$PATH DOCKER_BUILD=1 /bin/sh scripts/install_hive.sh
COPY scripts/prepare_test_env.sh /scripts/
COPY scripts/docker_test_entry.sh /
RUN chmod +x /docker_test_entry.sh
RUN echo 'set -x;sh scripts/prepare_test_env.sh\nexport GOPATH=~/gopath;export PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"\nexport STORAGETAPPER_ENVIRONMENT=test' >/root/.bashrc
WORKDIR /storagetapper
ENV USER=root
RUN echo "export PATH=$PATH:/root/gopath/bin:/usr/local/go/bin" > /root/.bashrc
CMD /bin/bash -l