-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (33 loc) · 1.62 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
# DockerName: Devil runner
# Usecase: With many runtime dependentance tools and testsuites
# Update: 2021-03-30
# Arch: x86-64
# Version: v0.5.0
# Editor:thomas
FROM mltooling/ml-workspace:0.12.1
ENV PYTHON_HOME /usr/bin/python3
WORKDIR /home/
RUN sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak \
&& sudo apt update \
&& sudo apt install -y rustc zip unzip \
&& wget https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz \
&& rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz \
&& export PATH=$PATH:/usr/local/go/bin \
&& git clone -b master https://github.com/banrieen/MachineDevil.git \
&& cd /home/MachineDevil/ \
&& git pull origin master \
&& pip install --upgrade pip \
&& pip install python-dev-tools \
&& pip install --ignore-installed -r /home/MachineDevil/requirements.ini \
&& bzt /home/MachineDevil/example/jmeter/trace_user_footprint.jmx \
&& sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& sudo curl -fsSL https://deno.land/x/install/install.sh | sh \
&& export DENO_INSTALL="/root/.deno" \
&& echo "export PATH=$PATH:/root/.cargo/bin:$DENO_INSTALL/bin" >> /etc/profile \
&& sudo /bin/bash -c "source /etc/profile" \
&& find . -regex "./[0-9]+" | xargs rm -rf \
&& rm -rf /tmp/*
# port
# EXPOSE 1099 8080 8088 8089
# Run example
# docker run -d -p 8088:8080 --name "ml-workspace" -v "${PWD}:/workspace" --env NOTEBOOK_ARGS="--NotebookApp.notebook_dir=/home" --shm-size 2048m --restart always harbor.apulis.cn:8443/testops/MachineDevil:latest