Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Aug 2016 02:23:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211565] [PATCH] sysutils/docker-freebsd: update to "b1c37d2"
Message-ID:  <bug-211565-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211565

            Bug ID: 211565
           Summary: [PATCH] sysutils/docker-freebsd: update to "b1c37d2"
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kmoore@FreeBSD.org
          Reporter: egypcio@googlemail.com
             Flags: maintainer-feedback?(kmoore@FreeBSD.org)
          Assignee: kmoore@FreeBSD.org
          Keywords: patch

Created attachment 173262
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D173262&action=
=3Dedit
[PATCH] sysutils/docker-freebsd: update to "b1c37d2"

Docker for FreeBSD (https://github.com/kvasdopil/docker/tree/freebsd-compat,
tag b1c37d2) is being used for almost two weeks without any crash.

It's powering the server and client side of a 12.0-CURRENT/amd64 box used to
create, manipulate, and distribute FreeBSD Containers
(https://hub.docker.com/r/egypcio/freebsd).

Attached patch proposes an updates of the actual port (docker-freebsd-20150=
625,
tag 582db78) to a newer version based on current developer stable branch for
FreeBSD.

root@box:/usr/ports # svn info sysutils/docker-freebsd/
Path: sysutils/docker-freebsd
Working Copy Root Path: /usr/ports
URL: svn://svnmir.geo.freebsd.org/ports/head/sysutils/docker-freebsd
Relative URL: ^/head/sysutils/docker-freebsd
Repository Root: svn://svnmir.geo.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 419559
Node Kind: directory
Schedule: normal
Last Changed Author: amdmi3
Last Changed Rev: 415503
Last Changed Date: 2016-05-19 08:09:14 -0300 (Thu, 19 May 2016)

root@box:/usr/ports # svn patch
~egypcio/freebsd/ports/ports.HEAD.r419559.sysutils.docker-freebsd.patch
U         sysutils/docker-freebsd/Makefile
U         sysutils/docker-freebsd/distinfo

root@box:/usr/ports # make -C sysutils/docker-freebsd/ all reinstall clean
=3D=3D=3D>  License APACHE20 accepted by the user
=3D=3D=3D>   docker-freebsd-20150701 depends on file: /usr/local/sbin/pkg -=
 found
=3D=3D=3D> Fetching all distfiles required by docker-freebsd-20150701 for b=
uilding
=3D=3D=3D>  Extracting for docker-freebsd-20150701
=3D> SHA256 Checksum OK for kvasdopil-docker-20150701-b1c37d2_GH0.tar.gz.
=3D=3D=3D>  Patching for docker-freebsd-20150701
=3D=3D=3D>   docker-freebsd-20150701 depends on package: go>=3D1.4 - found
=3D=3D=3D>   docker-freebsd-20150701 depends on executable: bash - found
=3D=3D=3D>   docker-freebsd-20150701 depends on executable: sqlite3 - found
=3D=3D=3D>  Configuring for docker-freebsd-20150701
=3D=3D=3D>  Building for docker-freebsd-20150701
# WARNING! I don't seem to be running in the Docker container.
# The result of this command might be an incorrect build, and will not be
#   officially supported.
#
# Try this instead: make all
#

---> Making bundle: binary (in bundles/1.7.0-dev/binary)
Building:
/usr/ports/sysutils/docker-freebsd/work/docker-b1c37d2/bundles/1.7.0-dev/bi=
nary/docker-1.7.0-dev
Created binary:
/usr/ports/sysutils/docker-freebsd/work/docker-b1c37d2/bundles/1.7.0-dev/bi=
nary/docker-1.7.0-dev

=3D=3D=3D>  Staging for docker-freebsd-20150701
=3D=3D=3D>   docker-freebsd-20150701 depends on package: go>=3D1.4 - found
=3D=3D=3D>   docker-freebsd-20150701 depends on executable: bash - found
=3D=3D=3D>   docker-freebsd-20150701 depends on executable: sqlite3 - found
=3D=3D=3D>   Generating temporary packing list
install  -s -m 555
/usr/ports/sysutils/docker-freebsd/work/docker-b1c37d2/bundles/latest/binar=
y/docker
/usr/ports/sysutils/docker-freebsd/work/stage/usr/local/bin/
=3D=3D=3D=3D> Compressing man pages (compress-man)
=3D=3D=3D> Staging rc.d startup script(s)
=3D=3D=3D>  Installing for docker-freebsd-20150701
=3D=3D=3D>   docker-freebsd-20150701 depends on package: go>=3D1.4 - found
=3D=3D=3D>   docker-freebsd-20150701 depends on executable: bash - found
=3D=3D=3D>   docker-freebsd-20150701 depends on executable: sqlite3 - found
=3D=3D=3D>   Registering installation for docker-freebsd-20150701
Installing docker-freebsd-20150701...
Docker requires a bit of setup before usage.

You will need to create a ZFS dataset on /usr/docker

# zfs create -o mountpoint=3D/usr/docker <zroot>/docker

And lastly enable the docker daemon
# sysrc -f /etc/rc.conf docker_enable=3D"YES"
# service docker start

(WARNING)

Starting the docker service will also add the following PF rule:

nat on ${iface} from 172.17.0.0/16 to any -> (${iface})

Where $iface is the default NIC on the system, or the value
of $docker_nat_iface. This is for network connectivity to docker
containers in this early port. This should not be needed in future
versions of docker.

=3D=3D=3D>  Cleaning for docker-freebsd-20150701
root@box:/usr/ports # rehash=20

root@box:/usr/ports # docker version
Client version: 1.7.0-dev
Client API version: 1.19
Go version (client): go1.6.3
Git commit (client): b1c37d2
OS/Arch (client): freebsd/amd64
Server version: 1.7.0-dev
Server API version: 1.19
Go version (server): go1.6.3
Git commit (server): b1c37d2
OS/Arch (server): freebsd/amd64

root@box:/usr/ports # service docker stop
Stopping docker...
root@box:/usr/ports # service docker start
Starting docker...
kldload: can't load pf: module already loaded or in kernel

root@box:/usr/ports # pfctl -sn
nat on alc0 inet from 172.17.0.0/16 to any -> (alc0) round-robin

root@box:/usr/ports # docker images | grep freebsd
egypcio/freebsd    12.0-current    0eeb1c06039d    5 hours ago     276.7 MB
egypcio/freebsd    latest          0eeb1c06039d    5 hours ago     276.7 MB
egypcio/freebsd    11.0-beta3      253ff032525f    29 hours ago    350.2 MB
egypcio/freebsd    11.0-beta2      44b46583bb13    29 hours ago    349 MB
egypcio/freebsd    11.0-beta1      a2834e5e90e5    29 hours ago    349 MB
egypcio/freebsd    10.3-release    a98882e8c6f9    29 hours ago    247.5 MB
egypcio/freebsd    9.3-release     9f3f2b7eb0b5    29 hours ago    259.6 MB

root@box:/usr/ports # docker run egypcio/freebsd:10.3-release freebsd-versi=
on
-u
10.3-RELEASE

root@box:/usr/ports # docker run egypcio/freebsd:9.3-release pkg --version
1.8.7

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211565-13>