forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
26 lines (21 loc) · 855 Bytes
/
Dockerfile.dev
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
FROM cilium/dependencies:0.12.90
LABEL maintainer="[email protected]"
# New packages can be added by appending ../cp-dirs
ADD . /tmp/cilium-net-build/src/github.com/cilium/cilium
RUN cd /tmp/cilium-net-build/src/github.com/cilium/cilium && \
export GOROOT=/usr/local/go && \
export GOPATH=/tmp/cilium-net-build && \
export PATH="$GOROOT/bin:/usr/local/clang+llvm/bin:$GOPATH/bin:$PATH" && \
make clean-container build && \
make PKG_BUILD=1 install && \
# bash-completion-begin
mkdir -p /root && \
echo ". /etc/profile.d/bash_completion.sh" >> /root/.bashrc && \
cilium completion bash >> /root/.bashrc && \
# bash-completion-end
groupadd -f cilium
ADD plugins/cilium-cni/cni-install.sh /cni-install.sh
ADD plugins/cilium-cni/cni-uninstall.sh /cni-uninstall.sh
ENV PATH="/usr/local/clang+llvm/bin:$PATH"
ENV INITSYSTEM="SYSTEMD"
CMD ["/usr/bin/cilium"]