Commit Graph
23 Commits
Author SHA1 Message Date
Bassam Tabbara cbacbe957d build: cleanup working directories and mac build
centralized all working directories at .work in the root of the tree.  also centralize all download directories to .download at the root of the tree.

cleaned up the rsync behavior between host and docker cross build when running on non-linux host.
2017-04-04 17:02:25 -07:00
Bassam Tabbara 59f5815115 build: support for promoting a build
support for build promotion. For example, make promote CHANNEL=alpha VERISON=v0.4.0, will push the v0.4.0 bits to the alpha channel.
2017-04-04 17:02:25 -07:00
Bassam Tabbara 1179e45334 build: upload build artifacts to S3
we now publish build artifacts to an S3 bucket, by default
its release.rook.io. We no longer push bits to github on
make publish.

Added support for AWS cli in the cross-build container.
2017-04-04 17:01:39 -07:00
Bassam Tabbara 223b3852d3 build: fix docker config bind mount 2017-03-07 15:25:12 -08:00
Bassam Tabbara 82b139ec69 build: simplify Jenkinsfile 2017-03-07 15:25:12 -08:00
Bassam Tabbara 6e84b161fa build: separate externals into their own project
Move external packages including ceph into a separate project under
the externals subdir.
2017-03-06 14:51:32 -08:00
Bassam Tabbara 75523ccb17 build: add support debug builds and backtraces
we now build with debug information on linux even for release builds. Debug
information is save in a separate .debug file that can be loaded by gdb.

switched to using the golangs's facilities for cgo backtraces. had to add
C++ demangling to it but its now on par with the default backtrace facility
that ceph had. This approach works with static builds and relies on the
symbol table alone -- no need for rdynamic or DWARF sections in the binary.

Update the build container so that all packages now build with debug, also
fixed zlib package which had a broken link.

Fixes #135
2017-02-09 19:52:27 -08:00
Bassam Tabbara 0db5404fa9 build: fix bin bind mount 2017-02-09 17:06:02 -08:00
Bassam Tabbara d4c5ccf621 build: fix incremental build on linux
the go pkg directory was not bind mounted and resulted
in lots of rebuilds.
2017-01-23 15:04:30 -08:00
Bassam Tabbara e8d1470310 build: build more packages from source
we now build all the required packages for rookd from source. also
reorganized the external project a bit to support this.

Removed STATIC makefile option and replaced with LINKMODE
2016-12-12 17:21:52 -05:00
Bassam Tabbara 03b82d5744 build: improve speed of rsync on exit
we were starting the container and stopping it twice to rsync two dirs. with this fix only one start/stop happens.
2016-11-18 20:19:40 -08:00
Bassam Tabbara 29f6834592 build: support concurrent runs of build/run
concurrent runs of build/run are now supported. This is mostly
to benefit jenkins scenarios. removed the need to name containers
and also refactored the rsync path.

Fixes #202
2016-11-17 21:43:40 -08:00
Bassam Tabbara daa9363b53 build: remove ccache dependency on host 2016-11-15 11:32:03 -08:00
Bassam Tabbara fa8980197f build: rsync vendor directory back to host
This works around the issue of bind mounting the vendor directory which does not work with glide. Fixes #93
2016-11-14 21:20:04 -08:00
Bassam Tabbara 06a9389eb5 build: fix permission issues in cross-build
fix permission issues when running in the cross-build container. on the mac now we use the correct uid and gid.
2016-11-14 12:54:02 -08:00
Bassam Tabbara b3c4f18c89 initial docs and licensing 2016-11-07 17:13:39 -08:00
Bassam Tabbara 4936587b94 go import fixes 2016-10-26 00:38:39 +02:00
Bassam Tabbara de18ae8cdd fix permissions for vendor directory 2016-10-18 21:32:21 -07:00
Bassam Tabbara d7c9d41f04 use rsync to speedup build on macOS
we know use rsync to sync sources to the build container
and avoid osxfs which is painfully slow. the macOS/docker
build now is on par with linux builds
2016-10-18 17:55:36 -07:00
Bassam Tabbara c7c64f83a5 improve support for building on the macOS
numerous path fixes in makefiles.

now using a cross-build volume for docker to avoid running heavy I/O paths on docker's osxfs which is super slow.
2016-10-17 10:43:23 -07:00
Bassam Tabbara c89025c913 upload container to quay.io
upload our containers to quay.io where they are automatically
converted to ACIs for use by rkt. Partially addresses #50

remove github-release as it was being flaky.
2016-10-12 21:17:20 -07:00
Bassam Tabbara 76666ba508 support for release builds
This commit adds support for build release artifacts and
publishing them. Currently we support binaries that are published
to github release, docker containers that go to hub.docker.com,
and rkt ACIs (which are not currently published).
2016-10-12 10:34:16 -07:00
Bassam Tabbara 0c30d20386 Simplify Makefile to support cross compiling
Makefile has been simplified to take advantage of incremental
build support in golang, and to setup for cross compiling.
2016-10-10 15:35:38 -07:00