]> git.ipfire.org Git - people/jschlag/pbs-docker.git/blame - src/pbs-manager/build.sh
Refactoring the structure of our images
[people/jschlag/pbs-docker.git] / src / pbs-manager / build.sh
CommitLineData
881d45dc
JS
1#!/bin/bash
2. /usr/lib/docker-shell-scripts-lib/tag.sh
3. /usr/lib/docker-shell-scripts-lib/get-id.sh
4. /usr/lib/docker-shell-scripts-lib/preparation.sh
5. /usr/lib/docker-shell-scripts-lib/logging.sh
6. /usr/lib/docker-shell-scripts-lib/install.sh
7
8###
7b42fa88 9### Build the pbs-manager Dockerimage
881d45dc
JS
10###
11
12### preparation ###
13# cd into script dir
14(cd $(dirname -- "$(readlink -e -- "$BASH_SOURCE")") || exit
15
16# check for all necessary files
17
881d45dc
JS
18CheckForFile "Dockerfile"
19
881d45dc 20### paramter for mariadb build
7b42fa88 21repo="ipfire-pbs-manager"
881d45dc
JS
22dockertag="new"
23username=jonatanschlag
24tag="${username}/${repo}:${dockertag}"
25### Build the docker image
26docker build --no-cache=true -t "$tag" .
27### Tag the docker image
28back=$(tag-image "${username}/${repo}")
29
30if [ "error" = "$back" ]; then
31 echo "Tagging was not successful"
32fi
881d45dc 33)