Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LOFAR2.0
tango
Commits
9c0463b2
Commit
9c0463b2
authored
3 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-225
: Add a check that docker compose is installed
parent
8c4a14c5
No related branches found
No related tags found
1 merge request
!41
L2SS-225: Fix rebuild_system_from_scratch.sh to also function on CentOS7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bootstrap/sbin/rebuild_system_from_scratch.sh
+16
-0
16 additions, 0 deletions
bootstrap/sbin/rebuild_system_from_scratch.sh
with
16 additions
and
0 deletions
bootstrap/sbin/rebuild_system_from_scratch.sh
+
16
−
0
View file @
9c0463b2
...
@@ -9,6 +9,22 @@ if [ ! -d ${HOME_DIR}/bootstrap ]; then
...
@@ -9,6 +9,22 @@ if [ ! -d ${HOME_DIR}/bootstrap ]; then
exit
1
exit
1
fi
fi
# Check if Docker compose can be found.
DOCKER_COMPOSE
=
"docker compose version"
${
DOCKER_COMPOSE
}
2>&1>/dev/null
ret
=
${
?
}
if
[
${
ret
}
-ne
0
]
;
then
DOCKER_COMPOSE
=
"docker-compose version"
${
DOCKER_COMPOSE
}
2>&1>/dev/null
ret
=
${
?
}
fi
if
[
${
ret
}
-eq
0
]
;
then
echo
-e
"
\t
Found Docker Compose:
${
DOCKER_COMPOSE
}
"
else
echo
"This system appears to not have Docker compose installed. This means that the system cannot be rebuilt with this script."
return
1
fi
# Save for the moment when tango will be cloned.
# Save for the moment when tango will be cloned.
OLD_HOME_DIR
=
${
HOME_DIR
}
.old
OLD_HOME_DIR
=
${
HOME_DIR
}
.old
...
...
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