mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 06:02:44 +00:00
Use the packet metadata to set up bonding, also get ssh keys and hostname. This does not yet do anything with disk metadata. Userdata is not used if it has been used for ipxe, but is otherwise available. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
19 lines
675 B
Docker
19 lines
675 B
Docker
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
|
|
|
RUN apk add --no-cache go musl-dev linux-headers
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
|
|
COPY . /go/src/metadata/
|
|
RUN go-compile.sh /go/src/metadata
|
|
|
|
RUN mkdir -p out/tmp out/var out/dev out/etc out/etc/ssl/certs
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=mirror /go/bin/metadata /usr/bin/metadata
|
|
COPY --from=mirror /out/ /
|
|
CMD ["/usr/bin/metadata"]
|
|
LABEL org.mobyproject.config='{"binds": ["/dev:/dev", "/var:/var", "/sys:/sys", "/etc/resolv.conf:/etc/resolv.conf", "/etc/ssl/certs:/etc/ssl/certs"], "tmpfs": ["/tmp"], "readonly": true, "capabilities": ["CAP_SYS_ADMIN", "CAP_NET_ADMIN"]}'
|