You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/07/08 23:54:26 UTC
[GitHub] jonpspri opened a new pull request #243: Adding provisions for building s390x (Linux on Z) images of openwhisk-apigateway
jonpspri opened a new pull request #243: Adding provisions for building s390x (Linux on Z) images of openwhisk-apigateway
URL: https://github.com/apache/incubator-openwhisk-apigateway/pull/243
As a subcategory of work I'm doing to deploy a working OpenWhisk on Linux on Z (s390x) architecture, I've recently forked the openwhisk-apigateway platform and edited its Dockerfile so it would build an image cleanly on s390x.
I've yet to execute test suites against the image, but it does build cleanly and start cleanly from the openwhisk ansible scripts. The approach I took was to use M4 macro processor to make adjustments where needed for the s390x architecture:
1. The alpine:3.6 images needs to come from the s390x user ID (which is the biggest problem with Docker, IMO)
2. LuaJIT has to be build for Linux on Z outside of the version that ships with OpenRESTY.
3. The JIT option is not available for Linu on Z for PCRE (to the best of my knowledge and Google ability)
4. To avoid more compiling debugging, I used APK to acquire JQ and dumb-init.
5. Optimizations of the APK and Git downloads to reduce load on storage and cache management woes (apk --no-cache and curl piping directly to tar).
I've included a build_image.sh script to show how the Dockerfile.m4 is processed; I haven't completely thought through how to make that ready for prime-time, but I'm sure there will be feedback anyway.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services