Commit dcb393fa authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Disable custom tensorflow, too many errors compiling

parent 2fabaf6d
Pipeline #4490 passed with stage
in 14 seconds
...@@ -4,25 +4,25 @@ stages: ...@@ -4,25 +4,25 @@ stages:
variables: variables:
VERSION: $CI_BUILD_ID VERSION: $CI_BUILD_ID
standalone: #standalone:
image: docker:latest # image: docker:latest
stage: deploy # stage: deploy
before_script: # before_script:
- mkdir -p /etc/docker/certs.d/$DOCKER_REGISTRY # - mkdir -p /etc/docker/certs.d/$DOCKER_REGISTRY
- cp /registry-ca.crt /etc/docker/certs.d/$DOCKER_REGISTRY/ca.crt # - cp /registry-ca.crt /etc/docker/certs.d/$DOCKER_REGISTRY/ca.crt
- mkdir -p $HOME/.docker # - mkdir -p $HOME/.docker
- echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json # - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json
- apk update # - apk update
- apk add python findutils bash curl # - apk add python findutils bash curl
script: # script:
- bash build_all.sh # - bash build_all.sh
- python gen_json_standalone.py # - python gen_json_standalone.py
- bash validate_all.sh # - bash validate_all.sh
artifacts: # artifacts:
paths: # paths:
- "*.json" # - "*.json"
only: # only:
- master # - master
google: google:
image: python:alpine image: python:alpine
......
...@@ -8,8 +8,8 @@ ENV DEBIAN_FRONTEND noninteractive ...@@ -8,8 +8,8 @@ ENV DEBIAN_FRONTEND noninteractive
# BASELINE # BASELINE
################################################## ##################################################
RUN apt-get update && apt-get install -y --force-yes --no-install-recommends \ RUN apt-get update && apt-get install -y --force-yes --no-install-recommends \
python-pip \ python3-pip \
python-dev \ python3-dev \
software-properties-common \ software-properties-common \
curl \ curl \
pkg-config \ pkg-config \
...@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y --force-yes --no-install-recommends \ ...@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y --force-yes --no-install-recommends \
swig \ swig \
&& apt-get clean && apt-get clean
RUN python -m pip install --upgrade pip RUN python3 -m pip install --upgrade pip
################################################## ##################################################
# JAVA # JAVA
...@@ -46,7 +46,7 @@ RUN apt-get upgrade -y --force-yes --no-install-recommends bazel ...@@ -46,7 +46,7 @@ RUN apt-get upgrade -y --force-yes --no-install-recommends bazel
################################################## ##################################################
# Make sure important packages are installed # Make sure important packages are installed
################################################## ##################################################
RUN pip install --upgrade numpy pandas matplotlib RUN pip3 install --upgrade numpy pandas matplotlib
# Running bazel inside a `docker build` command causes trouble, cf: # Running bazel inside a `docker build` command causes trouble, cf:
# https://github.com/bazelbuild/bazel/issues/134 # https://github.com/bazelbuild/bazel/issues/134
...@@ -79,16 +79,16 @@ WORKDIR /tensorflow ...@@ -79,16 +79,16 @@ WORKDIR /tensorflow
# more difficult to experiment with local changes. Instead, just add # more difficult to experiment with local changes. Instead, just add
# the built directory to the path. # the built directory to the path.
ENV CI_BUILD_PYTHON python ENV CI_BUILD_PYTHON python3
RUN pip --no-cache-dir install wheel RUN pip3 --no-cache-dir install wheel
RUN sed -i '\@https://github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz@d' tensorflow/workspace.bzl RUN sed -i '\@https://github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz@d' tensorflow/workspace.bzl
RUN tensorflow/tools/ci_build/builds/configured CPU \ RUN tensorflow/tools/ci_build/builds/configured CPU \
bazel build -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \ bazel build -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
tensorflow/tools/pip_package:build_pip_package && \ tensorflow/tools/pip_package:build_pip_package && \
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip && \ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip && \
pip --no-cache-dir install --upgrade /tmp/pip/tensorflow-*.whl && \ pip3 --no-cache-dir install --upgrade /tmp/pip/tensorflow-*.whl && \
rm -rf /tmp/pip && \ rm -rf /tmp/pip && \
rm -rf /root/.cache rm -rf /root/.cache
# Clean up pip wheel and Bazel cache when done. # Clean up pip wheel and Bazel cache when done.
...@@ -105,7 +105,7 @@ RUN tensorflow/tools/ci_build/builds/configured CPU \ ...@@ -105,7 +105,7 @@ RUN tensorflow/tools/ci_build/builds/configured CPU \
################################################## ##################################################
# GPy # GPy
################################################## ##################################################
RUN pip install --upgrade GPy paramz RUN pip3 install --upgrade GPy paramz
################################################## ##################################################
# GPFlow # GPFlow
...@@ -113,7 +113,7 @@ RUN pip install --upgrade GPy paramz ...@@ -113,7 +113,7 @@ RUN pip install --upgrade GPy paramz
WORKDIR /opt WORKDIR /opt
RUN git clone https://github.com/GPflow/GPflow.git RUN git clone https://github.com/GPflow/GPflow.git
WORKDIR /opt/GPflow WORKDIR /opt/GPflow
RUN python setup.py install RUN python3 setup.py install
################################################## ##################################################
# SETUP ZOE APP # SETUP ZOE APP
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment