Skip to content

Commit

Permalink
Packaging updates for release
Browse files Browse the repository at this point in the history
  • Loading branch information
evol262 committed Dec 10, 2021
1 parent 5a726f9 commit 65d7f7a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_DIR:=$(CURDIR)
APP_DIR:=$(CURDIR)/src
PACKAGING_DIR:=$(CURDIR)/packaging
VERSION=$(shell cat VERSION)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-dev
0.2.0-dev
4 changes: 2 additions & 2 deletions packaging/common.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARCH=$(shell uname -m)
BUILDTIME=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
GO_VERSION:=1.13.11
GO_VERSION:=1.16.8
PLATFORM=cri-dockerd
SHELL:=/bin/bash
VERSION?=0.1.0-dev
VERSION?=0.2.0-dev

export BUILDTIME
export PLATFORM
2 changes: 1 addition & 1 deletion packaging/deb/common/cri-docker.docker.upstart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kill timeout 20

script
CRI_DOCKERD=/usr/bin/cri-dockerd
exec "$CRI_DOCKERD" --v=10 --networkplugin="" --logtostderr
exec "$CRI_DOCKERD" --container-runtime-endpoint fd:// --networkplugin=""
end script

# Don't emit "started" event until cri-docker.sock is ready.
Expand Down
8 changes: 4 additions & 4 deletions packaging/static/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static: static-linux cross-mac cross-win cross-arm ## create all static packages
.PHONY: static-linux
static-linux:
mkdir -p build/linux/cri-dockerd
cd $(APP_DIR) && go get && env GOOS=linux GOARCH=amd64 go build -o cri-dockerd
cd $(APP_DIR) && go get && env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o cri-dockerd
mv $(APP_DIR)/cri-dockerd build/linux/cri-dockerd/cri-dockerd
tar -C build/linux -c -z -f build/linux/cri-dockerd-$(STATIC_VERSION).tgz cri-dockerd

Expand All @@ -35,14 +35,14 @@ hash_files:
.PHONY: cross-mac
cross-mac:
mkdir -p build/mac/cri-dockerd
cd $(APP_DIR) && go get && env GOOS=darwin GOARCH=amd64 go build -o cri-dockerd-darwin-amd64
cd $(APP_DIR) && go get && env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o cri-dockerd-darwin-amd64
mv $(APP_DIR)/cri-dockerd-darwin-amd64 build/mac/cri-dockerd/cri-dockerd
tar -C build/mac -c -z -f build/mac/cri-dockerd-$(STATIC_VERSION).tgz cri-dockerd

.PHONY: cross-win
cross-win:
mkdir -p build/win/cri-dockerd
cd $(APP_DIR) && go get && env GOOS=windows GOARCH=amd64 go build -o cri-dockerd-windows-amd64
cd $(APP_DIR) && go get && env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o cri-dockerd-windows-amd64
mv $(APP_DIR)/cri-dockerd-windows-amd64 build/win/cri-dockerd/cri-dockerd.exe
if ! grep -sq 'docker\|lxc' /proc/1/cgroup; then \
docker run --rm -v $(CURDIR)/build/win:/v -w /v alpine sh -c 'apk update && apk add zip && zip -r cri-dockerd-$(STATIC_VERSION).zip cri-dockerd'; \
Expand All @@ -52,6 +52,6 @@ cross-win:
.PHONY: cross-arm
cross-arm: ## create tgz with linux armhf client only
mkdir -p build/arm/cri-dockerd
cd $(APP_DIR) && go get && env GOOS=linux GOARCH=arm64 go build -o cri-dockerd-arm64
cd $(APP_DIR) && go get && env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o cri-dockerd-arm64
mv $(APP_DIR)/cri-dockerd-arm64 build/arm/cri-dockerd/cri-dockerd
tar -C build/arm -c -z -f build/arm/cri-dockerd-$(STATIC_VERSION).tgz cri-dockerd
2 changes: 1 addition & 1 deletion packaging/systemd/cri-docker.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=CRI Interface for Docker Application Container Engine
Documentation=https://docs.micrantis.com
Documentation=https://docs.mirantis.com
BindsTo=containerd.service
After=network-online.target firewalld.service containerd.service docker.service
Wants=network-online.target
Expand Down

0 comments on commit 65d7f7a

Please sign in to comment.