Skip to content
GitLab
Explore
Sign in
Register
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
0ac2c26b
Commit
0ac2c26b
authored
9 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #9048: Renamed template -> docker-template
parent
547eff48
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
Docker/CMakeLists.txt
+6
-6
6 additions, 6 deletions
Docker/CMakeLists.txt
Docker/docker-build-all.sh
+1
-1
1 addition, 1 deletion
Docker/docker-build-all.sh
Docker/docker-template
+0
-0
0 additions, 0 deletions
Docker/docker-template
with
7 additions
and
7 deletions
Docker/CMakeLists.txt
+
6
−
6
View file @
0ac2c26b
...
@@ -15,9 +15,9 @@ lofar_add_bin_program(versiondocker versiondocker.cc)
...
@@ -15,9 +15,9 @@ lofar_add_bin_program(versiondocker versiondocker.cc)
#
#
# For given directories, we generate the Dockerfile
# For given directories, we generate the Dockerfile
# by parsing their Dockerfile.tmpl through "template".
# by parsing their Dockerfile.tmpl through "
docker-
template".
#
#
# "template" is a script that fills in variables with
# "
docker-
template" is a script that fills in variables with
# respect to the build info (branch name, build time, etc)
# respect to the build info (branch name, build time, etc)
#
#
...
@@ -27,9 +27,9 @@ set(DOCKER_TEMPLATE_DIRS
...
@@ -27,9 +27,9 @@ set(DOCKER_TEMPLATE_DIRS
lofar-pipeline
lofar-pipeline
lofar-outputproc
)
lofar-outputproc
)
# Note: "template" only works as long as the sources are still around,
# Note: "
docker-
template" only works as long as the sources are still around,
# since it uses svn to query information from them.
# since it uses svn to query information from them.
lofar_add_bin_scripts
(
template
)
lofar_add_bin_scripts
(
docker-
template
)
lofar_add_sbin_scripts
(
docker-build-all.sh
)
lofar_add_sbin_scripts
(
docker-build-all.sh
)
# Convert Dockerfile.tmpl -> Dockerfile in ${DOCKER_TEMPLATE_DIRS}
# Convert Dockerfile.tmpl -> Dockerfile in ${DOCKER_TEMPLATE_DIRS}
...
@@ -42,8 +42,8 @@ foreach(_dir ${DOCKER_TEMPLATE_DIRS})
...
@@ -42,8 +42,8 @@ foreach(_dir ${DOCKER_TEMPLATE_DIRS})
# when "all" is build.
# when "all" is build.
add_custom_command
(
add_custom_command
(
OUTPUT
${
_dst
}
OUTPUT
${
_dst
}
COMMAND
${
CMAKE_CURRENT_SOURCE_DIR
}
/template <
${
_src
}
>
${
_dst
}
COMMAND
${
CMAKE_CURRENT_SOURCE_DIR
}
/
docker-
template <
${
_src
}
>
${
_dst
}
DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/template
${
_src
}
${
CMAKE_CURRENT_BINARY_DIR
}
/versiondocker
DEPENDS
${
CMAKE_CURRENT_SOURCE_DIR
}
/
docker-
template
${
_src
}
${
CMAKE_CURRENT_BINARY_DIR
}
/versiondocker
)
)
add_custom_target
(
${
_dir
}
_Dockerfile_target ALL DEPENDS
${
_dst
}
)
add_custom_target
(
${
_dir
}
_Dockerfile_target ALL DEPENDS
${
_dst
}
)
...
...
This diff is collapsed.
Click to expand it.
Docker/docker-build-all.sh
+
1
−
1
View file @
0ac2c26b
#!/bin/bash
#!/bin/bash
TAG
=
`
echo
'${LOFAR_TAG}'
| template
`
TAG
=
`
echo
'${LOFAR_TAG}'
|
docker-
template
`
function
build
{
function
build
{
IMAGE
=
$1
IMAGE
=
$1
...
...
This diff is collapsed.
Click to expand it.
Docker/template
→
Docker/
docker-
template
+
0
−
0
View file @
0ac2c26b
File moved
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