Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
devstack
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
devstack
Commits
f3825bc9
Commit
f3825bc9
authored
Jun 23, 2017
by
Joel Barciauskas
Committed by
Joel Barciauskas
Jun 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print logs from container after failed healthcheck and only shallow
clone to save space
parent
bddea86c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
.travis.yml
+1
-1
clone.sh
+5
-1
healthchecks.sh
+17
-2
provision.sh
+0
-1
No files found.
.travis.yml
View file @
f3825bc9
...
...
@@ -6,7 +6,7 @@ python:
-
"
3.5"
env
:
-
DEVSTACK_WORKSPACE=/tmp DOCKER_COMPOSE_VERSION=1.13.0
-
DEVSTACK_WORKSPACE=/tmp DOCKER_COMPOSE_VERSION=1.13.0
SHALLOW_CLONE=1
services
:
-
docker
...
...
clone.sh
View file @
f3825bc9
...
...
@@ -33,7 +33,11 @@ do
if
[
-d
"
$name
"
]
;
then
printf
"The [%s] repo is already checked out. Continuing.
\n
"
$name
else
git clone
$repo
if
[
"
$SHALLOW_CLONE
"
-eq
1
]
;
then
git clone
--depth
=
1
$repo
else
git clone
$repo
fi
fi
done
cd
- &> /dev/null
healthchecks.sh
View file @
f3825bc9
set
-e
set
-x
echo
"Checking LMS heartbeat:"
curl http://localhost:18000/heartbeat
# LMS
curl http://localhost:18000/heartbeat
if
[[
$?
-ne
0
]]
;
then
docker-compose logs
exit
2
fi
echo
echo
"Checking Studio heartbeat:"
curl http://localhost:18010/heartbeat
# Studio
if
[[
$?
-ne
0
]]
;
then
docker-compose logs
exit
2
fi
echo
echo
"Checking ecommerce health:"
curl http://localhost:18130/health/
# Ecommerce
if
[[
$?
-ne
0
]]
;
then
docker-compose logs
exit
2
fi
echo
echo
"Checking discovery health:"
curl http://localhost:18381/health/
# Discovery
if
[[
$?
-ne
0
]]
;
then
docker-compose logs
exit
2
fi
provision.sh
View file @
f3825bc9
...
...
@@ -42,7 +42,6 @@ docker exec -i edx.devstack.mongo mongo < mongo-provision.js
# Nothing special needed for studio
docker-compose
$DOCKER_COMPOSE_FILES
up
-d
studio
./provision-ecommerce.sh
./provision-discovery.sh
./provision-credentials.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment