Using docker...

This commit is contained in:
Nicolas "Pixel" Noble 2018-05-11 00:16:09 +02:00
parent 0cf24ad004
commit 9345d4d0b5
3 changed files with 19 additions and 3 deletions

View File

@ -13,6 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install 10
nvm use 10
npm install -g npm
# https://github.com/mapbox/node-pre-gyp/issues/362
npm install -g node-gyp
set -ex
cd $(dirname $0)

View File

@ -38,9 +38,8 @@ OS=`uname`
case $OS in
Linux)
sudo apt-get update
sudo apt-get install -y linux-libc-dev:i386 g++-aarch64-linux-gnu g++-arm-linux-gnueabihf
./packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh
docker build -t kokoro-image tools/release/kokoro
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $base_dir:$base_dir kokoro-image $base_dir/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh
mv packages/grpc-native-core/artifacts .
;;
Darwin)

View File

@ -0,0 +1,10 @@
FROM ubuntu:16.04
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y curl build-essential g++-aarch64-linux-gnu g++-arm-linux-gnueabihf docker.io python libc6-dev:i386 lib32stdc++-5-dev
RUN mkdir /usr/local/nvm
ENV NVM_DIR /usr/local/nvm
RUN curl curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash