• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/docker-engine/docker-engine.mk
Christian StewartChristian Stewart committed 5d5b92f229a18 Apr 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
################################################################################
#
# docker-engine
#
################################################################################
​
DOCKER_ENGINE_VERSION = v17.04.0-ce
DOCKER_ENGINE_COMMIT = 4845c567eb35d68f35b0b1713a09b0c8d47fe67e
DOCKER_ENGINE_SITE = $(call github,docker,docker,$(DOCKER_ENGINE_VERSION))
​
DOCKER_ENGINE_LICENSE = Apache-2.0
DOCKER_ENGINE_LICENSE_FILES = LICENSE
​
DOCKER_ENGINE_DEPENDENCIES = host-go host-pkgconf
​
DOCKER_ENGINE_GOPATH = "$(@D)/gopath"
DOCKER_ENGINE_MAKE_ENV = $(HOST_GO_TARGET_ENV) \
    CGO_ENABLED=1 \
    CGO_NO_EMULATION=1 \
    GOBIN="$(@D)/bin" \
    GOPATH="$(DOCKER_ENGINE_GOPATH)" \
    PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
    $(TARGET_MAKE_ENV)
​
DOCKER_ENGINE_GLDFLAGS = \
    -X main.GitCommit=$(DOCKER_ENGINE_VERSION) \
    -X main.Version=$(DOCKER_ENGINE_VERSION)
​
ifeq ($(BR2_STATIC_LIBS),y)
DOCKER_ENGINE_GLDFLAGS += -extldflags '-static'
else
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_STATIC_CLIENT),y)
DOCKER_ENGINE_GLDFLAGS_DOCKER += -extldflags '-static'
endif
endif
​
DOCKER_ENGINE_BUILD_TAGS = cgo exclude_graphdriver_zfs autogen
DOCKER_ENGINE_BUILD_TARGETS = docker
​
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
DOCKER_ENGINE_BUILD_TAGS += seccomp
DOCKER_ENGINE_DEPENDENCIES += libseccomp
endif
​
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DAEMON),y)
DOCKER_ENGINE_BUILD_TAGS += daemon
DOCKER_ENGINE_BUILD_TARGETS += dockerd
endif
​
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_EXPERIMENTAL),y)
DOCKER_ENGINE_BUILD_TAGS += experimental
endif
​
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_BTRFS),y)
DOCKER_ENGINE_DEPENDENCIES += btrfs-progs
else
DOCKER_ENGINE_BUILD_TAGS += exclude_graphdriver_btrfs
endif
​
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_DEVICEMAPPER),y)
DOCKER_ENGINE_DEPENDENCIES += lvm2
else
DOCKER_ENGINE_BUILD_TAGS += exclude_graphdriver_devicemapper
endif
​
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DRIVER_VFS),y)
DOCKER_ENGINE_DEPENDENCIES += gvfs
else
DOCKER_ENGINE_BUILD_TAGS += exclude_graphdriver_vfs
endif
​
define DOCKER_ENGINE_CONFIGURE_CMDS
    mkdir -p $(DOCKER_ENGINE_GOPATH)/src/github.com/docker
    ln -fs $(@D) $(DOCKER_ENGINE_GOPATH)/src/github.com/docker/docker
    cd $(@D) && \
        GITCOMMIT="$$(echo $(DOCKER_ENGINE_COMMIT) | head -c7)" \
        BUILDTIME="$$(date)" \
        VERSION="$(patsubst v%,%,$(DOCKER_ENGINE_VERSION))" \
        PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" $(TARGET_MAKE_ENV) \
        bash ./hack/make/.go-autogen
endef
​
ifeq ($(BR2_PACKAGE_DOCKER_ENGINE_DAEMON),y)
​
define DOCKER_ENGINE_INSTALL_INIT_SYSTEMD
    $(INSTALL) -D -m 0644 $(@D)/contrib/init/systemd/docker.service \
        $(TARGET_DIR)/usr/lib/systemd/system/docker.service
    $(INSTALL) -D -m 0644 $(@D)/contrib/init/systemd/docker.socket \
        $(TARGET_DIR)/usr/lib/systemd/system/docker.socket
    mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/
    ln -fs ../../../../usr/lib/systemd/system/docker.service \
        $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/docker.service
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.