Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: upgrade to 19.03.12 #1025

Merged
merged 2 commits into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/docker-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ build = "build.rs"
path = "pkg.rs"

[[package.metadata.build-package.external-files]]
url = "https://github.com/docker/cli/archive/v18.09.9/cli-18.09.9.tar.gz"
sha512 = "bc06dbbe8da1d9eaab509eadb6d6af3b2a603176c5c6b8432641dc0f2843a90f14b16455331540c30fd9b0039cc7936c334da3bdc957afebcf0b5a4caf312b7e"
url = "https://github.com/docker/cli/archive/v19.03.12/cli-19.03.12.tar.gz"
sha512 = "3114ba5134d8606393c526d9d780cae4ca8584017c734a49250be43eb84ab9c716c30735d04b33a1ef47475b06b31f269f4a020ac1b6647b58504acb9fed8be6"

[build-dependencies]
glibc = { path = "../glibc" }
6 changes: 3 additions & 3 deletions packages/docker-cli/clarify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ license-files = [
]
skip-files = ["license.go", "model/license.go"]

[clarify."github.com/ghodss/yaml"]
[clarify."sigs.k8s.io/yaml"]
expression = "MIT AND BSD-3-Clause"
license-files = [
{ path = "LICENSE", hash = 0xcdf3ae00 },
]
{ path = "LICENSE", hash = 0xcdf3ae00},
]
Comment on lines +11 to +12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits: lost final newline, and space before }

16 changes: 14 additions & 2 deletions packages/docker-cli/docker-cli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
%global gorepo cli
%global goimport %{goproject}/%{gorepo}

%global gover 18.09.9
%global gover 19.03.12
%global rpmver %{gover}
%global gitrev 0ed913b885c8919944a2e4c8d0b80a318a8dd48b

%global source_date_epoch 1492525740

%global _dwz_low_mem_die_limit 0

Expand All @@ -27,7 +30,16 @@ BuildRequires: %{_cross_os}glibc-devel

%build
%cross_go_configure %{goimport}
go build -buildmode pie -o docker %{goimport}/cmd/docker
LD_VERSION="-X github.com/docker/cli/cli/version.Version=%{gover}"
LD_GIT_REV="-X github.com/docker/cli/cli/version.GitCommit=%{gitrev}"
LD_PLATFORM="-X \"github.com/docker/cli/cli/version.PlatformName=Docker Engine - Community\""
BUILDTIME=$(date -u -d "@%{source_date_epoch}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
LD_BUILDTIME="-X github.com/docker/cli/cli/version.BuildTime=${BUILDTIME}"
go build \
-buildmode pie \
-ldflags "${LD_VERSION} ${LD_GIT_REV} ${LD_PLATFORM} ${LD_BUILDTIME}" \
-o docker \
%{goimport}/cmd/docker

%install
install -d %{buildroot}%{_cross_bindir}
Expand Down
4 changes: 2 additions & 2 deletions packages/docker-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ build = "build.rs"
path = "pkg.rs"

[[package.metadata.build-package.external-files]]
url = "https://github.com/docker/engine/archive/v18.09.9/engine-18.09.9.tar.gz"
sha512 = "070700e5b9dac439fd494ae52824ebbd0a8dbc4bf0351c4173c47f585ab81a0fb39470c4d566a7dc69481b03e04f073727062872d2550505ae67a5d1bb30132e"
url = "https://github.com/docker/engine/archive/v19.03.12/engine-19.03.12.tar.gz"
sha512 = "51632ca8cff03440e3b76ad3e7f06b9c6275c776f4c4f9dc88cd7f5aa9b8aa8cb16ce2b3702426cb93f3714265a6cd28d4ba31612db37199e2915821b9ee8fd4"

[build-dependencies]
glibc = { path = "../glibc" }
Expand Down
5 changes: 0 additions & 5 deletions packages/docker-engine/clarify.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
[clarify."github.com/gogo/googleapis"]
# license file was added later, see https://github.com/gogo/googleapis/commit/b23578765ee54ff6bceff57f397d833bf4ca6869
expression = "Apache-2.0"
license-files = []

[clarify."github.com/sean-/seed"]
expression = "MIT AND BSD-3-Clause"
license-files = [
Expand Down
13 changes: 11 additions & 2 deletions packages/docker-engine/docker-engine.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
%global dorepo docker
%global doimport %{goproject}/%{dorepo}

%global gover 18.09.9
%global gover 19.03.12
%global rpmver %{gover}
%global gitrev 9dc6525e6118a25fab2be322d1914740ea842495

%global source_date_epoch 1363394400
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this timestamp come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is, as near as I can tell, Docker's birthday. (The date and time of this talk.)


%global _dwz_low_mem_die_limit 0

Expand Down Expand Up @@ -48,12 +51,18 @@ Requires: %{_cross_os}systemd

%build
%cross_go_configure %{doimport}
BUILDTAGS="journald selinux seccomp"
BUILDTAGS="autogen journald selinux seccomp"
BUILDTAGS+=" exclude_graphdriver_btrfs"
BUILDTAGS+=" exclude_graphdriver_devicemapper"
BUILDTAGS+=" exclude_graphdriver_vfs"
BUILDTAGS+=" exclude_graphdriver_zfs"
export BUILDTAGS
export VERSION=%{gover}
export GITCOMMIT=%{gitrev}
export BUILDTIME=$(date -u -d "@%{source_date_epoch}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
export PLATFORM="Docker Engine - Community"
chmod +x ./hack/make/.go-autogen
./hack/make/.go-autogen
go build -buildmode pie -tags="${BUILDTAGS}" -o dockerd %{doimport}/cmd/dockerd

%install
Expand Down