mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	update the dependency to v0.7.0 to be closer to what docker/cli uses; https://github.com/theupdateframework/notary/compare/v0.6.1...v0.7.0 Note that docker/cli is slightly ahead of v0.7.0, and uses bf96a202a09a; https://github.com/theupdateframework/notary/compare/v0.7.0...bf96a202a09a Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			32 lines
		
	
	
		
			957 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			957 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM golang:1.14.1-alpine
 | 
						|
 | 
						|
RUN apk add --update git gcc libc-dev
 | 
						|
 | 
						|
ENV GO111MODULE=on
 | 
						|
 | 
						|
ARG MIGRATE_VER=v4.6.2
 | 
						|
RUN go get -tags 'mysql postgres file' github.com/golang-migrate/migrate/v4/cli@${MIGRATE_VER} && mv /go/bin/cli /go/bin/migrate
 | 
						|
 | 
						|
ENV GOFLAGS=-mod=vendor
 | 
						|
ENV NOTARYPKG github.com/theupdateframework/notary
 | 
						|
 | 
						|
# Copy the local repo to the expected go path
 | 
						|
COPY . /go/src/${NOTARYPKG}
 | 
						|
 | 
						|
WORKDIR /go/src/${NOTARYPKG}
 | 
						|
 | 
						|
RUN chmod 0600 ./fixtures/database/*
 | 
						|
 | 
						|
ENV SERVICE_NAME=notary_signer
 | 
						|
ENV NOTARY_SIGNER_DEFAULT_ALIAS="timestamp_1"
 | 
						|
ENV NOTARY_SIGNER_TIMESTAMP_1="testpassword"
 | 
						|
 | 
						|
# Install notary-signer
 | 
						|
RUN go install \
 | 
						|
    -tags pkcs11 \
 | 
						|
    -ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION`" \
 | 
						|
    ${NOTARYPKG}/cmd/notary-signer && apk del git gcc libc-dev && rm -rf /var/cache/apk/*
 | 
						|
 | 
						|
ENTRYPOINT [ "notary-signer" ]
 | 
						|
CMD [ "-config=fixtures/signer-config-local.json" ]
 |