-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30e72e8
commit 411aef7
Showing
7 changed files
with
90 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
FROM ubuntu:16.04 | ||
FROM golang:1.10.2 | ||
|
||
ENV COMMIT_HASH 27896bc470a2044c714101b2a321d6d900ccecbe | ||
ENV CUSTOM_FORK_AUTHOR hightoxicity | ||
RUN apt-get update | ||
RUN apt-get install -qy --no-install-recommends wget git | ||
RUN [ -d ${GOPATH}/bin ] || mkdir ${GOPATH}/bin | ||
RUN go get -u github.com/golang/dep/cmd/dep | ||
RUN mkdir -p ${GOPATH}/src/go.universe.tf | ||
WORKDIR /go/src/go.universe.tf | ||
RUN git clone https://github.com/google/netboot.git | ||
WORKDIR /go/src/go.universe.tf/netboot | ||
RUN git remote add ${CUSTOM_FORK_AUTHOR} https://github.com/${CUSTOM_FORK_AUTHOR}/netboot.git && git fetch ${CUSTOM_FORK_AUTHOR} && git checkout ${COMMIT_HASH} | ||
RUN dep ensure | ||
RUN ls -al ./vendor | ||
WORKDIR /go/src | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o /bin/pixiecore -ldflags "-w -s -v -extldflags -static" go.universe.tf/netboot/cmd/pixiecore | ||
|
||
FROM ubuntu:16.04 | ||
MAINTAINER Douglas Holt <[email protected]> | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install apt-transport-https curl && \ | ||
curl -L https://packagecloud.io/danderson/pixiecore/gpgkey | apt-key add - && \ | ||
echo "deb https://packagecloud.io/danderson/pixiecore/debian stretch main" >/etc/apt/sources.list.d/pixiecore.list && \ | ||
apt-get update && \ | ||
apt-get -y install pixiecore nginx vsftpd iptables dnsmasq python-flask | ||
apt-get -y install nginx vsftpd iptables dnsmasq python-flask | ||
COPY --from=0 /bin/pixiecore /usr/bin/pixiecore | ||
RUN chmod +x /usr/bin/pixiecore | ||
|
||
RUN mkdir -p /www /var/run/vsftpd/empty | ||
# && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters