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
5543ebde
Commit
5543ebde
authored
Dec 17, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2607 from edx/e0d/update-common-builds
updating refs, use external script
parents
693ee4d4
133aa123
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
90 deletions
+9
-90
.dockerignore
+1
-0
docker/build/precise-common/Dockerfile
+4
-49
docker/build/trusty-common/Dockerfile
+4
-41
No files found.
.dockerignore
View file @
5543ebde
*
!playbooks/
!docker/
!util/install/
docker/build/precise-common/Dockerfile
View file @
5543ebde
...
...
@@ -2,53 +2,8 @@ FROM ubuntu:precise
MAINTAINER
edxops
ENV
ANSIBLE_REPO="https://github.com/edx/ansible"
ENV
CONFIGURATION_REPO="https://github.com/edx/configuration.git"
ENV
CONFIGURATION_VERSION="
e0d/docker-artifacts
"
ENV
CONFIGURATION_VERSION="
master
"
# system bootstrap
RUN
apt-get update
RUN
apt-get
-y
install software-properties-common python-software-properties
RUN
add-apt-repository ppa:fkrull/deadsnakes-python2.7
RUN
apt-get update
RUN
apt-get
-y
install
sudo
RUN
useradd docker
&&
echo
"docker:docker"
| chpasswd
RUN
echo
"docker ALL=(ALL) NOPASSWD:ALL"
>>
/etc/sudoers
RUN
mkdir
-p
/home/docker
&&
chown
-R
docker:docker /home/docker
RUN
apt-get install
-y
\
git
\
libmysqlclient-dev
\
python-apt
\
python-jinja2
\
python-pip
\
python-yaml
\
python2.7
\
python2.7-dev
# Temporary hacking related to an SELinux bug. This issue causes, at least,
# useradd to fail silently when the -m flag is passed in. The bug affects
# Ubuntu precise and is tracked here:
#
# https://bugs.launchpad.net/ubuntu/+source/libselinux/+bug/1424795
RUN
apt-get install wget
RUN
wget http://mirrors.kernel.org/ubuntu/pool/main/libs/libselinux/libselinux1_2.2.2-1_amd64.deb
&&
dpkg
-i
libselinux1_2.2.2-1_amd64.deb
&&
rm
-f
libselinux1_2.2.2-1_amd64.deb
# end hack
USER
docker
# ansible bootstrap
RUN
sudo
git clone
--recursive
${
ANSIBLE_REPO
}
/tmp/ansible
WORKDIR
/tmp/ansible
ENV
PATH /tmp/ansible/bin:/bin:/sbin:/usr/sbin:/usr/bin
# Install the configuration repository to install
# edx-ansible role
RUN
sudo
git clone
${
CONFIGURATION_REPO
}
/tmp/configuration
WORKDIR
/tmp/configuration
RUN
sudo
git checkout
${
CONFIGURATION_VERSION
}
RUN
sudo
pip install
-r
pre-requirements.txt
RUN
sudo
pip install
-r
requirements.txt
WORKDIR
/tmp/configuration/playbooks/edx-east
RUN
sudo
/tmp/ansible/bin/ansible-playbook edx_ansible.yml
-i
'127.0.0.1,'
-c
local
-e
"configuration_version=
${
CONFIGURATION_VERSION
}
"
WORKDIR
/edx/app/edx_ansible
# cleanup
RUN
sudo
rm
-rf
/tmp/ansible
RUN
sudo
rm
-rf
/tmp/configuration
ADD
util/install/ansible-bootstrap.sh /tmp/ansible-bootstrap.sh
RUN
chmod +x /tmp/ansible-bootstrap.sh
RUN
/tmp/ansible-bootstrap.sh
docker/build/trusty-common/Dockerfile
View file @
5543ebde
...
...
@@ -2,45 +2,8 @@ FROM ubuntu:trusty
MAINTAINER
edxops
ENV
ANSIBLE_REPO="https://github.com/edx/ansible"
ENV
CONFIGURATION_REPO="https://github.com/edx/configuration.git"
ENV
CONFIGURATION_VERSION="
e0d/docker-artifacts
"
ENV
CONFIGURATION_VERSION="
master
"
# system bootstrap
RUN
apt-get update
RUN
apt-get
-y
install software-properties-common python-software-properties
RUN
add-apt-repository ppa:fkrull/deadsnakes-python2.7
RUN
apt-get update
RUN
apt-get
-y
install
sudo
RUN
useradd docker
&&
echo
"docker:docker"
| chpasswd
RUN
echo
"docker ALL=(ALL) NOPASSWD:ALL"
>>
/etc/sudoers
RUN
mkdir
-p
/home/docker
&&
chown
-R
docker:docker /home/docker
RUN
apt-get install
-y
\
git
\
libmysqlclient-dev
\
python-apt
\
python-jinja2
\
python-pip
\
python-yaml
\
python2.7
\
python2.7-dev
USER
docker
# ansible bootstrap
RUN
sudo
git clone
--recursive
${
ANSIBLE_REPO
}
/tmp/ansible
WORKDIR
/tmp/ansible
ENV
PATH /tmp/ansible/bin:/bin:/sbin:/usr/sbin:/usr/bin
# Install the configuration repository to install
# edx-ansible role
RUN
sudo
git clone
${
CONFIGURATION_REPO
}
/tmp/configuration
WORKDIR
/tmp/configuration
RUN
sudo
git checkout
${
CONFIGURATION_VERSION
}
RUN
sudo
pip install
-r
pre-requirements.txt
RUN
sudo
pip install
-r
requirements.txt
WORKDIR
/tmp/configuration/playbooks/edx-east
RUN
sudo
/tmp/ansible/bin/ansible-playbook edx_ansible.yml
-i
'127.0.0.1,'
-c
local
-e
"configuration_version=
${
CONFIGURATION_VERSION
}
"
WORKDIR
/edx/app/edx_ansible
# cleanup
RUN
sudo
rm
-rf
/tmp/ansible
RUN
sudo
rm
-rf
/tmp/configuration
ADD
util/install/ansible-bootstrap.sh /tmp/ansible-bootstrap.sh
RUN
chmod +x /tmp/ansible-bootstrap.sh
RUN
/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