Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker Build Images
scripts
Compare revisions
8a302e32154c84ee4a1c99645b500f4d6944c7e1 to 50e523ef3e9190d58f8263a341bd5212ce00e0f6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
build-docker/scripts
Select target project
No results found
50e523ef3e9190d58f8263a341bd5212ce00e0f6
Select Git revision
Swap
Target
build-docker/scripts
Select target project
build-docker/scripts
1 result
8a302e32154c84ee4a1c99645b500f4d6944c7e1
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Add proper usage of usage()
· 9f5d06d7
Markus Opolka
authored
2 years ago
and
Henrik Triem
committed
2 years ago
9f5d06d7
Merge branch 'add-usage' into 'master'
· 50e523ef
Henrik Triem
authored
2 years ago
Add proper usage of usage() See merge request
!9
50e523ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
icinga-build-docker
+12
-0
12 additions, 0 deletions
icinga-build-docker
with
12 additions
and
0 deletions
icinga-build-docker
View file @
50e523ef
#!/bin/bash
set
-e
## config
...
...
@@ -14,13 +15,24 @@ SCRIPT_HOME="$(dirname "$(readlink -f "$0")")"
usage
()
{
echo
"
$0
<target>"
echo
echo
"This starts a Container specified by the first argument. Example:"
echo
"icinga-build-docker centos/7:x86_64"
echo
echo
"The Container will then run icinga-build-package as CMD"
echo
"Important: This script needs to run in the directory that contains the build information for the package"
}
if
[[
"
$1
"
=
"--help"
]]
;
then
usage
exit
0
fi
if
[
-n
"
$1
"
]
;
then
TARGET
=
"
$1
"
shift
else
echo
"Target is missing!"
>
&2
usage
exit
1
fi
...
...
This diff is collapsed.
Click to expand it.