first commit
This commit is contained in:
commit
cd1e91bb99
287 changed files with 86425 additions and 0 deletions
23
rasta_exp/docker/apparecium/latest/Dockerfile
Normal file
23
rasta_exp/docker/apparecium/latest/Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
|||
FROM ubuntu:22.04
|
||||
|
||||
# RUN sed -i -e "s/archive.ubuntu.com/old-releases.ubuntu.com/g" /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update && apt-get install -y git time
|
||||
|
||||
RUN mkdir /workspace
|
||||
RUN git init /workspace/apparecium && \
|
||||
cd /workspace/apparecium && \
|
||||
git remote add origin https://github.com/askk/apparecium.git && \
|
||||
git fetch --depth=1 origin e27e108950e56b69f34fa97262c07d154b9163e8 && \
|
||||
git reset --hard FETCH_HEAD
|
||||
|
||||
RUN apt-get update && apt-get install -y python2.7 wget && \
|
||||
ln -s /usr/bin/python2.7 /usr/bin/python
|
||||
|
||||
RUN wget https://bootstrap.pypa.io/pip/2.7/get-pip.py && \
|
||||
python2.7 get-pip.py && \
|
||||
rm get-pip.py && \
|
||||
python2.7 -m pip install pydot
|
||||
RUN sed -i 's#d3-visualization#/mnt#' /workspace/apparecium/dftest.py
|
||||
|
||||
COPY run.sh /
|
25
rasta_exp/docker/apparecium/latest/run.sh
Executable file
25
rasta_exp/docker/apparecium/latest/run.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
APK_FILENAME=$1
|
||||
|
||||
export TIME="time: %e
|
||||
kernel-cpu-time: %S
|
||||
user-cpu-time: %U
|
||||
max-rss-mem: %M
|
||||
avg-rss-mem: %t
|
||||
avg-total-mem: %K
|
||||
page-size: %Z
|
||||
nb-major-page-fault: %F
|
||||
nb-minor-page-fault: %R
|
||||
nb-fs-input: %I
|
||||
nb-fs-output: %O
|
||||
nb-socket-msg-received: %r
|
||||
nb-socket-msg-sent: %s
|
||||
nb-signal-delivered: %k
|
||||
exit-status: %x"
|
||||
|
||||
|
||||
WORKDIR="/workspace/apparecium"
|
||||
cd ${WORKDIR}
|
||||
mkdir /mnt/data
|
||||
/usr/bin/time -o /mnt/report -q /usr/bin/timeout --kill-after=20s ${TIMEOUT} python dftest.py /mnt/${APK_FILENAME} > /mnt/stdout 2> /mnt/stderr
|
Loading…
Add table
Add a link
Reference in a new issue