-
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.
* Apply x86 protoc for m1 mac * Enable the Dockerfile suffix for m1 Mac * Enable the Dockerfile suffix for ow-utils * Choose zookeeper image according to the os architecture * Use the bitnami/etcd image that supports arm * Replace docker info API to cli command
- Loading branch information
Showing
10 changed files
with
150 additions
and
23 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 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 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,34 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# if you change version of openjsk, also update tools/github/setup.sh to download the corresponding jdk | ||
FROM arm64v8/eclipse-temurin:21.0.4_7-jdk-alpine | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
# Switch to the HTTPS endpoint for the apk repositories as per https://github.com/gliderlabs/docker-alpine/issues/184 | ||
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories | ||
RUN apk add --update sed curl bash && apk update && apk upgrade | ||
|
||
RUN mkdir /logs | ||
|
||
COPY transformEnvironment.sh / | ||
RUN chmod +x transformEnvironment.sh | ||
|
||
COPY copyJMXFiles.sh / | ||
RUN chmod +x copyJMXFiles.sh |
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 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,80 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
FROM arm64v8/eclipse-temurin:8u422-b05-jdk-noble | ||
|
||
ENV DOCKER_VERSION 1.12.0 | ||
ENV KUBECTL_VERSION v1.16.3 | ||
ENV WHISK_CLI_VERSION latest | ||
ENV WHISKDEPLOY_CLI_VERSION latest | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
jq \ | ||
libffi-dev \ | ||
nodejs \ | ||
npm \ | ||
python-is-python3 \ | ||
python3-pip \ | ||
python3-venv \ | ||
wget \ | ||
zip \ | ||
locales \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# update npm | ||
RUN npm install -g n && n stable && hash -r | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' | ||
|
||
WORKDIR /root | ||
|
||
RUN python -m venv .venv | ||
ENV PATH="/root/.venv/bin:$PATH" | ||
|
||
# Python packages | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install --upgrade setuptools | ||
RUN pip3 install cryptography && \ | ||
pip3 install ansible==2.5.2 && \ | ||
pip3 install jinja2==2.9.6 && \ | ||
pip3 install docker | ||
|
||
# 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 kubectl in /usr/local/bin | ||
RUN curl -Lo ./kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && chmod +x kubectl && mv kubectl /usr/local/bin/kubectl | ||
|
||
# Install `wsk` cli in /usr/local/bin | ||
RUN wget -q https://github.com/apache/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 wskadmin in /bin | ||
COPY wskutil.py /bin | ||
COPY wskprop.py /bin | ||
COPY wskadmin /bin | ||
|
||
# Setup tools/data for certificate generation (used by openwhisk-deploy-kube) | ||
RUN mkdir /cert-gen | ||
COPY openwhisk-server-key.pem /cert-gen | ||
COPY genssl.sh /usr/local/bin/ |
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