-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (18 loc) · 896 Bytes
/
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
FROM centos:centos6
MAINTAINER Iván De Gyves <[email protected]>
VOLUME ["/var/opt/chef-server"]
RUN yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
WORKDIR /root
RUN curl -L -o chef-server-core-11.1.5-1.el5.x86_64.rpm "https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-server-11.1.5-1.el6.x86_64.rpm"
RUN yum -y install /root/chef-server-core-11.1.5-1.el5.x86_64.rpm
RUN yum -y install supervisor
WORKDIR /
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY chef-check-hostname /usr/sbin/chef-check-hostname
RUN chmod +x /usr/sbin/chef-check-hostname
RUN ln -sf /bin/true /sbin/initctl
RUN /opt/chef-server/embedded/bin/runsvdir-start & \
chef-server-ctl reconfigure && \
chef-server-ctl stop
EXPOSE 80 443
CMD ["/usr/bin/supervisord -f /etc/supervisor/conf.d/supervisord.conf"