scripts/docker: Added docker.io scripts to bootstrap a fail demo

The docker files provide containers with the full toolchain required to
build FAIL*. They also contain a demonstration FI campaign.

Change-Id: I280210eb0487718e82505f0343fa9303c21b8048
This commit is contained in:
Christian Dietrich
2014-10-22 14:29:07 +02:00
parent c00268242a
commit 6ab55a8359
7 changed files with 160 additions and 3 deletions

View File

@ -0,0 +1,45 @@
# Inherit from docker container that has the fail source code
# prepared, including all tools which are needed to build FAIL*. The
# generic-tracing experiment was already built and the binaries are in
# place (~fail/bin/*)
FROM danceos/fail-generic-tracing
MAINTAINER Christian Dietrich <stettberger@dokucode.de>
# Install Additional Packages
RUN apt-get install -y \
python-minimal \
grub-common \
xorriso \
grub-pc-bin \
mysql-client \
python-flask \
python-mysqldb \
python-yaml
# Passwort for MySQL Daemon
ADD my.cnf /home/fail/.my.cnf
RUN chown fail /home/fail/.my.cnf
USER fail
WORKDIR /home/fail
RUN echo 'export PATH=$HOME/bin:$PATH' >> ~/.profile;\
echo 'cd $HOME/fail-targets' >> ~/.profile
RUN git clone https://github.com/danceos/fail-targets.git
WORKDIR fail
RUN mkdir build; cd build; ../configurations/x86_pruning.sh generic-experiment
WORKDIR build
# Make FAIL*
RUN make -j$(getconf _NPROCESSORS_ONLN) || make -j$(getconf _NPROCESSORS_ONLN)
RUN ln -s /home/fail/fail/build/bin/fail-client /home/fail/bin/generic-experiment-client; \
ln -s /home/fail/fail/build/bin/generic-experiment-server /home/fail/bin/; \
ln -s /home/fail/fail/tools/analysis/resultbrowser/run.py /home/fail/bin/resultbrowser
# For the resultbrowser, we expose port 5000 to the outside world.
EXPOSE 5000
USER root

View File

@ -0,0 +1,5 @@
[client]
host=mysql
user=fail
password=fail
database=fail