The database to use when control over Excel documents is lost
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

if [[ $EUID -ne 0 ]]; then
echo "ERROR: This script must be run as root, please try again!"
exit 1
# Go to the directory where the script is located, so it can be called
# from anywhere
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
# Create TAR file of source code for docker build process
cd ./010-src
tar --exclude="log/*.tar" --exclude="log/*" -cvzf \
../030-docker/install-files/00-drdb-installation.tar.gz --exclude '.git' .
# Now build and tar the documentation
cd ../020-mkdocs
mkdocs build
cd site
tar -cvzf ../../030-docker/install-files/02-docdb-manual.tar.gz --exclude '.git' .
# Now build the image locally
cd ../../030-docker
docker pull ubuntu:20.04
docker build \
-t doc-rdb:latest \
-t doc-rdb:$(date -u +'%Y-%m-%dT%H.%M.%SZ') \
-t heurekus/drdb:latest \
-t heurekus/drdb:$(date -u +'%Y-%m-%dT%H.%M.%SZ') \
# Create tar file for deploying a live Docker installation or updating an existing one.
sudo tar --exclude=volumes --exclude=nohup.out -cvzf ../DRDB--Docker-installation-and-update-files.tar.gz .