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
OpenEdx
configuration
Commits
03527b9e
Commit
03527b9e
authored
May 12, 2017
by
Ned Batchelder
Committed by
GitHub
May 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3864 from edx/nedbat/parameterize-dockerfiles
Parameterize Dockerfiles for Open edX releases
parents
99aa625c
9c7242e6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
4 deletions
+37
-4
docker/README.md
+29
-0
docker/build/edxapp/Dockerfile
+5
-1
docker/build/edxapp/ansible_overrides.yml
+0
-1
docker/build/xenial-common/Dockerfile
+3
-2
No files found.
docker/README.md
View file @
03527b9e
...
...
@@ -37,6 +37,35 @@ make docker.pkg.<service> # Package <service> for publishing to Dockerhub. Th
make docker.push.<service>
# Push <service> to Dockerhub as latest.
```
## Image naming
Images built from master branches are named
`edxops/<service>`
, for example,
`edxops/edxapp`
. Images built from Open edX release branches include the
short release name:
`edxops/ficus/edxapp`
. Both images will have a
`:latest`
version.
## Build arguments
Dockerfiles make use of these build arguments:
*
`OPENEDX_RELEASE`
is the release branch to use. It defaults to "master".
To use an Open edX release, provide the full branch name:
```
--build-arg OPENEDX_RELEASE=open-release/ficus.master
```
*
`IMAGE_PREFIX`
is the release branch component to add to images. It defaults
to an empty string for master builds. For Open edX release, use the short
name of the release, with a trailing slash:
```
--build-arg IMAGE_PREFIX=ficus/
```
## Conventions
In order to facilitate development, Dockerfiles should be based on
...
...
docker/build/edxapp/Dockerfile
View file @
03527b9e
...
...
@@ -8,7 +8,8 @@
# with the currently checked-out configuration repo.
FROM
edxops/xenial-common:latest
ARG
IMAGE_PREFIX
FROM
edxops/${IMAGE_PREFIX}xenial-common:latest
MAINTAINER
edxops
USER
root
CMD
["/edx/app/supervisor/venvs/supervisor/bin/supervisord", "-n", "--configuration", "/edx/app/supervisor/supervisord.conf"]
...
...
@@ -18,9 +19,12 @@ WORKDIR /edx/app/edx_ansible/edx_ansible/docker/plays
COPY
docker/build/edxapp/ansible_overrides.yml /
ARG
OPENEDX_RELEASE=master
ENV
OPENEDX_RELEASE=${OPENEDX_RELEASE}
RUN
sudo
/edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook edxapp.yml
\
-c
local
-i
'127.0.0.1,'
\
-t
'install,assets,devstack'
\
--extra-vars
=
edx_platform_version
=
${
OPENEDX_RELEASE
}
\
--extra-vars
=
"@/ansible_overrides.yml"
EXPOSE
18000 18010
docker/build/edxapp/ansible_overrides.yml
View file @
03527b9e
...
...
@@ -8,7 +8,6 @@ EDXAPP_MONGO_HOSTS:
devstack
:
true
migrate_db
:
false
mongo_enable_journal
:
false
edx_platform_version
:
'
master'
edxapp_npm_production
:
"
no"
EDXAPP_LMS_GUNICORN_EXTRA_CONF
:
'
reload
=
True'
...
...
docker/build/xenial-common/Dockerfile
View file @
03527b9e
FROM
ubuntu:xenial
MAINTAINER
edxops
MAINTAINER
edxops
# Set locale to UTF-8 which is not the default for docker.
# See the links for details:
...
...
@@ -10,7 +10,8 @@ ENV LANG C.UTF-8
ENV
ANSIBLE_REPO="https://github.com/edx/ansible"
ENV
CONFIGURATION_REPO="https://github.com/edx/configuration.git"
ENV
CONFIGURATION_VERSION="master"
ARG
OPENEDX_RELEASE=master
ENV
CONFIGURATION_VERSION="${OPENEDX_RELEASE}"
ADD
util/install/ansible-bootstrap.sh /tmp/ansible-bootstrap.sh
RUN
chmod +x /tmp/ansible-bootstrap.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