mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-28 21:25:55 +01:00
6d238f1948
Fix #19283 1. Bump up chromedriver version to 119.0.6045.105 2. Bump up containerd version to 1.7.8 3. Bump up docker compose version to 2.23.0 4. Bump up helm version to 3.13.1 5. Bump up ORSA version to 1.1.0 6. Bump up imgpkg version to 0.39.0 7. Bump up cosign version to 2.2.0 8. Add install notation 1.0.0 Signed-off-by: Yang Jiao <jiaoya@vmware.com>
70 lines
3.2 KiB
Docker
70 lines
3.2 KiB
Docker
FROM ubuntu:20.04 as tool_builder
|
|
ENV TZ=Asia/Shanghai \
|
|
DEBIAN_FRONTEND=noninteractive
|
|
ENV LANG C.UTF-8
|
|
WORKDIR /tool
|
|
|
|
#RUN tdnf install -y \
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
wget \
|
|
git \
|
|
tar \
|
|
#go
|
|
#ubuntu
|
|
curl \
|
|
libssl-dev \
|
|
uuid-dev
|
|
#ubuntu
|
|
RUN apt-get update && apt-get install -y software-properties-common && \
|
|
add-apt-repository -y ppa:longsleep/golang-backports && \
|
|
apt-get install -y golang-go
|
|
|
|
RUN pwd && mkdir /tool/binary && \
|
|
# Install CONTAINERD
|
|
CONTAINERD_VERSION=1.7.8 && \
|
|
wget https://github.com/containerd/containerd/releases/download/v$CONTAINERD_VERSION/containerd-$CONTAINERD_VERSION-linux-amd64.tar.gz && \
|
|
tar zxvf containerd-$CONTAINERD_VERSION-linux-amd64.tar.gz && \
|
|
cd bin && cp -f containerd ctr /tool/binary/ && \
|
|
# docker compose
|
|
curl -L "https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m)" -o /tool/binary/docker-compose && \
|
|
chmod +x /tool/binary/docker-compose && \
|
|
# Install helm
|
|
HELM_VERSION=3.13.1 && wget https://get.helm.sh/helm-v$HELM_VERSION-linux-amd64.tar.gz && \
|
|
tar zxvf helm-v$HELM_VERSION-linux-amd64.tar.gz && \
|
|
ls || pwd && \
|
|
mv linux-amd64/helm /tool/binary/helm && \
|
|
# Install ORAS
|
|
ORAS_VERSION=1.1.0 && curl -LO https://github.com/deislabs/oras/releases/download/v$ORAS_VERSION/oras_${ORAS_VERSION}_linux_amd64.tar.gz && \
|
|
mkdir -p oras-install/ && \
|
|
tar -zxf oras_${ORAS_VERSION}_*.tar.gz -C oras-install/ && \
|
|
mv oras-install/oras /tool/binary/ && \
|
|
# Install CNAB
|
|
CNAB_PATH=$(go env GOPATH)/src/github.com/cnabio && \
|
|
mkdir -p $CNAB_PATH && cd $CNAB_PATH && git clone https://github.com/cnabio/cnab-to-oci.git && \
|
|
cd cnab-to-oci && git checkout v0.4.0 && \
|
|
go list && \
|
|
make build && \
|
|
mv bin/cnab-to-oci /tool/binary/ && \
|
|
# Install DIND
|
|
DIND_COMMIT=3b5fac462d21ca164b3778647420016315289034 && \
|
|
wget "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind" -O /tool/binary/dind \
|
|
&& chmod +x /tool/binary/dind && \
|
|
# Install wasm-to-oci
|
|
WASM_TO_OCI_VERSION=0.1.2 && wget https://github.com/engineerd/wasm-to-oci/releases/download/v${WASM_TO_OCI_VERSION}/linux-amd64-wasm-to-oci && \
|
|
chmod +x linux-amd64-wasm-to-oci && mv linux-amd64-wasm-to-oci /tool/binary/wasm-to-oci && \
|
|
# Install imgpkg
|
|
IMGPKG_VERSION=0.39.0 && wget https://github.com/vmware-tanzu/carvel-imgpkg/releases/download/v$IMGPKG_VERSION/imgpkg-linux-amd64 && \
|
|
mv imgpkg-linux-amd64 /tool/binary/imgpkg && chmod +x /tool/binary/imgpkg && \
|
|
# Install cosign
|
|
COSIGN_VERSION=2.2.0 && wget https://github.com/sigstore/cosign/releases/download/v$COSIGN_VERSION/cosign-linux-amd64 && \
|
|
mv cosign-linux-amd64 /tool/binary/cosign && chmod +x /tool/binary/cosign && \
|
|
# # Install notation
|
|
NOTATION_VERSION=1.0.0 && wget https://github.com/notaryproject/notation/releases/download/v$NOTATION_VERSION/notation_${NOTATION_VERSION}_linux_amd64.tar.gz && \
|
|
tar zxvf notation_${NOTATION_VERSION}_linux_amd64.tar.gz && \
|
|
mv notation /tool/binary/notation && chmod +x /tool/binary/notation && \
|
|
pwd
|
|
|
|
RUN cd /tool/binary/ && tar czvf tools.tar.gz * && cp tools.tar.gz /tool
|
|
# --- End of base file ---
|