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
3fed8dd3
Unverified
Commit
3fed8dd3
authored
Jul 11, 2018
by
Ned Batchelder
Committed by
GitHub
Jul 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4682 from edx/nedbat/openedx-sh
Rename sandbox.sh
parents
2e2bb4a7
7715d789
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
108 additions
and
96 deletions
+108
-96
CHANGELOG.md
+1
-0
util/install/native.sh
+100
-0
util/install/sandbox.sh
+7
-96
No files found.
CHANGELOG.md
View file @
3fed8dd3
-
Installation
-
Installation
-
OPENEDX_RELEASE is now required, to prevent accidental installation of master.
-
OPENEDX_RELEASE is now required, to prevent accidental installation of master.
-
sandbox.sh has been renamed native.sh to better indicate what it does.
-
XQueue
-
XQueue
-
Expose CLOUDWATCH_QUEUE_COUNT_METRIC which is defined XQueue's settings.py for further dictionary structure
-
Expose CLOUDWATCH_QUEUE_COUNT_METRIC which is defined XQueue's settings.py for further dictionary structure
...
...
util/install/native.sh
0 → 100644
View file @
3fed8dd3
#!/bin/bash
##
## Installs the pre-requisites for running edX on a single Ubuntu 16.04
## instance. This script is provided as a convenience and any of these
## steps could be executed manually.
##
## Note that this script requires that you have the ability to run
## commands as root via sudo. Caveat Emptor!
##
##
## Sanity checks
##
if
[[
!
$OPENEDX_RELEASE
]]
;
then
echo
"You must define OPENEDX_RELEASE"
exit
fi
if
[[
`
lsb_release
-rs
`
!=
"16.04"
]]
;
then
echo
"This script is only known to work on Ubuntu 16.04, exiting..."
exit
fi
##
## Set ppa repository source for gcc/g++ 4.8 in order to install insights properly
##
sudo
apt-get install
-y
python-software-properties
sudo
add-apt-repository
-y
ppa:ubuntu-toolchain-r/test
##
## Update and Upgrade apt packages
##
sudo
apt-get update
-y
sudo
apt-get upgrade
-y
##
## Install system pre-requisites
##
sudo
apt-get install
-y
build-essential software-properties-common curl git-core libxml2-dev libxslt1-dev python-pip libmysqlclient-dev python-apt python-dev libxmlsec1-dev libfreetype6-dev swig gcc g++
sudo
pip install
--upgrade
pip
==
9.0.3
sudo
pip install
--upgrade
setuptools
==
39.0.1
sudo
-H
pip install
--upgrade
virtualenv
==
15.2.0
##
## Overridable version variables in the playbooks. Each can be overridden
## individually, or with $OPENEDX_RELEASE.
##
VERSION_VARS
=(
edx_platform_version
certs_version
forum_version
xqueue_version
configuration_version
demo_version
NOTIFIER_VERSION
INSIGHTS_VERSION
ANALYTICS_API_VERSION
ECOMMERCE_VERSION
ECOMMERCE_WORKER_VERSION
DISCOVERY_VERSION
THEMES_VERSION
)
for
var
in
${
VERSION_VARS
[@]
}
;
do
# Each variable can be overridden by a similarly-named environment variable,
# or OPENEDX_RELEASE, if provided.
ENV_VAR
=
$(
echo
$var
| tr
'[:lower:]'
'[:upper:]'
)
eval
override
=
\$
{
$ENV_VAR
-
\$
OPENEDX_RELEASE
}
if
[
-n
"
$override
"
]
;
then
EXTRA_VARS
=
"-e
$var
=
$override
$EXTRA_VARS
"
fi
done
# my-passwords.yml is the file made by generate-passwords.sh.
if
[[
-f
my-passwords.yml
]]
;
then
EXTRA_VARS
=
"-e@
$(
pwd
)
/my-passwords.yml
$EXTRA_VARS
"
fi
CONFIGURATION_VERSION
=
${
CONFIGURATION_VERSION
-
${
OPENEDX_RELEASE
-master
}}
##
## Clone the configuration repository and run Ansible
##
cd
/var/tmp
git clone https://github.com/edx/configuration
cd
configuration
git checkout
$CONFIGURATION_VERSION
git pull
##
## Install the ansible requirements
##
cd
/var/tmp/configuration
sudo
-H
pip install
-r
requirements.txt
##
## Run the edx_sandbox.yml playbook in the configuration/playbooks directory
##
cd
/var/tmp/configuration/playbooks
&&
sudo
-E
ansible-playbook
-c
local
./edx_sandbox.yml
-i
"localhost,"
$EXTRA_VARS
"
$@
"
util/install/sandbox.sh
100644 → 100755
View file @
3fed8dd3
#!/bin/bash
#!/bin/bash
##
##
## Installs the pre-requisites for running edX on a single Ubuntu 16.04
## This was the old name for native.sh. If someone runs it, tell them
## instance. This script is provided as a convenience and any of these
## where the file went.
## steps could be executed manually.
##
##
## Note that this script requires that you have the ability to run
## commands as root via sudo. Caveat Emptor!
##
##
## Sanity checks
##
if
[[
!
$OPENEDX_RELEASE
]]
;
then
echo
"You must define OPENEDX_RELEASE"
exit
fi
if
[[
`
lsb_release
-rs
`
!=
"16.04"
]]
;
then
echo
"This script is only known to work on Ubuntu 16.04, exiting..."
exit
fi
##
## Set ppa repository source for gcc/g++ 4.8 in order to install insights properly
##
sudo
apt-get install
-y
python-software-properties
sudo
add-apt-repository
-y
ppa:ubuntu-toolchain-r/test
##
## Update and Upgrade apt packages
##
sudo
apt-get update
-y
sudo
apt-get upgrade
-y
##
## Install system pre-requisites
##
sudo
apt-get install
-y
build-essential software-properties-common curl git-core libxml2-dev libxslt1-dev python-pip libmysqlclient-dev python-apt python-dev libxmlsec1-dev libfreetype6-dev swig gcc g++
sudo
pip install
--upgrade
pip
==
9.0.3
sudo
pip install
--upgrade
setuptools
==
39.0.1
sudo
-H
pip install
--upgrade
virtualenv
==
15.2.0
##
echo
## Overridable version variables in the playbooks. Each can be overridden
echo
"The sandbox.sh script has been renamed to native.sh"
## individually, or with $OPENEDX_RELEASE.
echo
"Let the author of your instructions know, or send us an email at oscm@edx.org"
##
echo
"Re-run your command with native.sh instead of sandbox.sh"
VERSION_VARS
=(
echo
edx_platform_version
certs_version
forum_version
xqueue_version
configuration_version
demo_version
NOTIFIER_VERSION
INSIGHTS_VERSION
ANALYTICS_API_VERSION
ECOMMERCE_VERSION
ECOMMERCE_WORKER_VERSION
DISCOVERY_VERSION
THEMES_VERSION
)
for
var
in
${
VERSION_VARS
[@]
}
;
do
# Each variable can be overridden by a similarly-named environment variable,
# or OPENEDX_RELEASE, if provided.
ENV_VAR
=
$(
echo
$var
| tr
'[:lower:]'
'[:upper:]'
)
eval
override
=
\$
{
$ENV_VAR
-
\$
OPENEDX_RELEASE
}
if
[
-n
"
$override
"
]
;
then
EXTRA_VARS
=
"-e
$var
=
$override
$EXTRA_VARS
"
fi
done
# my-passwords.yml is the file made by generate-passwords.sh.
if
[[
-f
my-passwords.yml
]]
;
then
EXTRA_VARS
=
"-e@
$(
pwd
)
/my-passwords.yml
$EXTRA_VARS
"
fi
CONFIGURATION_VERSION
=
${
CONFIGURATION_VERSION
-
${
OPENEDX_RELEASE
-master
}}
##
## Clone the configuration repository and run Ansible
##
cd
/var/tmp
git clone https://github.com/edx/configuration
cd
configuration
git checkout
$CONFIGURATION_VERSION
git pull
##
## Install the ansible requirements
##
cd
/var/tmp/configuration
sudo
-H
pip install
-r
requirements.txt
##
## Run the edx_sandbox.yml playbook in the configuration/playbooks directory
##
cd
/var/tmp/configuration/playbooks
&&
sudo
-E
ansible-playbook
-c
local
./edx_sandbox.yml
-i
"localhost,"
$EXTRA_VARS
"
$@
"
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