You've already forked prometheus-fail2ban-exporter
							
							Update the goreleaser config to rename the output binary and archive names to `fail2ban_exporter` instead of defaulting to the project name. This better aligns with conventions used by other exporters. Update Dockerfile and Makefile to follow the new naming scheme. Update the output archives to wrap the build files in a folder. This makes extracting the archives a little easier. BREAKING CHANGE: Release binary name has been changed to `fail2ban_exporter`.
		
			
				
	
	
		
			24 lines
		
	
	
		
			551 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			551 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# Using golang:latest instead of alpine because of issues with sqlite3
 | 
						|
FROM golang:latest AS build
 | 
						|
 | 
						|
# Create build folder to compile tool
 | 
						|
WORKDIR /build
 | 
						|
 | 
						|
# Copy source files to build folder and link to the /go folder
 | 
						|
COPY . /build
 | 
						|
RUN ln -s /go/src/ /build/src
 | 
						|
 | 
						|
# Compile the tool using a Make command
 | 
						|
RUN make build/docker
 | 
						|
 | 
						|
 | 
						|
FROM debian:buster-slim
 | 
						|
 | 
						|
# Create main app folder to run from
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
# Copy compiled binary to release image
 | 
						|
COPY --from=build /build/src/fail2ban_exporter /app/fail2ban_exporter
 | 
						|
 | 
						|
ENTRYPOINT ["/app/fail2ban_exporter"]
 |