Skip to content

Commit

Permalink
Update Docker Build for Documentation
Browse files Browse the repository at this point in the history
Simplify the docker script and calls to the doceker process in the
script. Remove separating of `Dockerfile` to a subdir.
  • Loading branch information
Matthias Kastner committed Jan 24, 2020
1 parent 446ac79 commit 387ec8b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions tools/docker/build-documentation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#/bin/bash

# checks for correct installation
if [ ! $(docker -v | grep -c -w version) -eq 1 ]; then
echo "docker not found."
exit 1
fi
if [ ! $(groups | grep -c -w docker) -eq 1 ]; then
echo "add current user $(whoami) to docker group!"
exit 1
fi

# build containter
echo "start building Docker container 'mied-documentation'"
docker build -t mies-documentation .
# run doxygen and print version string
echo "Doxygen version" $(docker run --rm mies-documentation doxygen -v)
# execute build script
docker run --rm -v $(git rev-parse --show-toplevel):/opt/mies mies-documentation /bin/bash /opt/mies/tools/build-documentation.sh
22 changes: 0 additions & 22 deletions tools/docker/docker-build-documentation.sh

This file was deleted.

0 comments on commit 387ec8b

Please sign in to comment.