Compare commits
	
		
			2 commits
		
	
	
		
			49eacbd572
			...
			c62978d4e1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							 | 
						c62978d4e1 | ||
| 
							 | 
						5993dc49f3 | 
					 3 changed files with 68 additions and 1 deletions
				
			
		
							
								
								
									
										28
									
								
								.woodpecker.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.woodpecker.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,28 @@
 | 
				
			||||||
 | 
					# Build and publish Docker images for multible architectures.
 | 
				
			||||||
 | 
					# 
 | 
				
			||||||
 | 
					# Pushing an image to codeberg as container registry,
 | 
				
			||||||
 | 
					# package owner will be the repo owner.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# this config also shows usage of yaml aliases and
 | 
				
			||||||
 | 
					# was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					when:
 | 
				
			||||||
 | 
					  branch: main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					  publish:
 | 
				
			||||||
 | 
					    image: woodpeckerci/plugin-docker-buildx
 | 
				
			||||||
 | 
					    settings:
 | 
				
			||||||
 | 
					      dockerfile: builder/Dockerfile
 | 
				
			||||||
 | 
					      platforms: linux/arm64/v8,linux/amd64
 | 
				
			||||||
 | 
					      repo: git.jmbit.de/filegate/utility-containers
 | 
				
			||||||
 | 
					      registry: git.jmbit.de
 | 
				
			||||||
 | 
					      tags: 
 | 
				
			||||||
 | 
					        - builder-latest
 | 
				
			||||||
 | 
					        - builder
 | 
				
			||||||
 | 
					      username: jmb
 | 
				
			||||||
 | 
					      password:
 | 
				
			||||||
 | 
					        from_secret: forgejo_token
 | 
				
			||||||
 | 
					    when:
 | 
				
			||||||
 | 
					      event: push
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,8 @@
 | 
				
			||||||
# utility-containers
 | 
					# utility-containers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Repository containing Dockerfiles to 
 | 
					[](https://ci.jmbit.de/repos/3)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Repository containing Dockerfiles for various utility functions for and around filegate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Builder
 | 
				
			||||||
 | 
					Standard Docker Go image with the requirements for CGO and all of libpods build dependencies added
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										34
									
								
								builder/Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								builder/Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,34 @@
 | 
				
			||||||
 | 
					FROM docker.io/library/golang
 | 
				
			||||||
 | 
					LABEL authors="Johannes Bülow <johannes.buelow@jmbit.de>"
 | 
				
			||||||
 | 
					# Get all the stuff for CGO and Podman bindings
 | 
				
			||||||
 | 
					RUN export DEBIAN_FRONTEND="noninteractive" \
 | 
				
			||||||
 | 
					  && apt-get update \
 | 
				
			||||||
 | 
					  && apt-get install --no-install-recommends -y software-properties-common \
 | 
				
			||||||
 | 
					  && apt-get update \
 | 
				
			||||||
 | 
					  && apt-get install --no-install-recommends -y \
 | 
				
			||||||
 | 
					    bash \
 | 
				
			||||||
 | 
					    binutils \
 | 
				
			||||||
 | 
					    ca-certificates \
 | 
				
			||||||
 | 
					    clang \
 | 
				
			||||||
 | 
					    curl \
 | 
				
			||||||
 | 
					    g++ \
 | 
				
			||||||
 | 
					    gcc \
 | 
				
			||||||
 | 
					    git \
 | 
				
			||||||
 | 
					    libc6-dev \
 | 
				
			||||||
 | 
					    libssl-dev \
 | 
				
			||||||
 | 
						 libdevmapper-dev \
 | 
				
			||||||
 | 
					    llvm \
 | 
				
			||||||
 | 
					    make \
 | 
				
			||||||
 | 
					    pkg-config \
 | 
				
			||||||
 | 
					    tzdata \
 | 
				
			||||||
 | 
					    uuid \
 | 
				
			||||||
 | 
						libgpgme-dev \
 | 
				
			||||||
 | 
						libbtrfs-dev \
 | 
				
			||||||
 | 
						golang-github-containerd-btrfs-dev \
 | 
				
			||||||
 | 
					  && apt-get -y autoremove \
 | 
				
			||||||
 | 
					  && apt-get clean -y \
 | 
				
			||||||
 | 
					  && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
 | 
				
			||||||
 | 
					  && ln -sf /usr/include/asm-generic /usr/include/asm
 | 
				
			||||||
 | 
					WORKDIR /usr/local/src
 | 
				
			||||||
 | 
					COPY ./ ./
 | 
				
			||||||
 | 
					RUN go get . && go mod download && go build -o filegate
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue