forked from ConSol/docker-headless-vnc-container
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
36 lines (30 loc) · 716 Bytes
/
build.sh
File metadata and controls
36 lines (30 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
#
# Autor: Patricio Rangles
#
# 2023-03-13: Script que construye la imagen del archivo Dockerfile.debian-icewm-vnc
#
# Parametros de entrada:
#
# -t=,--tag= : Tag a usar para esta imagen, por defecto: debian-icewm-vnc:latest
for i in "$@"
do
case $i in
-t=*|--tag=*)
image_tag="${i#*=}"
shift # past argument=value
;;
*)
# unknown option
;;
esac
done
# Analisis del tag
if [ -z ${image_tag+x} ]; then
echo "Se usara el tag por defecto: debian-icewm-vnc:latest"
image_tag="debian-icewm-vnc:latest"
else
echo "Se usuara el tag indicado por linea de comandos:"
echo ${image_tag}
fi
docker build -t ${image_tag} -f ./Dockerfile.debian-icewm-vnc .