Commit dcb393fa authored by Daniele Venzano's avatar Daniele Venzano

Disable custom tensorflow, too many errors compiling

parent 2fabaf6d
......@@ -4,25 +4,25 @@ stages:
variables:
VERSION: $CI_BUILD_ID
standalone:
image: docker:latest
stage: deploy
before_script:
- mkdir -p /etc/docker/certs.d/$DOCKER_REGISTRY
- cp /registry-ca.crt /etc/docker/certs.d/$DOCKER_REGISTRY/ca.crt
- mkdir -p $HOME/.docker
- echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json
- apk update
- apk add python findutils bash curl
script:
- bash build_all.sh
- python gen_json_standalone.py
- bash validate_all.sh
artifacts:
paths:
- "*.json"
only:
- master
#standalone:
# image: docker:latest
# stage: deploy
# before_script:
# - mkdir -p /etc/docker/certs.d/$DOCKER_REGISTRY
# - cp /registry-ca.crt /etc/docker/certs.d/$DOCKER_REGISTRY/ca.crt
# - mkdir -p $HOME/.docker
# - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json
# - apk update
# - apk add python findutils bash curl
# script:
# - bash build_all.sh
# - python gen_json_standalone.py
# - bash validate_all.sh
# artifacts:
# paths:
# - "*.json"
# only:
# - master
google:
image: python:alpine
......
......@@ -8,8 +8,8 @@ ENV DEBIAN_FRONTEND noninteractive
# BASELINE
##################################################
RUN apt-get update && apt-get install -y --force-yes --no-install-recommends \
python-pip \
python-dev \
python3-pip \
python3-dev \
software-properties-common \
curl \
pkg-config \
......@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y --force-yes --no-install-recommends \
swig \
&& apt-get clean
RUN python -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pip
##################################################
# JAVA
......@@ -46,7 +46,7 @@ RUN apt-get upgrade -y --force-yes --no-install-recommends bazel
##################################################
# 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:
# https://github.com/bazelbuild/bazel/issues/134
......@@ -79,16 +79,16 @@ WORKDIR /tensorflow
# more difficult to experiment with local changes. Instead, just add
# 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 tensorflow/tools/ci_build/builds/configured CPU \
bazel build -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
tensorflow/tools/pip_package:build_pip_package && \
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 /root/.cache
# Clean up pip wheel and Bazel cache when done.
......@@ -105,7 +105,7 @@ RUN tensorflow/tools/ci_build/builds/configured CPU \
##################################################
# GPy
##################################################
RUN pip install --upgrade GPy paramz
RUN pip3 install --upgrade GPy paramz
##################################################
# GPFlow
......@@ -113,7 +113,7 @@ RUN pip install --upgrade GPy paramz
WORKDIR /opt
RUN git clone https://github.com/GPflow/GPflow.git
WORKDIR /opt/GPflow
RUN python setup.py install
RUN python3 setup.py install
##################################################
# 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