Skip to content

Instantly share code, notes, and snippets.

@morganhein
Created October 2, 2017 21:04
Show Gist options
  • Save morganhein/e1aeb72519fa379bc3810b5a60d7c172 to your computer and use it in GitHub Desktop.
Save morganhein/e1aeb72519fa379bc3810b5a60d7c172 to your computer and use it in GitHub Desktop.
morgan@PolyArch /t/docker-git> nano PKGBUILD
morgan@PolyArch /t/docker-git> makepkg -si
==> Making package: docker-git 1:17.06.0.dev.32959.7117d5ef25-1 (Mon Oct 2 13:59:37 PDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating moby git repo...
Fetching origin
-> Updating cli git repo...
Fetching origin
-> Updating containerd git repo...
Fetching origin
-> Updating runc git repo...
Fetching origin
-> Updating libnetwork git repo...
Fetching origin
-> Found docker.install
==> Validating source files with md5sums...
moby ... Skipped
cli ... Skipped
containerd ... Skipped
runc ... Skipped
libnetwork ... Skipped
docker.install ... Passed
==> Extracting sources...
-> Creating working copy of moby git repo...
Switched to a new branch 'makepkg'
-> Creating working copy of cli git repo...
Switched to a new branch 'makepkg'
-> Creating working copy of containerd git repo...
Switched to a new branch 'makepkg'
-> Creating working copy of runc git repo...
Switched to a new branch 'makepkg'
-> Creating working copy of libnetwork git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
/tmp/docker-git/src
/tmp/docker-git/src
/tmp/docker-git/src
warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . ins
tead if you meant to match all paths
/tmp/docker-git/src
/tmp/docker-git/src
==> Starting pkgver()...
==> Updated version: docker-git 1:17.06.0.dev.33639.1e94a4862e-1
==> Starting build()...
==> building runc
go build -buildmode=pie -ldflags "-X main.gitCommit="ae2948042b08ad3d6d13cd09f40a50ffff4fc688"
-X main.version=1.0.0-rc4+dev " -tags "" -o runc .
/tmp/docker-git/src/runc/man
/tmp/docker-git/src
==> building containerd
mkdir -p bin/
cd ctr && go build -ldflags "-X github.com/containerd/containerd.GitCommit=06b9cb35161009dcb7123345749fef02f7cea8e0 " -o ../bin/ctr
cd containerd && go build -ldflags "-X github.com/containerd/containerd.GitCommit=06b9cb35161009dcb7123345749fef02f7cea8e0 " -tags "" -o ../bin/containerd
cd containerd-shim && go build -tags "" -ldflags "-w -X github.com/containerd/containerd.GitCommit=06b9cb35161009dcb7123345749fef02f7cea8e0 " -o ../bin/containerd-shim
/tmp/docker-git/src
==> building docker-proxy
/tmp/docker-git/src
==> building docker cli
WARNING: you are not in a container.
Use "make -f docker.Makefile dynbinary" or set
DISABLE_WARN_OUTSIDE_CONTAINER=1 to disable this warning.
Press Ctrl+C now to abort.
./scripts/build/dynbinary
Building dynamically linked build/docker-linux-amd64
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
/tmp/docker-git/src/cli/man
/tmp/docker-git/src
==> building dockerd
# WARNING! I don't seem to be running in a Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#
Removing bundles/
---> Making bundle: dynbinary (in bundles/dynbinary)
Building: bundles/dynbinary-daemon/dockerd-17.06.0-dev
Created binary: bundles/dynbinary-daemon/dockerd-17.06.0-dev
/tmp/docker-git/src
==> Entering fakeroot environment...
==> Starting package()...
==> runc binary
==> runc manpages
/tmp/docker-git/src
==> containerd binaries
/tmp/docker-git/src
==> docker-proxy binary
install: cannot stat 'bundles/17.06.0-dev/dynbinary-daemon/dockerd-17.06.0-dev': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
morgan@PolyArch /t/docker-git>
clmorgan@PolyArch /t/docker-git> makepkg -si
==> Making package: docker-git 1:17.06.0.dev.33639.1e94a4862e-1 (Mon Oct 2 14:04:08 PDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating moby git repo...
Fetching origin
-> Updating cli git repo...
Fetching origin
-> Updating containerd git repo...
Fetching origin
-> Updating runc git repo...
Fetching origin
-> Updating libnetwork git repo...
Fetching origin
-> Found docker.install
==> Validating source files with md5sums...
moby ... Skipped
cli ... Skipped
containerd ... Skipped
runc ... Skipped
libnetwork ... Skipped
docker.install ... Passed
==> Extracting sources...
-> Creating working copy of moby git repo...
Reset branch 'makepkg'
-> Creating working copy of cli git repo...
Switched to and reset branch 'makepkg'
-> Creating working copy of containerd git repo...
Previous HEAD position was 06b9cb35... Merge pull request #1305 from mlaventure/update-runc-on-v0.2.x
Switched to and reset branch 'makepkg'
-> Creating working copy of runc git repo...
Reset branch 'makepkg'
-> Creating working copy of libnetwork git repo...
Previous HEAD position was 7b2b1feb... Merge pull request #1617 from AkihiroSuda/cleanup
Switched to and reset branch 'makepkg'
==> Starting prepare()...
fatal: reference is not a tree: 0351df1c5a66838d0c392b4ac4cf9450de844e2d
==> ERROR: A failure occurred in prepare().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment