Adjust cli-plugins path
This commit is contained in:
		
							parent
							
								
									a5750b2c38
								
							
						
					
					
						commit
						15868290ac
					
				|  | @ -153,10 +153,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
| RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
|     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ |     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ | ||||||
|     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ |     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ | ||||||
|     && mkdir -p /usr/local/lib/docker/cli-plugins \ |     && mkdir -p /usr/libexec/docker/cli-plugins \ | ||||||
|     && curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \ |     && curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \ | ||||||
|         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ |         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ | ||||||
|     && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx |     && chmod +x /usr/libexec/docker/cli-plugins/docker-buildx | ||||||
| 
 | 
 | ||||||
| # Create folder structure here to avoid permission issues | # Create folder structure here to avoid permission issues | ||||||
| # when mounting the daemon.json file from a configmap. | # when mounting the daemon.json file from a configmap. | ||||||
|  |  | ||||||
|  | @ -131,10 +131,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
| RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
|     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ |     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ | ||||||
|     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ |     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ | ||||||
|     && mkdir -p /usr/local/lib/docker/cli-plugins \ |     && mkdir -p /usr/libexec/docker/cli-plugins \ | ||||||
|     && curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \ |     && curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \ | ||||||
|         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ |         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ | ||||||
|     && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx |     && chmod +x /usr/libexec/docker/cli-plugins/docker-buildx | ||||||
| 
 | 
 | ||||||
| # Create folder structure here to avoid permission issues | # Create folder structure here to avoid permission issues | ||||||
| # when mounting the daemon.json file from a configmap. | # when mounting the daemon.json file from a configmap. | ||||||
|  |  | ||||||
|  | @ -120,10 +120,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
| RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
|     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ |     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ | ||||||
|     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ |     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ | ||||||
|     && mkdir -p /usr/local/lib/docker/cli-plugins \ |     && mkdir -p /usr/libexec/docker/cli-plugins \ | ||||||
|     && curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \ |     && curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \ | ||||||
|         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ |         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ | ||||||
|     && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx |     && chmod +x /usr/libexec/docker/cli-plugins/docker-buildx | ||||||
| 
 | 
 | ||||||
| # We place the scripts in `/usr/bin` so that users who extend this image can | # We place the scripts in `/usr/bin` so that users who extend this image can | ||||||
| # override them with scripts of the same name placed in `/usr/local/bin`. | # override them with scripts of the same name placed in `/usr/local/bin`. | ||||||
|  |  | ||||||
|  | @ -96,10 +96,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
| RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
|     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ |     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ | ||||||
|     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ |     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ | ||||||
|     && mkdir -p /usr/local/lib/docker/cli-plugins \ |     && mkdir -p /usr/libexec/docker/cli-plugins \ | ||||||
|     && curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \ |     && curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \ | ||||||
|         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ |         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ | ||||||
|     && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx |     && chmod +x /usr/libexec/docker/cli-plugins/docker-buildx | ||||||
| 
 | 
 | ||||||
| # We place the scripts in `/usr/bin` so that users who extend this image can | # We place the scripts in `/usr/bin` so that users who extend this image can | ||||||
| # override them with scripts of the same name placed in `/usr/local/bin`. | # override them with scripts of the same name placed in `/usr/local/bin`. | ||||||
|  |  | ||||||
|  | @ -117,10 +117,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
| RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
|     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ |     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ | ||||||
|     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ |     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ | ||||||
|     && mkdir -p /usr/local/lib/docker/cli-plugins \ |     && mkdir -p /usr/libexec/docker/cli-plugins \ | ||||||
|     && curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \ |     && curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \ | ||||||
|         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ |         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ | ||||||
|     && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx |     && chmod +x /usr/libexec/docker/cli-plugins/docker-buildx | ||||||
| 
 | 
 | ||||||
| # We place the scripts in `/usr/bin` so that users who extend this image can | # We place the scripts in `/usr/bin` so that users who extend this image can | ||||||
| # override them with scripts of the same name placed in `/usr/local/bin`. | # override them with scripts of the same name placed in `/usr/local/bin`. | ||||||
|  |  | ||||||
|  | @ -94,10 +94,10 @@ RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
| RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | RUN export ARCH=$(echo ${TARGETPLATFORM} | cut -d / -f2) \ | ||||||
|     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ |     && if [ "$ARCH" = "arm64" ]; then export ARCH=aarch64 ; fi \ | ||||||
|     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ |     && if [ "$ARCH" = "amd64" ] || [ "$ARCH" = "i386" ]; then export ARCH=x86_64 ; fi \ | ||||||
|     && mkdir -p /usr/local/lib/docker/cli-plugins \ |     && mkdir -p /usr/libexec/docker/cli-plugins \ | ||||||
|     && curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \ |     && curl -fLo /usr/libexec/docker/cli-plugins/docker-buildx \ | ||||||
|         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ |         "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${ARCH}" \ | ||||||
|     && chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx |     && chmod +x /usr/libexec/docker/cli-plugins/docker-buildx | ||||||
| 
 | 
 | ||||||
| # We place the scripts in `/usr/bin` so that users who extend this image can | # We place the scripts in `/usr/bin` so that users who extend this image can | ||||||
| # override them with scripts of the same name placed in `/usr/local/bin`. | # override them with scripts of the same name placed in `/usr/local/bin`. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue