This is an automated email from the ASF dual-hosted git repository. markusthoemmes pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push: new 5f4568c Fix build break of Swift 3 action container image (#2811) 5f4568c is described below commit 5f4568cdc0d130813544299885448211784f8200 Author: Sven Lange-Last <sven.lange-l...@de.ibm.com> AuthorDate: Thu Sep 28 13:09:16 2017 +0200 Fix build break of Swift 3 action container image (#2811) Work around missing github repo by basing the Swift 3 action container image on a known-to-work image available on public DockerHub: https://hub.docker.com/r/openwhisk/swift3action/. With this approach, the actual Docker build of the image won't be kicked off any more but an existing image will be pulled and used. Since 2017-09-28 morning CEST, github repo https://github.com/IBM-Swift/swift-watson-sdk.git is no more available causing a build break. The Swift 3.1.1 action container image already addresses this problem by no more using the deprecated prereq. The Swift 3 action container image must either be fixed or removed. --- core/swift3Action/Dockerfile | 69 ++++---------------------------------------- 1 file changed, 5 insertions(+), 64 deletions(-) diff --git a/core/swift3Action/Dockerfile b/core/swift3Action/Dockerfile index aa766d4..4f44e9e 100644 --- a/core/swift3Action/Dockerfile +++ b/core/swift3Action/Dockerfile @@ -1,68 +1,9 @@ # Dockerfile for swift actions, overrides and extends ActionRunner from actionProxy # This Dockerfile is partially based on: https://github.com/swiftdocker/docker-swift/ -FROM buildpack-deps:trusty -ENV DEBIAN_FRONTEND noninteractive +# Temporarily disable Swift3 action container image build because it causes a build break. +# It has a dependency on https://github.com/IBM-Swift/swift-watson-sdk.git +# which is no more available. +# Just base on a fixed version which is available on public DockerHub -# Upgrade and install basic Python dependencies -RUN apt-get -y purge \ - && apt-get -y update \ - && apt-get -y install --fix-missing python2.7 python-gevent python-flask \ -\ -# Upgrade and install Swift dependencies - && apt-get -y install --fix-missing build-essential curl wget libicu-dev \ -\ -# Install zip for compiling Swift actions - && apt-get -y install zip \ -\ -# Clean up - && apt-get clean - -# Install clang manually, since SPM wants at least Clang 3-6 -RUN cd / &&\ -(curl -L -k http://llvm.org/releases/3.6.2/clang+llvm-3.6.2-x86_64-linux-gnu-ubuntu-14.04.tar.xz | tar xJ) &&\ -cp -r /clang+llvm-3.6.2-x86_64-linux-gnu-ubuntu-14.04/* /usr/ &&\ -rm -rf /clang+llvm-3.6.2-x86_64-linux-gnu-ubuntu-14.04 - -RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/clang++ 20 -RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang 20 - -# Install Swift keys -RUN wget --no-verbose -O - https://swift.org/keys/all-keys.asc | gpg --import - && \ - gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift - -# Install Swift Ubuntu 14.04 Snapshot -#https://swift.org/builds/swift-3.0.1-release/ubuntu1404/swift-3.0.1-RELEASE/swift-3.0.1-RELEASE-ubuntu14.04.tar.gz - -ENV SWIFT_VERSION 3.0.2 -ENV SWIFT_RELEASE_TYPE RELEASE -ENV SWIFT_PLATFORM ubuntu14.04 - -RUN SWIFT_ARCHIVE_NAME=swift-$SWIFT_VERSION-$SWIFT_RELEASE_TYPE-$SWIFT_PLATFORM && \ - SWIFT_URL=https://swift.org/builds/swift-$SWIFT_VERSION-$(echo "$SWIFT_RELEASE_TYPE" | tr '[:upper:]' '[:lower:]')/$(echo "$SWIFT_PLATFORM" | tr -d .)/swift-$SWIFT_VERSION-$SWIFT_RELEASE_TYPE/$SWIFT_ARCHIVE_NAME.tar.gz && \ - echo $SWIFT_URL && \ - wget --no-verbose $SWIFT_URL && \ - wget --no-verbose $SWIFT_URL.sig && \ - gpg --verify $SWIFT_ARCHIVE_NAME.tar.gz.sig && \ - tar -xzf $SWIFT_ARCHIVE_NAME.tar.gz --directory / --strip-components=1 && \ - rm -rf $SWIFT_ARCHIVE_NAME* /tmp/* /var/tmp/* - -# Add the action proxy -RUN mkdir -p /actionProxy -ADD actionproxy.py /actionProxy - -# Add files needed to build and run action -RUN mkdir -p /swift3Action -ADD epilogue.swift /swift3Action -ADD buildandrecord.py /swift3Action -ADD swift3runner.py /swift3Action -ADD spm-build /swift3Action/spm-build - - -# Build kitura net -RUN touch /swift3Action/spm-build/main.swift -RUN python /swift3Action/buildandrecord.py && rm /swift3Action/spm-build/.build/release/Action -#RUN cd /swift3Action/spm-build; swift build -c release; rm /swift3Action/spm-build/.build/release/Action -ENV FLASK_PROXY_PORT 8080 - -CMD ["/bin/bash", "-c", "cd /swift3Action && PYTHONIOENCODING='utf-8' python -u swift3runner.py"] \ No newline at end of file +FROM openwhisk/swift3action:03023a1 \ No newline at end of file -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].