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
e82b0e3c
Commit
e82b0e3c
authored
Jul 13, 2016
by
Zachary Robbins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP script to simplify installation of devstack/fullstack
parent
5e554413
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
122 additions
and
0 deletions
+122
-0
util/install/install_devstack.sh
+122
-0
No files found.
util/install/install_devstack.sh
0 → 100755
View file @
e82b0e3c
#!/usr/bin/env bash
# Stop if any command fails
set
-e
# Echo all commands
set
-x
function
usage
{
cat
<<
EOM
--- install_devstack.sh ---
Installs the Open edX developer stack. More information on installing devstack
can be found here: https://openedx.atlassian.net/wiki/display/OpenOPS/Running+Devstack
-r RELEASE
The release of Open edX you wish to run. Upgrade to the given git ref RELEASE.
You must specify this. Named released are called "named-release/cypress",
"named-release/dogwood.2", and so on. We recommend the latest stable named
release for general members of the open source community. Named releases can
be found at: https://openedx.atlassian.net/wiki/display/DOC/Open+edX+Releases.
If you plan on modifying the code, we recommend the "release" branch.
-p
Enable use of "preview" from within Studio.
-v VAGRANT_MOUNT_BASE
Customize the location of the source code that gets cloned during the
devstack provisioning.
-h
Show this help and exit.
---------------------------
EOM
}
##### MAIN
# Logging
#sudo mkdir -p /var/log/edx
#exec > >(sudo tee /var/log/edx/upgrade-$(date +%Y%m%d-%H%M%S).log) 2>&1
echo
"Logs located at /var/log/edx"
#export OPENEDX_RELEASE=""
# Default OPENEDX_RELEASE
release
=
"release"
# Enable preview in Studio
enable_preview
=
0
# Vagrant source code provision location
vagrant_mount_location
=
""
while
getopts
"r:pv:h"
opt
;
do
case
"
$opt
"
in
r
)
release
=
$OPTARG
;;
p
)
enable_preview
=
1
;;
v
)
vagrant_mount_location
=
$OPTARG
;;
h
)
usage
exit
;;
*
)
usage
exit
1
;;
esac
done
# while [ "$1" != "" ]; do
# case $1 in
# -r | --release ) shift
# if [[ "$1" != "" ]]; then
# release=$1
# else
# echo "A git ref must follow -r"
# exit
# ;;
# -p | --preview ) enable_preview=1
# ;;
# -v | --vagrant_mount ) shift
# vagrant_mount_location=$1
# if [[ "$1" != "" ]]; then
# vagrant_mount_location=$1
# else
# echo "A location must foillow"
# exit
# ;;
# -h | --help ) usage
# exit
# ;;
# * ) usage
# exit 1
# esac
# shift
# done
if
[[
$release
==
" "
]]
;
then
release
=
"release"
fi
echo
$release
#export OPENEDX_RELEASE=$release
#mkdir devstack
#cd devstack
#curl -L https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfile
#vagrant plugin install vagrant-vbguest
#vagrant up --provider virtualbox
if
[[
$enable_preview
-eq
1
]]
;
then
echo
"PREVIEW ENABLED"
#sudo bash -c "echo '192.168.33.10 preview.localhost' >> /etc/hosts"
fi
if
[[
$vagrant_mount_location
!=
""
]]
;
then
echo
"CHANGING PROVISION LOCATION TO"
$vagrant_mount_location
#export VAGRANT_MOUNT_BASE=vagrant_mount_location
fi
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