Add docker images #5
							
								
								
									
										1
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
target
 | 
			
		||||
							
								
								
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
FROM rust:1.66.1-alpine3.17 as builder
 | 
			
		||||
WORKDIR /src
 | 
			
		||||
RUN apk update && apk add --no-cache gcc musl-dev
 | 
			
		||||
COPY ./ .
 | 
			
		||||
RUN cargo build --release
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM alpine:3.17.1
 | 
			
		||||
COPY --from=builder /src/target/release/cdh /bin/cdh
 | 
			
		||||
WORKDIR /workdir
 | 
			
		||||
ENTRYPOINT ["/bin/cdh"]
 | 
			
		||||
							
								
								
									
										16
									
								
								Dockerfile-helmfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Dockerfile-helmfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
FROM alpine:3.17.1
 | 
			
		||||
ARG HELM_VERSION=3.10.3
 | 
			
		||||
ARG HELMFILE_VERSION=0.150.0
 | 
			
		||||
 | 
			
		||||
ARG HELM_LINK=https://get.helm.sh/helm-v$HELM_VERSION-linux-$PLATFORM.tar.gz
 | 
			
		||||
ARG HELMFILE_LINK=https://github.com/helmfile/helmfile/releases/download/v$HELMFILE_VERSION/helmfile_$HELMFILE_VERSION_linux_\$PLATFORM.tar.gz
 | 
			
		||||
 | 
			
		||||
RUN apk update && apk add --no-cache curl
 | 
			
		||||
COPY ./scripts /tmp
 | 
			
		||||
RUN echo "installing helm from ${HELM_LINK}"
 | 
			
		||||
ENV HELM_ARCHIVE_PATH=/tmp/helm.tar.gz
 | 
			
		||||
RUN /tmp/download_for_arch.sh $HELM_LINK $HELM_ARCHIVE_PATH
 | 
			
		||||
RUN tar -zxvf $HELM_ARCHIVE_PATH
 | 
			
		||||
RUN echo $HELMFILE_LINK
 | 
			
		||||
 | 
			
		||||
CMD ["sh"]
 | 
			
		||||
							
								
								
									
										0
									
								
								dockerfiles/Dockerfile-argo-arm64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								dockerfiles/Dockerfile-argo-arm64
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								dockerfiles/Dockerfile-argo-x86_64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								dockerfiles/Dockerfile-argo-x86_64
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								dockerfiles/Dockerfile-full-arm64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								dockerfiles/Dockerfile-full-arm64
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								dockerfiles/Dockerfile-full-x86_64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								dockerfiles/Dockerfile-full-x86_64
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										16
									
								
								dockerfiles/Dockerfile-helmfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								dockerfiles/Dockerfile-helmfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
FROM alpine:3.17.1
 | 
			
		||||
ARG HELM_VERSION=3.10.3
 | 
			
		||||
ARG HELMFILE_VERSION=0.150.0
 | 
			
		||||
 | 
			
		||||
ARG HELM_LINK=https://get.helm.sh/helm-v$HELM_VERSION-linux-\$PLATFORM.tar.gz
 | 
			
		||||
ARG HELMFILE_LINK=https://github.com/helmfile/helmfile/releases/download/v$HELMFILE_VERSION/helmfile_$HELMFILE_VERSION_linux_\$PLATFORM.tar.gz
 | 
			
		||||
 | 
			
		||||
RUN apk update && apk add --no-cache curl
 | 
			
		||||
 | 
			
		||||
RUN echo "installing helm from ${HELM_LINK}"
 | 
			
		||||
ENV HELM_ARCHIVE_PATH=/tmp/helm.tar.gz
 | 
			
		||||
RUN curl -LJO $HELM $HELM_ARCHIVE_PATH
 | 
			
		||||
RUN tar -zxvf $HELM_ARCHIVE_PATH
 | 
			
		||||
RUN echo $HELMFILE_LINK
 | 
			
		||||
 | 
			
		||||
CMD ["sh"]
 | 
			
		||||
							
								
								
									
										0
									
								
								dockerfiles/Dockerfile-helmfile-arm64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								dockerfiles/Dockerfile-helmfile-arm64
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								dockerfiles/Dockerfile-helmfile-x86_64
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								dockerfiles/Dockerfile-helmfile-x86_64
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										15
									
								
								scripts/download_for_arch.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								scripts/download_for_arch.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
case $(uname -m) in
 | 
			
		||||
  "arm64"|"aarch64")
 | 
			
		||||
    PLATFORM="arm64"
 | 
			
		||||
    ;;
 | 
			
		||||
  "x86_64")
 | 
			
		||||
    PLATFORM="amd64"
 | 
			
		||||
    ;;
 | 
			
		||||
  *)
 | 
			
		||||
    echo "Unsuported target"
 | 
			
		||||
    exit 1
 | 
			
		||||
    ;;
 | 
			
		||||
esac
 | 
			
		||||
echo "Downloading $2 from $1"
 | 
			
		||||
curl -LJO $1 $2
 | 
			
		||||
		Reference in New Issue
	
	Block a user