forked from openshift/geard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 745 Bytes
/
Dockerfile
File metadata and controls
21 lines (18 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM fedora
MAINTAINER Clayton Coleman <ccoleman@redhat.com>
ENV GOPATH /go
RUN yum install -y golang git hg bzr libselinux-devel glibc-static btrfs-progs-devel device-mapper-devel sqlite-devel libnetfilter_queue-devel gcc gcc-c++ && yum clean all
RUN mkdir -p $GOPATH && echo $GOPATH >> ~/.bash_profile
ADD . /go/src/github.com/openshift/geard
WORKDIR /go/src/github.com/openshift/geard
RUN \
./contrib/build -s -n && \
./contrib/test && \
/bin/cp -f $GOPATH/bin/gear-auth-keys-command /usr/sbin/ && \
/bin/cp -f $GOPATH/bin/switchns /usr/bin && \
/bin/cp -f $GOPATH/bin/gear /usr/bin && \
/bin/cp -f $GOPATH/bin/sti /usr/bin && \
rm -rf $GOPATH
CMD ["/bin/gear", "daemon"]
EXPOSE 43273
VOLUME /var/lib/containers