Skip to content

Comments

Merge pkg/truncindex and pkg/symlink from moby/moby#53

Closed
dims wants to merge 309 commits intomoby:masterfrom
dims:merge-pkg-truncindex-and-symlink-from-moby/moby
Closed

Merge pkg/truncindex and pkg/symlink from moby/moby#53
dims wants to merge 309 commits intomoby:masterfrom
dims:merge-pkg-truncindex-and-symlink-from-moby/moby

Conversation

@dims
Copy link

@dims dims commented Oct 29, 2020

We need to remove the recursive dependency of containerd<->moby/moby, containerd uses 2 packages from moby/moby. So to break the recursion, we need to move those two packages into a "neutral" repo. per the discussion in containerd/containerd#4631, the idea was to preserve the git history of these two packages and merge them into this repository

cc @thaJeztah

Sven Dowideit and others added 30 commits July 8, 2014 09:35
This reverts commit 5a3d774e5651da772a065282a1fb1a31e19e911c.

Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)

Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: vieux)
…ies behavior on non-existant targets."

This reverts commit 1c8d3106df0bd2aba304c7b3863949ca11c2b133.

Conflicts:
	archive/archive_test.go

Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: crosbymichael)

Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: vieux)
Conflicts:
	VERSION
	integration-cli/docker_cli_build_test.go

Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Docker-DCO-1.1-Signed-off-by: Tibor Vass <[email protected]> (github: tiborvass)
Docker-DCO-1.1-Signed-off-by: James Turnbull <[email protected]> (github: jamtur01)
Updated docker logs timestamp to RFC3339 (carrying #5723)
Replaced selected docs references to ADD with COPY
…g conventions.

Docker-DCO-1.1-Signed-off-by: Phil Jackson <[email protected]> (github: underscorephil)
pkg/truncindex: add unclejack to MAINTAINERS
Docker-DCO-1.1-Signed-off-by: SvenDowideit <[email protected]> (github: SvenDowideit)
Fixes #6345

Thanks @larsks for outstanding investigation

Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <[email protected]> (github: LK4D4)
"db" is the parent image, and "web" links to it as the child image. There was a typo in the document which reversed the relation.
namespaces are not well documented, and I had to jump around to other docs. replacing `foo/bar` hopefully makes what's going on here a bit more obvious.

Docker-DCO-1.1-Signed-off-by: Tim Ruffles <[email protected]> (github: timruffles)
user facing documentation changes in master atm
Fixed parent-child relationship description
pkg/units: Better to not use `error` as var name
[DOCS] replace foo/bar with concrete names
Docker-DCO-1.1-Signed-off-by: James Turnbull <[email protected]> (github: jamtur01)
Docker-DCO-1.1-Signed-off-by: Victor Vieux <[email protected]> (github: vieux)
Fix incorrect path in ENTRYPOINT example
/var/lock/apache2
/var/run/apache2
Typo in dockervolumes.md line 141?
allow sigquit to display stacktrace in debug mode
archive: add unclejack to MAINTAINERS
kolyshkin and others added 21 commits February 9, 2018 11:24
Since commit e9b9e4ace294230c6b8eb has landed, there is a chance that
container.RWLayer is nil (due to some half-removed container). Let's
check the pointer before use to avoid any potential nil pointer
dereferences, resulting in a daemon crash.

Note that even without the abovementioned commit, it's better to perform
an extra check (even it's totally redundant) rather than to have a
possibility of a daemon crash. In other words, better be safe than
sorry.

[v2: add a test case for daemon.getInspectData]
[v3: add a check for container.Dead and a special error for the case]

Fixes: e9b9e4ace294230c6b8eb
Signed-off-by: Kir Kolyshkin <[email protected]>
Fix string type for buildargs API definition
Signed-off-by: Sebastiaan van Stijn <[email protected]>
...and use ugorji/go 1.1.1

Signed-off-by: Kir Kolyshkin <[email protected]>
Signed-off-by: John Howard <[email protected]>

This also adds go.etcd.io/bbolt as boltdb/bolt is no longer
maintained, and we need etcd-io/bbolt#122 which
was merged in https://github.com/etcd-io/bbolt/releases/tag/v1.3.1-etcd.8
in order to fix moby/libnetwork#1950.

Note that I can't entirely remove boltdb/bolt as it is still used by
other components. Still need to work my way through them.... These include
containerd/containerd (containerd/containerd#2634),
docker/swarmkit; moby/buildkit. And probably more....
daemon/logger/journald: simplify readers field
fixes display text in Multiple IDs found with provided prefix
Add support for sysctl options in services
aufs: retry umount on ebusy, ignore ENOENT in graphdriver.Mounted
pkg/symlink: don't depend on pkg/system and pkg/longpath
@dims
Copy link
Author

dims commented Oct 29, 2020

Notes on how the git history was pruned and grafted:

~/go/src/github.com/moby/moby> git checkout -b merging-some-branches
~/go/src/github.com/moby/moby> git filter-repo --path pkg/symlink --path pkg/truncindex
~/go/src/github.com/moby/moby> cd ../sys
~/go/src/github.com/moby/moby> git remote add patchy ../moby
~/go/src/github.com/moby/moby> git fetch patchy
~/go/src/github.com/moby/moby> git merge --allow-unrelated-histories --signoff -m "Merge pkg/(symlink|truncindex) from moby/moby into moby/sys" patchy/merging-some-branches

@dims
Copy link
Author

dims commented Oct 29, 2020

@thaJeztah i don't feel that i should not try to "fix" the DCO failure, so leaving it as-is.

@thaJeztah
Copy link
Member

Oh, thanks! Erm (oh, feel bad commenting that, because I didn't come round to try, and you did all the work), I think the idea was to only merge pkg/symlink here, and for pkg/truncindex, just creating a copy in containerd would be ok (could of course keep history there as well if useful)

Thanks for providing the steps you took though; let me give it a quick try to repeat with pkg/symlink only

@thaJeztah
Copy link
Member

i don't feel that i should not try to "fix" the DCO failure, so leaving it as-is.

Agreed; we can't change history, so no need to fix-up.

Looks like most of them are because of the old Docker-DCO.. that we used in the past, although the GitHub handle in the first one I picked looks odd (possibly because it was a cherry-pick / carry);

Docker-DCO-1.1-Signed-off-by: Michael Crosby <[email protected]> (github: vieux)

There's also some where it complains about e-mail addresses, wonder if it supports .mailmap (not worth the effort though)

@dims
Copy link
Author

dims commented Oct 29, 2020

thanks @thaJeztah ! the new PR looks good! ( i had missed a couple of things like stripping out pkg/ and adding the new package to the Makefile etc. )

@dims dims closed this Oct 29, 2020
@thaJeztah
Copy link
Member

Thanks for starting the work; your steps helped me getting it done (without having to do a lot of Google-fu 😂)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.