This repository has been archived by the owner on Aug 16, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OCF-75] dockerskeleton: Switch to CentOS 7
- Loading branch information
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
# Dockerfile for docker skeleton (useful for running blackbox binaries, scripts, or Python 3 actions) . | ||
FROM openwhisk/dockerskeleton:1.1.0 | ||
# Latest images from Mar 22nd | ||
FROM jboss/base@sha256:39bcf23f34ca58db0769121674d2a82aa4ea2ae9c956e280cb0ba1ef64c68b51 | ||
|
||
# OpenShift compatibility | ||
RUN chgrp -R 0 /actionProxy \ | ||
&& chmod -R g+rwX /actionProxy | ||
ARG OPENWHISK_RUNTIME_VERSION="dockerskeleton@1.2.0" | ||
|
||
ENV FLASK_PROXY_PORT 8080 | ||
|
||
USER root | ||
|
||
RUN yum -y --setopt=tsflags=nodocs install epel-release \ | ||
&& yum -y --setopt=tsflags=nodocs install python-pip \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum \ | ||
&& pip install --no-cache-dir gevent==1.2.1 flask==0.12 \ | ||
&& mkdir -p /action /actionProxy \ | ||
&& curl -sSL https://raw.githubusercontent.com/apache/incubator-openwhisk-runtime-docker/$OPENWHISK_RUNTIME_VERSION/core/actionProxy/actionproxy.py -o /actionProxy/actionproxy.py \ | ||
&& curl -sSL https://raw.githubusercontent.com/apache/incubator-openwhisk-runtime-docker/$OPENWHISK_RUNTIME_VERSION/core/actionProxy/stub.sh -o /action/exec \ | ||
&& chmod +x /action/exec \ | ||
&& for d in /action /actionProxy; do chown jboss:root -R $d; chmod -R g+rwX $d; done | ||
|
||
USER 1000 | ||
|
||
CMD ["/bin/bash", "-c", "cd /actionProxy && python -u actionproxy.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
echo "{\"activation_id\":\"${__OW_ACTIVATION_ID}\",\"action_name\":\"${__OW_ACTION_NAME}\",\"deadline\":\"${__OW_DEADLINE}\",\"api_key\":\"${__OW_API_KEY}\",\"api_host\":\"${__OW_API_HOST}\",\"namespace\":\"${__OW_NAMESPACE}\"}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters