Skip to content

Commit 7fdf4a0

Browse files
committed
setup for local development
1 parent 4bae33e commit 7fdf4a0

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

Gunfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# temporary Gunfile for plugins development on OS X.
3+
# curious to use it yourself?
4+
# https://github.com/gliderlabs/glidergun
5+
6+
init() {
7+
cmd-export build
8+
cmd-export push
9+
cmd-export restore
10+
cmd-export backup
11+
}
12+
13+
build() {
14+
make BINDDIR=.
15+
}
16+
17+
push() {
18+
cat bundles/1.5.0-plugins/binary/docker-1.5.0-plugins \
19+
| boot2docker ssh "cat > docker"
20+
boot2docker ssh "
21+
chmod +x ./docker
22+
mv ./docker /usr/local/bin/docker
23+
sudo /etc/init.d/docker restart
24+
"
25+
}
26+
27+
backup() {
28+
boot2docker ssh "cp /usr/local/bin/docker /usr/local/bin/docker.backup"
29+
}
30+
31+
restore() {
32+
boot2docker ssh "cp /usr/local/bin/docker.backup /usr/local/bin/docker"
33+
boot2docker ssh "sudo /etc/init.d/docker restart"
34+
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.0
1+
1.5.0-plugins

0 commit comments

Comments
 (0)