Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isochrone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institut für Informatik
dbis
dbis-isochrone
isochrone
Commits
1c5141ec
Commit
1c5141ec
authored
10 years ago
by
User expired
Browse files
Options
Downloads
Patches
Plain Diff
Some changes to disable local mode on dbis-isochrone production server
parent
86b9e176
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Vagrantfile
+11
-1
11 additions, 1 deletion
Vagrantfile
with
11 additions
and
1 deletion
Vagrantfile
+
11
−
1
View file @
1c5141ec
...
@@ -3,6 +3,16 @@
...
@@ -3,6 +3,16 @@
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION
=
"2"
VAGRANTFILE_API_VERSION
=
"2"
HOSTNAME
=
`hostname -s`
isLocalMode
=
true
if
HOSTNAME
.
strip
.
eql?
"dbis-w65107"
# puts "Server mode"
isLocalMode
=
false
else
# puts "Local mode"
isLocalMode
=
true
end
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
# Enable vagrant-cachier plugin
# Enable vagrant-cachier plugin
...
@@ -27,7 +37,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
...
@@ -27,7 +37,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config
.
vm
.
synced_folder
"etc/vagrant/img"
,
"/setup/img"
config
.
vm
.
synced_folder
"etc/vagrant/img"
,
"/setup/img"
# Setup environment on startup (done using a shell script)
# Setup environment on startup (done using a shell script)
config
.
vm
.
provision
"shell"
,
path:
"etc/vagrant/bootstrap.sh"
,
args:
[
"niko"
,
"secretPhdPassword#2014!"
,
"true"
]
config
.
vm
.
provision
"shell"
,
path:
"etc/vagrant/bootstrap.sh"
,
args:
[
"niko"
,
"secretPhdPassword#2014!"
,
(
isLocalMode
?
"true"
:
"false"
)
]
# Network configuration
# Network configuration
config
.
vm
.
network
:forwarded_port
,
guest:
8080
,
host:
8080
,
auto_correct:
true
,
id:
"tomcat"
config
.
vm
.
network
:forwarded_port
,
guest:
8080
,
host:
8080
,
auto_correct:
true
,
id:
"tomcat"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment