-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate to a single tools/ow-utils docker image
Rather than defining separate images for running shell scripts, running ansible playbooks, running gradle tasks, etc. switch to an uber utility image that will include wsk, wsk-deploy, and all the software packages to execute our various scripting languages.
- Loading branch information
1 parent
de2663f
commit e410780
Showing
10 changed files
with
50 additions
and
123 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,41 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor | ||
# license agreements; and to You under the Apache License, Version 2.0. | ||
|
||
FROM adoptopenjdk/openjdk8:jdk8u191-b12 | ||
|
||
ENV DOCKER_VERSION 1.12.0 | ||
ENV WHISK_CLI_VERSION latest | ||
ENV WHISKDEPLOY_CLI_VERSION latest | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
libffi-dev \ | ||
nodejs \ | ||
npm \ | ||
python \ | ||
python-pip \ | ||
wget \ | ||
zip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Python packages | ||
RUN pip install --upgrade pip | ||
RUN pip install --upgrade setuptools | ||
RUN pip install ansible==2.5.2 | ||
RUN pip install jinja2==2.9.6 | ||
|
||
# Install docker client | ||
RUN wget --no-verbose https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION}.tgz && \ | ||
tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker && \ | ||
rm -f docker-${DOCKER_VERSION}.tgz && \ | ||
chmod +x /usr/bin/docker | ||
|
||
# # Install `wsk` cli in /usr/local/bin | ||
RUN wget -q https://github.com/apache/incubator-openwhisk-cli/releases/download/$WHISK_CLI_VERSION/OpenWhisk_CLI-$WHISK_CLI_VERSION-linux-amd64.tgz && \ | ||
tar xzf OpenWhisk_CLI-$WHISK_CLI_VERSION-linux-amd64.tgz -C /usr/local/bin wsk && \ | ||
rm OpenWhisk_CLI-$WHISK_CLI_VERSION-linux-amd64.tgz | ||
|
||
# # Install `wskdeploy` cli in /usr/local/bin | ||
RUN wget -q https://github.com/apache/incubator-openwhisk-wskdeploy/releases/download/$WHISKDEPLOY_CLI_VERSION/openwhisk_wskdeploy-$WHISKDEPLOY_CLI_VERSION-linux-amd64.tgz && \ | ||
tar xzf openwhisk_wskdeploy-$WHISK_CLI_VERSION-linux-amd64.tgz -C /usr/local/bin wskdeploy && \ | ||
rm openwhisk_wskdeploy-$WHISK_CLI_VERSION-linux-amd64.tgz |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.