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
1ce7b5cf
Commit
1ce7b5cf
authored
Aug 31, 2015
by
Tsubasa Namiki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed provision: reduce dependence
parent
5d458b12
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
default.rb
provision/cookbooks/docker/default.rb
+5
-0
restyaboard.rb
provision/roles/restyaboard.rb
+10
-10
No files found.
provision/cookbooks/docker/default.rb
View file @
1ce7b5cf
...
...
@@ -7,6 +7,11 @@ execute "install docker-compose" do
not_if
"test -e /usr/local/bin/docker-compose"
end
link
"/usr/bin/docker-compose"
do
to
"/usr/local/bin/docker-compose"
not_if
"test -e /usr/bin/docker-compose"
end
service
"docker"
do
action
[
:enable
,
:start
]
end
provision/roles/restyaboard.rb
View file @
1ce7b5cf
include_recipe
"../cookbooks/docker/default.rb"
execute
"add group docker for ec2-user"
do
command
"gpasswd -a ec2-user docker"
not_if
"id ec2-user | grep docker"
directory
"/dockerfile"
directory
"/dockerfile/restyaboard"
remote_directory
"/dockerfile/restyaboard"
do
action
:create
source
"../../restyaboard"
end
git
"/home/ec2-user/docker-restyaboard"
do
repository
"https://github.com/namikingsoft/docker-restyaboard.git"
user
"ec2-user"
not_if
"test -d /home/ec2-user/docker-restyaboard"
remote_file
"/dockerfile/docker-compose.yml"
do
source
"../../docker-compose.yml"
end
execute
"docker up"
do
command
"COMPOSE_API_VERSION=1.18 /usr/local/bin/docker-compose up -d"
cwd
"/home/ec2-user/docker-restyaboard"
user
"ec2-user"
command
"COMPOSE_API_VERSION=1.18 docker-compose up -d"
cwd
"/dockerfile"
not_if
"docker ps | grep restyaboard"
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