-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update all container tags with date and sha, upgrade all containers (#…
…9834) Signed-off-by: James Strong <[email protected]>
- Loading branch information
Showing
24 changed files
with
88 additions
and
66 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 |
---|---|---|
|
@@ -22,6 +22,7 @@ on: | |
required: false | ||
type: boolean | ||
|
||
|
||
permissions: | ||
contents: read | ||
|
||
|
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
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
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
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
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
# 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. | ||
|
||
ARG BASE_IMAGE | ||
ARG GOLANG_VERSION | ||
ARG ETCD_VERSION | ||
|
@@ -21,20 +20,37 @@ FROM registry.k8s.io/etcd:${ETCD_VERSION} as etcd | |
|
||
FROM ${BASE_IMAGE} | ||
|
||
ARG RESTY_CLI_VERSION | ||
ARG RESTY_CLI_SHA | ||
ARG LUAROCKS_VERSION | ||
ARG LUAROCKS_SHA | ||
ARG TARGETARCH | ||
ARG K8S_RELEASE | ||
ARG CHART_TESTING_VERSION | ||
ARG HELM_VERSION | ||
ARG YAMALE_VERSION | ||
ARG YAML_LINT_VERSION | ||
ARG GINKGO_VERSION | ||
ARG GOLINT_VERSION | ||
|
||
|
||
RUN set -eux; \ | ||
if [ -e /etc/nsswitch.conf ]; then \ | ||
grep '^hosts: files dns' /etc/nsswitch.conf; \ | ||
else \ | ||
echo 'hosts: files dns' > /etc/nsswitch.conf; \ | ||
fi | ||
|
||
|
||
COPY --from=GO /usr/local/go /usr/local/go | ||
ENV GOPATH /go | ||
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH | ||
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" | ||
|
||
COPY --from=etcd /usr/local/bin/etcd /usr/local/bin/etcd | ||
|
||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | ||
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | ||
|
||
RUN apk add --no-cache \ | ||
RUN apk update && apk upgrade && apk add --no-cache \ | ||
bash \ | ||
ca-certificates \ | ||
wget \ | ||
|
@@ -48,30 +64,23 @@ RUN apk add --no-cache \ | |
py-pip \ | ||
unzip \ | ||
openssl \ | ||
cfssl@testing | ||
|
||
ENV GOPATH /go | ||
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH | ||
|
||
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" | ||
|
||
RUN go install github.com/onsi/ginkgo/v2/[email protected] && go install golang.org/x/lint/golint@latest | ||
cfssl@testing \ | ||
curl \ | ||
tzdata \ | ||
libc6-compat | ||
|
||
ARG RESTY_CLI_VERSION | ||
ARG RESTY_CLI_SHA | ||
RUN go install -v github.com/onsi/ginkgo/v2/ginkgo@v${GINKGO_VERSION} \ | ||
&& go install golang.org/x/lint/golint@${GOLINT_VERSION} | ||
|
||
RUN wget -O /tmp/resty_cli.tgz \ | ||
RUN wget -qO /tmp/resty_cli.tgz \ | ||
https://github.com/openresty/resty-cli/archive/v${RESTY_CLI_VERSION}.tar.gz \ | ||
&& echo "${RESTY_CLI_SHA} */tmp/resty_cli.tgz" | sha256sum -c - \ | ||
&& tar -C /tmp -xzf /tmp/resty_cli.tgz \ | ||
&& mv /tmp/resty-cli-${RESTY_CLI_VERSION}/bin/* /usr/local/bin/ \ | ||
&& resty -V \ | ||
&& rm -rf /tmp/* | ||
|
||
ARG LUAROCKS_VERSION | ||
ARG LUAROCKS_SHA | ||
|
||
RUN wget -O /tmp/luarocks.tgz \ | ||
RUN wget -qO /tmp/luarocks.tgz \ | ||
https://github.com/luarocks/luarocks/archive/v${LUAROCKS_VERSION}.tar.gz \ | ||
&& echo "${LUAROCKS_SHA} */tmp/luarocks.tgz" | sha256sum -c - \ | ||
&& tar -C /tmp -xzf /tmp/luarocks.tgz \ | ||
|
@@ -82,48 +91,39 @@ RUN wget -O /tmp/luarocks.tgz \ | |
RUN luarocks install busted \ | ||
&& luarocks install luacheck | ||
|
||
ARG TARGETARCH | ||
|
||
ARG K8S_RELEASE | ||
|
||
RUN wget -O /usr/local/bin/kubectl \ | ||
RUN wget -qO /usr/local/bin/kubectl \ | ||
https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/${TARGETARCH}/kubectl \ | ||
&& chmod +x /usr/local/bin/kubectl | ||
|
||
RUN wget -O /usr/local/bin/kube-apiserver \ | ||
RUN wget -qO /usr/local/bin/kube-apiserver \ | ||
https://storage.googleapis.com/kubernetes-release/release/${K8S_RELEASE}/bin/linux/${TARGETARCH}/kube-apiserver \ | ||
&& chmod +x /usr/local/bin/kube-apiserver | ||
|
||
ARG CHART_TESTING_VERSION | ||
|
||
RUN wget -O /tmp/ct-${CHART_TESTING_VERSION}-linux-amd64.tar.gz \ | ||
https://github.com/helm/chart-testing/releases/download/v${CHART_TESTING_VERSION}/chart-testing_${CHART_TESTING_VERSION}_linux_amd64.tar.gz \ | ||
RUN wget -qO /tmp/ct-${CHART_TESTING_VERSION}-linux-${TARGETARCH}.tar.gz \ | ||
https://github.com/helm/chart-testing/releases/download/v${CHART_TESTING_VERSION}/chart-testing_${CHART_TESTING_VERSION}_linux_${TARGETARCH}.tar.gz \ | ||
&& mkdir -p /tmp/ct-download \ | ||
&& tar xzvf /tmp/ct-${CHART_TESTING_VERSION}-linux-amd64.tar.gz -C /tmp/ct-download \ | ||
&& rm /tmp/ct-${CHART_TESTING_VERSION}-linux-amd64.tar.gz \ | ||
&& tar xzvf /tmp/ct-${CHART_TESTING_VERSION}-linux-${TARGETARCH}.tar.gz -C /tmp/ct-download \ | ||
&& rm /tmp/ct-${CHART_TESTING_VERSION}-linux-${TARGETARCH}.tar.gz \ | ||
&& cp /tmp/ct-download/ct /usr/local/bin \ | ||
&& mkdir -p /etc/ct \ | ||
&& cp -R /tmp/ct-download/etc/* /etc/ct \ | ||
&& rm -rf /tmp/* | ||
|
||
RUN wget -O /usr/local/bin/lj-releng \ | ||
RUN wget -qO /usr/local/bin/lj-releng \ | ||
https://raw.githubusercontent.com/openresty/openresty-devel-utils/master/lj-releng \ | ||
&& chmod +x /usr/local/bin/lj-releng | ||
|
||
ARG HELM_VERSION | ||
|
||
RUN wget -O /tmp/helm.tgz \ | ||
https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz \ | ||
RUN wget -qO /tmp/helm.tgz \ | ||
https://get.helm.sh/helm-v${HELM_VERSION}-linux-${TARGETARCH}.tar.gz \ | ||
&& tar -C /tmp -xzf /tmp/helm.tgz \ | ||
&& cp /tmp/linux*/helm /usr/local/bin \ | ||
&& rm -rf /tmp/* | ||
|
||
# Install a YAML Linter | ||
ARG YAML_LINT_VERSION | ||
RUN pip install "yamllint==$YAML_LINT_VERSION" | ||
|
||
# Install Yamale YAML schema validator | ||
ARG YAMALE_VERSION | ||
RUN pip install "yamale==$YAMALE_VERSION" | ||
|
||
WORKDIR $GOPATH |
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
Oops, something went wrong.