af61458371
this implementation uses the TrivialServer that is already provided by the go-omaha library. it is a very simple wrapper, simply asking for the file, version, and listening address on the command line. it can only handle one package at a time, naming the payload from the server "update.gz", which is the standard filename for the update payload. the additional metadata required for package creation is generated based on the provided file. when the server is setup, update_engine can be pointed at it by setting the SERVER variable in /etc/coreos/update.conf
25 lines
418 B
Makefile
25 lines
418 B
Makefile
# kernel-style V=1 build verbosity
|
|
ifeq ("$(origin V)", "command line")
|
|
BUILD_VERBOSE = $(V)
|
|
endif
|
|
|
|
ifeq ($(BUILD_VERBOSE),1)
|
|
Q =
|
|
else
|
|
Q = @
|
|
endif
|
|
|
|
.PHONY: all
|
|
all: bin/serve-package
|
|
|
|
bin/serve-package:
|
|
$(Q)go build -o $@ cmd/serve-package/main.go
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(Q)rm -rf bin
|
|
|
|
.PHONY: vendor
|
|
vendor:
|
|
$(Q)glide update --strip-vendor
|
|
$(Q)glide-vc --use-lock-file --no-tests --only-code
|