Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
Restyaboard
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
Restyaboard
Commits
cc4974ca
Commit
cc4974ca
authored
Aug 30, 2015
by
Tsubasa Namiki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bugs
and change port
parent
7ace9563
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
+13
-8
Vagrantfile
Vagrantfile
+4
-4
docker-compose.yml
docker-compose.yml
+1
-1
default.yaml
provision/nodes/default.yaml
+2
-2
restyaboard.rb
provision/roles/restyaboard.rb
+1
-1
service_spec.rb
spec/restyaboard/service_spec.rb
+5
-0
No files found.
Vagrantfile
View file @
cc4974ca
...
...
@@ -11,9 +11,9 @@ VAGRANTFILE_API_VERSION = "2"
Vagrant
.
configure
(
VAGRANTFILE_API_VERSION
)
do
|
config
|
config
.
vm
.
define
:
docker
,
primary:
true
do
|
docker
|
docker
.
vm
.
provider
:aws
do
|
provider
,
override
|
override
.
vm
.
hostname
=
"
docker
"
config
.
vm
.
define
:
restyaboard
,
primary:
true
do
|
restyaboard
|
restyaboard
.
vm
.
provider
:aws
do
|
provider
,
override
|
override
.
vm
.
hostname
=
"
restyaboard
"
override
.
vm
.
box_url
=
"https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
override
.
vm
.
box
=
"aws"
override
.
ssh
.
username
=
ENV
[
'AWS_SSH_USERNAME'
]
...
...
@@ -30,7 +30,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
provider
.
instance_ready_timeout
=
120
provider
.
terminate_on_shutdown
=
false
provider
.
security_groups
=
[
ENV
[
'AWS_SECURITY_GROUP'
]]
provider
.
tags
=
{
"Name"
=>
"
docker
"
}
provider
.
tags
=
{
"Name"
=>
"
restyaboard
"
}
# synced folder
override
.
vm
.
synced_folder
"."
,
"/vagrant"
,
disabled:
true
...
...
docker-compose.yml
View file @
cc4974ca
...
...
@@ -26,7 +26,7 @@ restyaboard:
-
elasticsearch:elasticsearch
-
postgres:postgres
ports
:
-
5555
:80
-
1234
:80
volumes_from
:
-
data00restyaboard
restart
:
always
provision/nodes/default.yaml
View file @
cc4974ca
---
recipes
:
-
roles/base.rb
-
roles/docker.rb
\ No newline at end of file
-
roles/restyaboard.rb
\ No newline at end of file
provision/roles/restyaboard.rb
View file @
cc4974ca
...
...
@@ -12,7 +12,7 @@ git "/home/ec2-user/docker-restyaboard" do
end
execute
"docker up"
do
command
"COMPOSE_API_VERSION=1.18
docker-compose buil
d"
command
"COMPOSE_API_VERSION=1.18
/usr/local/bin/docker-compose up -
d"
cwd
"/home/ec2-user/docker-restyaboard"
user
"ec2-user"
not_if
"docker ps | grep restyaboard"
...
...
spec/
docker
/service_spec.rb
→
spec/
restyaboard
/service_spec.rb
View file @
cc4974ca
...
...
@@ -4,3 +4,7 @@ describe service('docker') do
it
{
should
be_enabled
}
it
{
should
be_running
}
end
describe
port
(
1234
)
do
it
{
should
be_listening
}
end
\ No newline at end of file
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