Skip to content

Commit 4e13efd

Browse files
authored
Permanent fork (#2)
1 parent 1b24dc6 commit 4e13efd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+653
-3493
lines changed

.circleci/config.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.circleci/config.yml.tmpl

Lines changed: 0 additions & 45 deletions
This file was deleted.

.circleci/gen-config.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pcap/pcap.test
55
pixiecore/pixiecore.test
66
vendor/
77
build/
8+
bin

.gitlab-ci.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
FROM golang:1.15-buster as builder
1+
FROM golang:1.18-buster as builder
22
COPY . /work/
33
WORKDIR /work
4-
RUN cd cmd/pixiecore \
5-
&& CGO_ENABLE=0 go build -trimpath -tags netgo \
6-
&& strip /work/cmd/pixiecore/pixiecore
4+
RUN make
75

8-
FROM alpine:3.12
6+
FROM alpine:3.15
97
RUN apk -U add ca-certificates
10-
COPY --from=builder /work/cmd/pixiecore/pixiecore /pixiecore
11-
ENTRYPOINT ["/pixiecore"]
8+
COPY --from=builder /work/bin/pixie /pixie
9+
ENTRYPOINT ["/pixie"]

Makefile

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
1+
SHA := $(shell git rev-parse --short=8 HEAD)
2+
GITVERSION := $(shell git describe --long --all)
3+
BUILDDATE := $(shell date -Iseconds)
4+
VERSION := $(or ${VERSION},devel)
5+
16
GOCMD:=go
27
GOMODULECMD:=GO111MODULE=on go
8+
LINKMODE := -extldflags '-static -s -w'
39

410
# Local customizations to the above.
511
ifneq ($(wildcard Makefile.defaults),)
612
include Makefile.defaults
713
endif
814

9-
all:
10-
$(error Please request a specific thing, there is no default target)
11-
12-
.PHONY: ci-prepare
13-
ci-prepare:
14-
$(GOCMD) get -u github.com/estesp/manifest-tool
15+
all: pixie
1516

16-
.PHONY: build
17-
build:
18-
$(GOMODULECMD) install -v ./cmd/pixiecore
17+
.PHONY: pixie
18+
pixie: test
19+
go build -tags netgo,osusergo \
20+
-ldflags "$(LINKMODE) -X 'github.com/metal-stack/v.Version=$(VERSION)' \
21+
-X 'github.com/metal-stack/v.Revision=$(GITVERSION)' \
22+
-X 'github.com/metal-stack/v.GitSHA1=$(SHA)' \
23+
-X 'github.com/metal-stack/v.BuildDate=$(BUILDDATE)'" \
24+
-o bin/pixie github.com/metal-stack/pixie/cmd
25+
strip bin/pixie
1926

2027
.PHONY: test
2128
test:
@@ -26,21 +33,6 @@ test:
2633
lint:
2734
$(GOMODULECMD) tool vet .
2835

29-
REGISTRY=pixiecore
30-
TAG=dev
31-
.PHONY: ci-push-images
32-
ci-push-images:
33-
make -f Makefile.inc push GOARCH=amd64 TAG=$(TAG)-amd64 BINARY=pixiecore REGISTRY=$(REGISTRY)
34-
make -f Makefile.inc push GOARCH=arm TAG=$(TAG)-arm BINARY=pixiecore REGISTRY=$(REGISTRY)
35-
make -f Makefile.inc push GOARCH=arm64 TAG=$(TAG)-arm64 BINARY=pixiecore REGISTRY=$(REGISTRY)
36-
make -f Makefile.inc push GOARCH=ppc64le TAG=$(TAG)-ppc64le BINARY=pixiecore REGISTRY=$(REGISTRY)
37-
make -f Makefile.inc push GOARCH=s390x TAG=$(TAG)-s390x BINARY=pixiecore REGISTRY=$(REGISTRY)
38-
manifest-tool push from-args --platforms linux/amd64,linux/arm,linux/arm64,linux/ppc64le,linux/s390x --template $(REGISTRY)/pixiecore:$(TAG)-ARCH --target $(REGISTRY)/pixiecore:$(TAG)
39-
40-
.PHONY: ci-config
41-
ci-config:
42-
(cd .circleci && go run gen-config.go >config.yml)
43-
4436
.PHONY: update-ipxe
4537
update-ipxe:
4638
# rm -rf third_party/ipxe

Makefile.inc

Lines changed: 0 additions & 64 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Netboot, packages and utilities for network booting
2-
3-
This repository contains Go implementations of network protocols used
4-
in booting machines over the network, as well as utilites built on top
5-
of these libraries.
6-
7-
**This project is no longer actively developed. I'm glad if you find it useful, but don't expect any significant changes.**
8-
9-
## Programs
10-
11-
- [Pixiecore](https://github.com/danderson/netboot/tree/master/pixiecore): Command line all-in-one tool for easy netbooting
12-
13-
## Libraries
14-
15-
The canonical import path for Go packages in this repository is `go.universe.tf/netboot`.
16-
17-
- [pcap](https://godoc.org/go.universe.tf/netboot/pcap): Pure Go implementation of reading and writing pcap files.
18-
- [dhcp4](https://godoc.org/go.universe.tf/netboot/dhcp4): DHCPv4 library providing the low-level bits of a DHCP client/server (packet marshaling, RFC-compliant packet transmission semantics).
19-
- [tftp](https://godoc.org/go.universe.tf/netboot/tftp): Read-only TFTP server implementation.
20-
- [pixiecore](https://godoc.org/go.universe.tf/netboot/pixiecore): Go library for Pixiecore tool functionality. Every stability warning in this repository applies double for this package.
1+
# Pixiecore
212

3+
This project is a permanent fork of: [Pixiecore](https://github.com/danderson/netboot/tree/master/pixiecore)
File renamed without changes.

0 commit comments

Comments
 (0)