chore(wheezy-build): using docker

Allow building all dependencies using docker
This commit is contained in:
Sebastian Thiel
2015-04-17 20:57:04 +02:00
parent 9ea3fea775
commit 5165ff68df
3 changed files with 16 additions and 3 deletions

5
.docker-build-cli.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
# For execution on docker build image only !
# make cargo-cli ARGS="build --release"
make discovery1-cli-cargo ARGS="build --release"
find gen -executable -type f -path "*/release/*" -not \( -name "*.*" -or -name "*script*" \) | xargs cp -v /build-result

2
.gitignore vendored
View File

@@ -1,5 +1,5 @@
.timestamp
.pyenv
.pyenv-*
.virtualenv
gen/doc/
*.go

View File

@@ -1,14 +1,16 @@
.PHONY: clean help deps regen-apis license
.PHONY: clean help deps regen-apis license ubuntu-build
.SUFFIXES:
VENV = .virtualenv/virtualenv.py
VENV_DIR := .pyenv
VENV_DIR := .pyenv-$(shell uname)
PYTHON := $(VENV_DIR)/bin/python
PIP := $(VENV_DIR)/bin/pip
MAKO_RENDER := etc/bin/mako-render
API_VERSION_GEN := etc/bin/api_version_to_yaml.py
TPL := $(PYTHON) $(MAKO_RENDER)
MKDOCS := $(shell pwd)/$(VENV_DIR)/bin/mkdocs
WHEEZY_IMAGE := byron/rust-binaries.nightly.debian-wheezy
WHEEZY_BUILD_OUTPUT := build/wheezy-x64
MAKO_SRC = src/mako
RUST_SRC = src/rust
@@ -40,6 +42,7 @@ help:
$(info help-cli - show all cli targets to build individually)
$(info docs-all - cargo-doc on all APIs and associates, assemble them together and generate index)
$(info docs-all-clean - remove the entire set of generated documentation)
$(info wheezy-build - build --release all CLI on ubuntu using docker)
$(info github-pages - invoke ghp-import on all documentation)
$(info regen-apis - clear out all generated apis, and regenerate them)
$(info license - regenerate the main license file)
@@ -76,6 +79,11 @@ LICENSE.md: $(MAKO_SRC)/LICENSE.md.mako $(API_SHARED_INFO) $(MAKO_RENDER)
license: LICENSE.md
wheezy-build:
@-rm -Rf WHEEZY_BUILD_OUTPUT
@mkdir -p $(WHEEZY_BUILD_OUTPUT)
docker run -v $(PWD):/source -v $(PWD)/$(WHEEZY_BUILD_OUTPUT):/build-result $(WHEEZY_IMAGE) /source/.docker-build-cli.sh
regen-apis: | clean-all-api clean-all-cli gen-all-api gen-all-cli license
clean: clean-all-api clean-all-cli