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
5f234b0e
Commit
5f234b0e
authored
Nov 13, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding env var for base dir to vagrantfile
parent
c59e6e72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
vagrant/release/dosa/devstack/Vagrantfile
+16
-3
No files found.
vagrant/release/dosa/devstack/Vagrantfile
View file @
5f234b0e
MEMORY
=
2048
CPU_COUNT
=
2
edx_platform_mount_dir
=
"cs_comments_service"
forum_mount_dir
=
"edx-platform"
if
ENV
[
'VAGRANT_MOUNT_BASE'
]
edx_platform_mount_dir
=
ENV
[
'VAGRANT_MOUNT_BASE'
]
+
"/"
+
forum_mount_dir
forum_mount_dir
=
ENV
[
'VAGRANT_MOUNT_BASE'
]
+
"/"
+
edx_platform_mount_dir
end
Vagrant
.
configure
(
"2"
)
do
|
config
|
...
...
@@ -11,8 +20,8 @@ Vagrant.configure("2") do |config|
config
.
vm
.
network
:forwarded_port
,
guest:
8001
,
host:
8001
config
.
vm
.
network
:forwarded_port
,
guest:
4567
,
host:
4567
config
.
vm
.
synced_folder
"
edx-platform
"
,
"/edx/app/edxapp/edx-platform"
,
:create
=>
true
,
nfs:
true
config
.
vm
.
synced_folder
"
cs_comments_service
"
,
"/edx/app/forum/cs_comments_service"
,
:create
=>
true
,
nfs:
true
config
.
vm
.
synced_folder
"
#{
edx_platform_mount_dir
}
"
,
"/edx/app/edxapp/edx-platform"
,
:create
=>
true
,
nfs:
true
config
.
vm
.
synced_folder
"
#{
forum_mount_dir
}
"
,
"/edx/app/forum/cs_comments_service"
,
:create
=>
true
,
nfs:
true
config
.
hostsupdater
.
aliases
=
[
"preview.localhost"
]
...
...
@@ -20,10 +29,14 @@ Vagrant.configure("2") do |config|
vb
.
customize
[
"modifyvm"
,
:id
,
"--memory"
,
MEMORY
.
to_s
]
vb
.
customize
[
"modifyvm"
,
:id
,
"--cpus"
,
CPU_COUNT
.
to_s
]
end
edxapp_version
=
"master"
forum_version
=
"master"
config
.
vm
.
provision
:ansible
do
|
ansible
|
ansible
.
playbook
=
"../../../../playbooks/vagrant-devstack.yml"
ansible
.
inventory_path
=
"../../../../playbooks/vagrant/inventory.ini"
ansible
.
tags
=
"deploy"
ansible
.
verbose
=
"extra"
end
end
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