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
55d39b0e
Commit
55d39b0e
authored
Dec 17, 2015
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating refs, use external script
parent
f6a3f449
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
90 deletions
+8
-90
docker/build/precise-common/Dockerfile
+4
-49
docker/build/trusty-common/Dockerfile
+4
-41
No files found.
docker/build/precise-common/Dockerfile
View file @
55d39b0e
...
@@ -2,53 +2,8 @@ FROM ubuntu:precise
...
@@ -2,53 +2,8 @@ FROM ubuntu:precise
MAINTAINER
edxops
MAINTAINER
edxops
ENV
ANSIBLE_REPO="https://github.com/edx/ansible"
ENV
ANSIBLE_REPO="https://github.com/edx/ansible"
ENV
CONFIGURATION_REPO="https://github.com/edx/configuration.git"
ENV
CONFIGURATION_REPO="https://github.com/edx/configuration.git"
ENV
CONFIGURATION_VERSION="
e0d/docker-artifacts
"
ENV
CONFIGURATION_VERSION="
master
"
# system bootstrap
ADD
https://raw.githubusercontent.com/edx/configuration/master/util/install/ansible-bootstrap.sh /tmp/ansible-bootstrap.sh
RUN
apt-get update
RUN
chmod +x /tmp/ansible-bootstrap.sh
RUN
apt-get
-y
install software-properties-common python-software-properties
RUN
/tmp/ansible-bootstrap.sh
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
docker/build/trusty-common/Dockerfile
View file @
55d39b0e
...
@@ -2,45 +2,8 @@ FROM ubuntu:trusty
...
@@ -2,45 +2,8 @@ FROM ubuntu:trusty
MAINTAINER
edxops
MAINTAINER
edxops
ENV
ANSIBLE_REPO="https://github.com/edx/ansible"
ENV
ANSIBLE_REPO="https://github.com/edx/ansible"
ENV
CONFIGURATION_REPO="https://github.com/edx/configuration.git"
ENV
CONFIGURATION_REPO="https://github.com/edx/configuration.git"
ENV
CONFIGURATION_VERSION="
e0d/docker-artifacts
"
ENV
CONFIGURATION_VERSION="
master
"
# system bootstrap
ADD
https://raw.githubusercontent.com/edx/configuration/master/util/install/ansible-bootstrap.sh /tmp/ansible-bootstrap.sh
RUN
apt-get update
RUN
chmod +x /tmp/ansible-bootstrap.sh
RUN
apt-get
-y
install software-properties-common python-software-properties
RUN
/tmp/ansible-bootstrap.sh
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
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