Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-elk
Project
Project
Details
Activity
Releases
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
Hiep Nguyen
docker-elk
Commits
963e3760
Commit
963e3760
authored
Feb 03, 2016
by
GU Yu (Byron)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use vagrant to run ELK
parent
0ce815eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
.gitignore
.gitignore
+2
-0
Vagrantfile
Vagrantfile
+47
-0
No files found.
.gitignore
0 → 100644
View file @
963e3760
.vagrant/
.idea/
Vagrantfile
0 → 100644
View file @
963e3760
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION
=
"2"
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
config
.
vm
.
box
=
"ubuntu/trusty64"
config
.
vm
.
provider
"virtualbox"
do
|
v
|
v
.
name
=
"ELK_vagrant"
v
.
memory
=
4096
v
.
cpus
=
2
end
config
.
vm
.
box_check_update
=
true
config
.
vm
.
network
"forwarded_port"
,
guest:
5000
,
host:
5000
config
.
vm
.
network
"forwarded_port"
,
guest:
5601
,
host:
5601
config
.
vm
.
network
"forwarded_port"
,
guest:
9200
,
host:
9200
config
.
vm
.
network
"forwarded_port"
,
guest:
9300
,
host:
9300
#SSH
config
.
ssh
.
forward_agent
=
true
config
.
ssh
.
shell
=
"bash -c 'BASH_ENV=/etc/profile exec bash'"
#Provision
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
sudo touch /var/lib/cloud/instance/locale-check.skip
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
sudo apt-cache policy docker-engine
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y docker-engine python-pip
sudo pip install docker-compose
sudo usermod -aG docker vagrant
sudo -u vagrant pip install docker-compose
sudo docker-compose -f /vagrant/docker-compose.yml up -d
SHELL
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