Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
57c5e32d
Commit
57c5e32d
authored
Dec 02, 2016
by
Feanil Patel
Committed by
GitHub
Dec 02, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3493 from edx/bilalahmad99/discovery-16.04-docker
for discovery 16.04 docker image
parents
be7ced38
de176bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
docker/build/discovery/Dockerfile
+1
-1
playbooks/roles/discovery/templates/edx/app/discovery/devstack.sh.j2
+17
-4
No files found.
docker/build/discovery/Dockerfile
View file @
57c5e32d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
# This allows the dockerfile to update /edx/app/edx_ansible/edx_ansible
# This allows the dockerfile to update /edx/app/edx_ansible/edx_ansible
# with the currently checked-out configuration repo.
# with the currently checked-out configuration repo.
FROM
edxops/
trusty
-common:latest
FROM
edxops/
xenial
-common:latest
MAINTAINER
edxops
MAINTAINER
edxops
ENV
DISCOVERY_VERSION=master
ENV
DISCOVERY_VERSION=master
...
...
playbooks/roles/discovery/templates/edx/app/discovery/devstack.sh.j2
View file @
57c5e32d
...
@@ -7,15 +7,28 @@ COMMAND=$1
...
@@ -7,15 +7,28 @@ COMMAND=$1
case
$COMMAND
in
case
$COMMAND
in
start
)
start
)
{
%
set
discovery_venv_bin
=
discovery_
home +
"/venvs/"
+ discovery_service_name
+
"/bin"
%
}
{
%
set
discovery_venv_bin
=
discovery_
venv_dir
+
"/bin"
%
}
{{
supervisor_venv_bin
}}
/supervisord
--configuration
{{
supervisor_cfg
}}
{{
supervisor_venv_bin
}}
/supervisord
--configuration
{{
supervisor_cfg
}}
# Needed to run bower as root. See explaination around 'discovery_user=root'
echo
'{ "allow_root": true }'
>
/root/.bowerrc
cd
/edx/app/edx_ansible/edx_ansible/docker/plays
cd
/edx/app/edx_ansible/edx_ansible/docker/plays
ansible-playbook discovery.yml
-c
local
-i
'127.0.0.1,'
\
/edx/app/edx_ansible/venvs/edx_ansible/bin/
ansible-playbook discovery.yml
-c
local
-i
'127.0.0.1,'
\
-t
'install:app-requirements,assets:gather,devstack,migrate
,manage:start
'
\
-t
'install:app-requirements,assets:gather,devstack,migrate'
\
--extra-vars
=
"migrate_db=yes"
\
--extra-vars
=
"migrate_db=yes"
\
--extra-vars
=
"@/ansible_overrides.yml"
--extra-vars
=
"@/ansible_overrides.yml"
\
--extra-vars
=
"discovery_user=root"
# Needed when sharing the volume with the host machine because node/bower drops
# everything in the code directory by default. So we get issues with permissions
# on folders owned by the developer.
# Need to start supervisord and nginx manually because systemd is hard to run on docker
# http://developers.redhat.com/blog/2014/05/05/running-systemd-within-docker-container/
# Both daemon by default
nginx
/edx/app/supervisor/venvs/supervisor/bin/supervisord
--configuration
/edx/app/supervisor/supervisord.conf
# Docker requires an active foreground task. Tail the logs to appease Docker and
# Docker requires an active foreground task. Tail the logs to appease Docker and
# provide useful output for development.
# provide useful output for development.
...
...
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