]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Facility for cross-building RocksJava using Docker rocksdb-5.3.5 v5.3.5
authorAdam Retter <adam.retter@googlemail.com>
Fri, 12 May 2017 18:23:14 +0000 (11:23 -0700)
committerSagar Vemuri <svemuri@fb.com>
Wed, 17 May 2017 17:47:09 +0000 (10:47 -0700)
commit783658a8e9651d3cd45b3c0c1a6d0f0aeab0fa8f
tree9aaa653e6d83a0eaaaee79875df429209516dc66
parentf08861fea2c782ecfba0cded0056e3ab25dffab7
Facility for cross-building RocksJava using Docker

Summary:
As an alternative to Vagrant, we can now also use Docker to cross-build RocksDB. The advantages are:

1. The Docker images are fixed; they include all the latest updates and build tools.
2. The Vagrant image, required scripts that ran for every build that would update CentOS and install the buildtools. This lead to slow repeatable builds, we don't need to do this with Docker as they are already in the provided images.

The Docker images I have used have their Docker build files here: https://github.com/evolvedbinary/docker-rocksjava and the images themselves are available from Docker hub: https://hub.docker.com/r/evolvedbinary/rocksjava/

I have added the following targets to the `Makefile`:
1. `rocksdbjavastaticreleasedocker` this uses Docker to perform the cross-builds. It is basically the Docker version of the existing Vagrant `rocksdbjavastaticrelease` target.
2. `rocksdbjavastaticpublishdocker` delegates to `rocksdbjavastaticreleasedocker` and then `rocksdbjavastaticpublishcentral` to upload the artiacts to Maven Central. Equivalent to the existing Vagrant target: `rocksdbjavastaticpublish`
Closes https://github.com/facebook/rocksdb/pull/2278

Differential Revision: D5048206

Pulled By: yiwu-arbug

fbshipit-source-id: 78fa96ef9d966fe09638ed01de282cd4e31961a9
Makefile
java/crossbuild/docker-build-linux-centos.sh [new file with mode: 0755]