2016-05-26 01:06:12 +02:00
|
|
|
# Description: An open platform for distributed applications for developers and sysadmins
|
2017-10-09 18:15:42 +02:00
|
|
|
# URL: https://www.docker.com/community-edition
|
2016-05-26 01:06:12 +02:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
# Depends on: containerd runc btrfs-progs cgroupfs-mount
|
2014-02-11 16:24:08 +01:00
|
|
|
|
|
|
|
name=docker
|
2024-01-25 05:48:34 +01:00
|
|
|
version=25.0.1
|
2023-09-09 06:59:11 +02:00
|
|
|
release=1
|
2021-01-26 21:45:56 +01:00
|
|
|
source=(https://github.com/moby/moby/archive/v${version}/moby-${version}.tar.gz \
|
|
|
|
https://github.com/docker/cli/archive/v${version}/cli-${version}.tar.gz \
|
2023-10-30 16:43:19 +01:00
|
|
|
http://crux.nu/files/$name-man-pages-$version.tar.xz \
|
2023-01-23 22:25:18 +01:00
|
|
|
$name.rc $name.conf)
|
2014-02-11 16:24:08 +01:00
|
|
|
|
|
|
|
build() {
|
2021-03-13 20:07:13 +01:00
|
|
|
export GO111MODULE=auto
|
2017-10-09 18:15:42 +02:00
|
|
|
export GOPATH=$SRC
|
2024-01-25 05:48:34 +01:00
|
|
|
export DOCKER_GITCOMMIT=71fa3ab
|
2017-05-11 18:38:53 +02:00
|
|
|
export DOCKER_BUILDTAGS='seccomp'
|
2017-10-09 18:15:42 +02:00
|
|
|
export DISABLE_WARN_OUTSIDE_CONTAINER=1
|
2023-02-28 02:10:46 +01:00
|
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
|
|
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"
|
2017-10-09 18:15:42 +02:00
|
|
|
|
|
|
|
mkdir -p src/github.com/docker
|
|
|
|
|
|
|
|
pushd src/github.com/docker
|
2021-01-26 21:45:56 +01:00
|
|
|
ln -s $SRC/cli-$version cli
|
2017-10-09 18:15:42 +02:00
|
|
|
pushd cli
|
2023-02-28 02:10:46 +01:00
|
|
|
make VERSION=$version GITCOMMIT=${DOCKER_GITCOMMIT} dynbinary
|
2017-10-09 18:15:42 +02:00
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd src/github.com/docker
|
2021-01-26 21:45:56 +01:00
|
|
|
ln -s $SRC/moby-$version docker
|
|
|
|
pushd docker
|
2018-08-28 18:44:06 +02:00
|
|
|
VERSION=$version hack/make.sh dynbinary
|
2017-10-09 18:15:42 +02:00
|
|
|
popd
|
|
|
|
popd
|
2014-02-11 16:24:08 +01:00
|
|
|
|
2021-01-26 21:45:56 +01:00
|
|
|
install -D -m 0755 cli-$version/build/$name $PKG/usr/bin/$name
|
2023-02-03 01:30:59 +01:00
|
|
|
install -D -m 0755 moby-$version/bundles/dynbinary-daemon/dockerd \
|
2016-11-20 21:37:31 +01:00
|
|
|
$PKG/usr/bin/dockerd
|
2023-06-03 23:08:49 +02:00
|
|
|
install -D -m 0755 moby-$version/bundles/dynbinary-daemon/docker-proxy \
|
|
|
|
$PKG/usr/bin/docker-proxy
|
2017-01-30 06:00:23 +01:00
|
|
|
|
2016-05-26 01:06:12 +02:00
|
|
|
for M in 1 5 8; do
|
|
|
|
install -d -m 0755 $PKG/usr/share/man/man${M}
|
|
|
|
install -m 0644 $SRC/man${M}/* $PKG/usr/share/man/man${M}/
|
|
|
|
done
|
2014-02-11 16:24:08 +01:00
|
|
|
|
2016-05-26 01:06:12 +02:00
|
|
|
install -D -m 0755 $SRC/$name.rc \
|
|
|
|
$PKG/etc/rc.d/$name
|
2016-05-31 06:13:03 +02:00
|
|
|
install -D -m 0644 $SRC/$name.conf \
|
|
|
|
$PKG/etc/$name.conf
|
2014-05-23 11:28:51 +02:00
|
|
|
|
2016-05-26 01:06:12 +02:00
|
|
|
ln -s containerd $PKG/usr/bin/docker-containerd
|
|
|
|
ln -s containerd-shim $PKG/usr/bin/docker-containerd-shim
|
|
|
|
ln -s ctr $PKG/usr/bin/docker-containerd-ctr
|
|
|
|
ln -s runc $PKG/usr/bin/docker-runc
|
2014-04-22 04:29:18 +02:00
|
|
|
|
2021-01-26 21:45:56 +01:00
|
|
|
install -D -m 0755 moby-$version/contrib/check-config.sh \
|
2016-05-26 01:06:12 +02:00
|
|
|
$PKG/usr/share/$name/check-config.sh
|
2021-01-26 21:45:56 +01:00
|
|
|
install -D -m 0644 moby-$version/contrib/udev/80-$name.rules \
|
2016-05-26 01:06:12 +02:00
|
|
|
$PKG/etc/udev/rules.d/80-$name.rules
|
2021-01-26 21:45:56 +01:00
|
|
|
install -D -m 0644 cli-$version/contrib/completion/bash/docker \
|
2016-05-26 01:06:12 +02:00
|
|
|
$PKG/etc/bash_completion.d/docker
|
2023-08-21 20:46:05 +02:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib/docker/cli-plugins
|
2014-02-11 16:24:08 +01:00
|
|
|
}
|