-
Notifications
You must be signed in to change notification settings - Fork 1
/
Conairfile
39 lines (30 loc) · 1.19 KB
/
Conairfile
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
FROM docker
MAINTAINER Timo Derstappen <[email protected]>
# add core user
RUN useradd -m -G wheel -s /bin/bash core
RUN echo core:coreos | chpasswd
RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/core
RUN echo "core ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/core
# setup environment
ADD config/coreos-setup-environment.service /etc/systemd/system/
ADD bin/coreos-setup-environment /usr/bin/coreos-setup-environment
RUN usermod -aG docker core
# etcd
RUN useradd -m -s /usr/bin/nologin -d /var/lib/etcd2 etcd
# fleet.config
RUN mkdir /etc/fleet
ADD config/fleet.conf /etc/fleet/fleet.conf
# units kopieren
ADD config/etcd2.service /etc/systemd/system
ADD config/fleet.service /etc/systemd/system
ADD config/fleet.socket /etc/systemd/system
ADD config/rkt-metadata.service /etc/systemd/system
ADD config/rkt-metadata.socket /etc/systemd/system
ENABLE etcd2 fleet fleet.socket coreos-setup-environment rkt-metadata rkt-metadata.socket
# copy fleet, fleetctl, etcdctl
ADD bin/fleetd0.11.3-gs-2 /usr/bin/fleetd
ADD bin/fleetctl0.11.3-gs-2 /usr/bin/fleetctl
ADD bin/etcdctl2.2.2-gs-1 /usr/bin/etcdctl
ADD bin/etcd2.2.2-gs-1 /usr/bin/etcd2
ADD bin/rkt /usr/bin/rkt
ADD bin/stage1.aci /usr/bin/stage1.aci