-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
68 lines (53 loc) · 2.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM higanworks/knife-zero-edgebase
LABEL MAINTAINER=sawanoboriyu@higanworks.com
# ADD .git/index /index
WORKDIR /home
# RUN wget https://codeload.github.com/chef/chef-config/legacy.tar.gz/master -O chef-config.tgz
# RUN tar xvzf chef-config.tgz && mv chef-chef-* chef-config
RUN wget -nv https://codeload.github.com/chef/chef/legacy.tar.gz/master -O chef.tgz
RUN tar xvzf chef.tgz && mv chef-chef-* chef
RUN wget -nv https://codeload.github.com/chef/chef-cli/legacy.tar.gz/master -O chef-cli.tgz
RUN tar xvzf chef-cli.tgz && mv chef-chef-cli* chef-cli
# RUN wget -nv https://codeload.github.com/chef/chef-dk/legacy.tar.gz/master -O chef.tgz
# RUN tar xvzf chef.tgz && mv chef-boneyard-chef-dk* chef-dk
# use ohai latest
RUN wget -nv https://codeload.github.com/chef/ohai/legacy.tar.gz/master -O ohai.tgz
RUN tar xvzf ohai.tgz && mv chef-ohai-* ohai
WORKDIR /home/ohai
RUN gem build ohai.gemspec
RUN gem install -V -b ohai*.gem --no-document
WORKDIR /home/chef/chef-utils
RUN touch CONTRIBUTING.md
RUN gem build chef-utils.gemspec
RUN gem install -V -b chef-utils*.gem --no-document
WORKDIR /home/chef/chef-config
RUN touch CONTRIBUTING.md
RUN gem build chef-config.gemspec
RUN gem install -V -b chef-config*.gem --no-document
WORKDIR /home/chef
RUN gem build chef.gemspec
RUN gem install -V -b chef*.gem --no-document
WORKDIR /home/chef/knife
RUN touch CONTRIBUTING.md
RUN gem build knife.gemspec
RUN gem install -V -b knife*.gem --no-document
WORKDIR /home/chef/knife
RUN touch CONTRIBUTING.md
RUN gem build knife.gemspec
RUN gem install -V -b knife*.gem --no-document
# WORKDIR /home/chef-dk
# RUN gem build chef-dk
# RUN gem install -V -b chef-dk*.gem --no-document
WORKDIR /home/chef-cli
RUN gem build chef-cli
RUN gem install -V -b chef-cli*.gem --no-document
ADD . /home/knife-zero/
ADD integration_test/chef-repo /chef-repo/
ADD integration_test/fixtures /chef-repo/fixtures
WORKDIR /home/knife-zero
RUN gem build knife-zero.gemspec
RUN gem install -V -l knife-zero-*.gem --no-document
RUN gem install -V knife-helper --no-document
# RUN gem install -V chef-cli --no-document
WORKDIR /chef-repo
CMD ["sh", "run.sh"]