-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Docker Build for Documentation
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
Showing
3 changed files
with
19 additions
and
22 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.