Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
bf5a5a3b
Commit
bf5a5a3b
authored
9 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #8437: Fixed calls to docker-template and versiondocker
parent
1a323e75
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CEP/Pipeline/recipes/sip/CMakeLists.txt
+2
-2
2 additions, 2 deletions
CEP/Pipeline/recipes/sip/CMakeLists.txt
Docker/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Docker/CMakeLists.txt
Docker/docker-template
+27
-2
27 additions, 2 deletions
Docker/docker-template
with
30 additions
and
5 deletions
CEP/Pipeline/recipes/sip/CMakeLists.txt
+
2
−
2
View file @
bf5a5a3b
...
...
@@ -138,8 +138,8 @@ foreach(_file pipeline.cfg.CEP4)
# when "all" is build.
add_custom_command
(
OUTPUT
${
_dst
}
COMMAND
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/docker-template <
${
_src
}
>
${
_dst
}
DEPENDS
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/docker-template
${
_src
}
${
CMAKE_
CURRENT_
BINARY_DIR
}
/versiondocker
COMMAND
${
CMAKE_SOURCE_DIR
}
/
Docker/
docker-template
-v
${
CMAKE_BINARY_DIR
}
/Docker/versiondocker
<
${
_src
}
>
${
_dst
}
DEPENDS
${
CMAKE_SOURCE_DIR
}
/
Docker/
docker-template
${
_src
}
${
CMAKE_BINARY_DIR
}
/
Docker/
versiondocker
)
add_custom_target
(
${
_file
}
_target ALL DEPENDS
${
_dst
}
)
...
...
This diff is collapsed.
Click to expand it.
Docker/CMakeLists.txt
+
1
−
1
View file @
bf5a5a3b
...
...
@@ -42,7 +42,7 @@ foreach(_dir ${DOCKER_TEMPLATE_DIRS})
# when "all" is build.
add_custom_command
(
OUTPUT
${
_dst
}
COMMAND
${
CMAKE_CURRENT_SOURCE_DIR
}
/docker-template <
${
_src
}
>
${
_dst
}
COMMAND
${
CMAKE_CURRENT_SOURCE_DIR
}
/docker-template
-v
${
CMAKE_CURRENT_BINARY_DIR
}
/versiondocker
<
${
_src
}
>
${
_dst
}
DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/docker-template
${
_src
}
${
CMAKE_CURRENT_BINARY_DIR
}
/versiondocker
)
add_custom_target
(
${
_dir
}
_Dockerfile_target ALL DEPENDS
${
_dst
}
)
...
...
This diff is collapsed.
Click to expand it.
Docker/docker-template
+
27
−
2
View file @
bf5a5a3b
...
...
@@ -18,9 +18,34 @@
# ----- LOFAR_BRANCH_NAME = tags/LOFAR-Release-2_15_1 -----
# ----- LOFAR_BRANCH_NAME = UNKNOWN -----
function
usage
()
{
echo
"
$0
[-v VERSIONDOCKER]"
echo
""
echo
" -v VERSIONDOCKER Provides location of 'versiondocker' executable"
echo
""
exit
1
}
# Defaults
VERSION_DOCKER
=
"versiondocker"
# Parse options
while
getopts
"hv:"
opt
;
do
case
$opt
in
h
)
usage
;;
v
)
VERSION_DOCKER
=
"
$OPTARG
"
;;
\?
)
error
"Invalid option: -
$OPTARG
"
;;
:
)
error
"Option requires an argument: -
$OPTARG
"
;;
esac
done
[
$OPTIND
-eq
1
]
&&
usage
# Make sure we obtain info about the project source!
#PATH=$PATH:.
VERSION_INFO
=
`
(
versiondocker
||
./versiondocker
)
2>/dev/null
`
# in cmake, executable is in .
VERSION_INFO
=
`
$VERSION_DOCKER
`
# Extract branch name w.r.t. repository root, e.g. branches/LOFAR-Task1234
export
LOFAR_BRANCH_NAME
=
`
echo
"
$VERSION_INFO
"
| perl
-ne
'print "$1" if /branch += +(.+)/;'
`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment