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
053d8f25
Commit
053d8f25
authored
Nov 21, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Everything is overridable in sandbox.sh
parent
a1de457f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
18 deletions
+30
-18
util/install/sandbox.sh
+30
-18
No files found.
util/install/sandbox.sh
View file @
053d8f25
#!/bin/sh
#!/bin/
ba
sh
##
## Installs the pre-requisites for running edX on a single Ubuntu 12.04
## instance. This script is provided as a convenience and any of these
...
...
@@ -42,22 +42,34 @@ sudo -H pip install --upgrade virtualenv==15.0.2
sudo
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo
update-alternatives
--install
/usr/bin/g++ g++ /usr/bin/g++-4.8 50
## Did we specify an openedx release?
if
[
-n
"
$OPENEDX_RELEASE
"
]
;
then
EXTRA_VARS
=
"-e edx_platform_version=
$OPENEDX_RELEASE
\
-e certs_version=
$OPENEDX_RELEASE
\
-e forum_version=
$OPENEDX_RELEASE
\
-e xqueue_version=
$OPENEDX_RELEASE
\
-e configuration_version=
$OPENEDX_RELEASE
\
-e demo_version=
$OPENEDX_RELEASE
\
-e NOTIFIER_VERSION=
$OPENEDX_RELEASE
\
-e INSIGHTS_VERSION=
$OPENEDX_RELEASE
\
-e ANALYTICS_API_VERSION=
$OPENEDX_RELEASE
\
$EXTRA_VARS
"
CONFIG_VER
=
$OPENEDX_RELEASE
else
CONFIG_VER
=
"master"
fi
##
## 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
)
EXTRA_VARS
=
""
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
CONFIGURATION_VERSION
=
${
CONFIGURATION_VERSION
-
${
OPENEDX_RELEASE
-master
}}
##
## Clone the configuration repository and run Ansible
...
...
@@ -65,7 +77,7 @@ fi
cd
/var/tmp
git clone https://github.com/edx/configuration
cd
configuration
git checkout
$CONFIG
_VER
git checkout
$CONFIG
URATION_VERSION
##
## Install the ansible requirements
...
...
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