Merge pull request #6060 from gunnarbeutner/feature/remove-dev-docker-scripts

Remove Icinga development docker scripts
This commit is contained in:
Michael Friedrich 2018-02-02 11:27:16 +01:00 committed by GitHub
commit adfc001be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 64 deletions

View File

@ -1,2 +0,0 @@
.build
config

View File

@ -1,4 +0,0 @@
Icinga 2 Development Environment
================================
The `build' script in this directory builds Icinga 2 in a Docker VM.

View File

@ -1,3 +0,0 @@
#!/bin/sh
cd `dirname -- $0` || exit 1
rm -Rf .build

View File

@ -1,21 +0,0 @@
#!/bin/sh
if [ ! -e /.dockerenv ]; then
echo "This script should only be run in the Docker VM environment."
exit 1
fi
cd
cp icinga2/tools/debug/gdb/gdbinit .gdbinit
sed -i 's/home\/gbeutner/home\/icinga/' .gdbinit
cd icinga2-build || exit 1
CCACHE_SLOPPINESS="include_file_mtime"
export CCACHE_SLOPPINESS
if [ ! -e Makefile ]; then
CC="ccache clang" CXX="ccache clang++" cmake ../icinga2 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$HOME/icinga2-install -DCMAKE_INSTALL_SYSCONFDIR=$HOME/icinga2-config
fi
make -j 4 && make install && cgdb -ex set scheduler-locking step -ex r --args ../icinga2-install/sbin/icinga2 -c ../icinga2-config/icinga2/icinga2.conf -DUseVfork=0

View File

@ -1,34 +0,0 @@
#!/bin/sh
cd `dirname -- $0`
DIR=`pwd`
cd docker
cat > Dockerfile <<DOCKER
FROM debian:jessie
RUN apt-get update
RUN apt-get install -y clang cmake make ccache flex bison libboost-all-dev libssl-dev git-core cgdb subversion vim
RUN groupadd -g `id -g` icinga
RUN useradd -m -u `id -u` -g icinga icinga
WORKDIR /home/icinga
USER icinga
RUN mkdir gdb_printers && cd gdb_printers && svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python
RUN git clone https://github.com/ruediger/Boost-Pretty-Printer
RUN mkdir build
ENV HOME /home/icinga
RUN ln -s icinga2/tools/docker/docker/build debug
DOCKER
docker.io build -t icinga2 --rm .
if [ "$1" != "-i" ]; then
command="/home/icinga/debug"
else
command="/bin/bash"
fi
mkdir -p ~/.ccache
mkdir -p $DIR/.build
mkdir -p $DIR/config
docker.io run -u `id -u` -v $DIR/..:/home/icinga/icinga2 -v $DIR/.build:/home/icinga/icinga2-build -v ~/.ccache:/home/icinga/.ccache -v $DIR/config:/home/icinga/icinga2-config -t -i --rm icinga2 $command