Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
moqui
/
k8s-moqui
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a8d7461a
authored
2022-10-21 13:04:21 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add options to build.sh to allow setting the various parameters.
1 parent
2503bedb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
build.sh
build.sh
View file @
a8d7461
...
...
@@ -3,20 +3,45 @@
TAG
=
test
-latest
APP
=
moqui-app
PUSH_TO
=
docker://5.161.91.120:31234
declare
-a
images
=(
moqui-jdbc-drivers moqui-app moqui-jdbc-drivers
)
PREFIX
=
declare
-a
images
=(
moqui-jdbc-drivers moqui-app
)
_build
()
{
for
image
in
"
${
images
[@]
}
"
;
do
docker build -f Dockerfile --tag
"
${
image
}
:
${
TAG
}
"
--target
"
${
image
}
"
"
${
APP
}
"
docker build -f Dockerfile --tag
"
${
PREFIX
}${
image
}
:
${
TAG
}
"
--target
"
${
image
}
"
"
${
APP
}
"
done
}
_push
()
{
for
image
in
"
${
images
[@]
}
"
;
do
skopeo copy --dest-tls-verify
=
false
"docker-daemon:
${
image
}
:
${
TAG
}
"
"
${
PUSH_TO
}
/
${
image
}
:
${
TAG
}
"
echo
"Pushing
${
PREFIX
}${
image
}
:
${
TAG
}
to
${
PUSH_TO
}
/
${
image
}
:
${
TAG
}
"
skopeo copy --dest-tls-verify
=
false
"docker-daemon:
${
PREFIX
}${
image
}
:
${
TAG
}
"
"
${
PUSH_TO
}
/
${
image
}
:
${
TAG
}
"
done
}
while
[[
$#
-gt 0
]]
;
do
case
"
$1
"
in
(
--app
)
APP
=
"
$2
"
shift
2
;;
(
--prefix
)
PREFIX
=
"
$2
"
shift
2
;;
(
--push-to
)
PUSH_TO
=
"
$2
"
shift
2
;;
(
--tag
)
TAG
=
"
$2
"
shift
2
;;
(
*
)
break
;;
esac
done
case
"
$1
"
in
(
build
)
_build
...
...
Please
register
or
sign in
to post a comment