Skip to content

Commit 0c1df0a

Browse files
committed
Switch to Fig for managing containers.
1 parent cbb9086 commit 0c1df0a

File tree

7 files changed

+33
-97
lines changed

7 files changed

+33
-97
lines changed

Vagrantfile

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
4242
# the path on the host to the actual folder. The second argument is
4343
# the path on the guest to mount the folder. And the optional third
4444
# argument is a set of non-required options.
45-
config.vm.synced_folder ".", "/home/core/vagrant",
45+
config.vm.synced_folder ".", Dir.pwd,
4646
type: "nfs",
4747
id: "core",
4848
mount_options: ["nolock", "vers=3", "udp"]
@@ -61,41 +61,4 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
6161
#
6262
# View the documentation for the provider you're using for more
6363
# information on available options.
64-
65-
config.vm.define "lnpp" do |lnpp|
66-
config.vm.provision "docker", run: "always" do |d|
67-
d.build_image "/home/core/vagrant/images/memcached",
68-
args: "-t lnpp/memcached"
69-
70-
d.build_image "/home/core/vagrant/images/store",
71-
args: "-t lnpp/store"
72-
73-
d.build_image "/home/core/vagrant/images/mysql",
74-
args: "-t lnpp/mysql"
75-
76-
d.build_image "/home/core/vagrant/images/nginx",
77-
args: "-t lnpp/nginx"
78-
79-
d.run "lnpp-cache",
80-
image: "lnpp/memcached",
81-
args: "-p 11211:11211"
82-
83-
d.run "lnpp-store",
84-
image: "lnpp/store"
85-
86-
d.run "lnpp-db",
87-
image: "lnpp/mysql",
88-
args: "-p 3306:3306 \
89-
-e MYSQL_PASS=password \
90-
--volumes-from lnpp-store"
91-
92-
d.run "lnpp-front",
93-
image: "lnpp/nginx",
94-
args: "-p 80:80 \
95-
-v /home/core/vagrant/www:/var/www \
96-
-v /home/core/vagrant/sites:/etc/nginx/sites-enabled \
97-
--link lnpp-db:db \
98-
--link lnpp-cache:cache"
99-
end
100-
end
10164
end

fig.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
front:
2+
build: images/nginx
3+
ports:
4+
- "80:80"
5+
- "9000:9000"
6+
links:
7+
- mysql:db
8+
- memcached:cache
9+
volumes:
10+
- www:/var/www
11+
- sites:/etc/nginx/sites-enabled
12+
13+
mysql:
14+
image: tutum/mysql
15+
ports:
16+
- "3306:3306"
17+
environment:
18+
MYSQL_PASS: password
19+
20+
memcached:
21+
image: tutum/memcached
22+
ports:
23+
- "11211:11211"
24+
environment:
25+
MEMCACHED_PASS: password
26+
27+
redis:
28+
image: tutum/redis
29+
ports:
30+
- "6379:6379"
31+
environment:
32+
REDIS_PASS: password

images/memcached/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

images/memcached/supervisord.conf

Lines changed: 0 additions & 7 deletions
This file was deleted.

images/mysql/Dockerfile

Lines changed: 0 additions & 18 deletions
This file was deleted.

images/mysql/supervisord.conf

Lines changed: 0 additions & 7 deletions
This file was deleted.

images/store/Dockerfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)