mirror of https://github.com/grpc/grpc-node.git
Using docker...
This commit is contained in:
parent
0cf24ad004
commit
9345d4d0b5
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue