mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-11-04 02:32:11 +00:00 
			
		
		
		
	Rename and sign linuxkit/test-ltp
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
		@@ -7,7 +7,7 @@ init:
 | 
				
			|||||||
  - linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
 | 
					  - linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
 | 
				
			||||||
onboot:
 | 
					onboot:
 | 
				
			||||||
  - name: ltp
 | 
					  - name: ltp
 | 
				
			||||||
    image: "linuxkit/test-ltp-20170116:81229df2d25065b06f0a3071faaace8d66c87e67"
 | 
					    image: "linuxkit/test-ltp:20170116"
 | 
				
			||||||
    net: host
 | 
					    net: host
 | 
				
			||||||
    pid: host
 | 
					    pid: host
 | 
				
			||||||
    binds:
 | 
					    binds:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ ltp.tar: ltp.tag
 | 
				
			|||||||
	docker run --rm --net=none --log-driver=none $(shell cat ltp.tag) tar cf - opt/ltp  > $@
 | 
						docker run --rm --net=none --log-driver=none $(shell cat ltp.tag) tar cf - opt/ltp  > $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SHASUM=alpine:3.5
 | 
					SHASUM=alpine:3.5
 | 
				
			||||||
IMAGE=test-ltp-$(LTP_VERSION)
 | 
					IMAGE=test-ltp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Note: We do not compute the hash from all the dependencies here
 | 
					# Note: We do not compute the hash from all the dependencies here
 | 
				
			||||||
# because the ltp binaries will change everytime we build. Ideally, we
 | 
					# because the ltp binaries will change everytime we build. Ideally, we
 | 
				
			||||||
@@ -25,7 +25,9 @@ hash: Dockerfile.pkg ltp.tar check.sh $(DEPS)
 | 
				
			|||||||
push: hash
 | 
					push: hash
 | 
				
			||||||
	DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
 | 
						DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
 | 
				
			||||||
		(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
 | 
							(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
 | 
				
			||||||
		 DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash))
 | 
							 docker tag $(IMAGE):build linuxkit/$(IMAGE):$(LTP_VERSION) && \
 | 
				
			||||||
 | 
							DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash) && \
 | 
				
			||||||
 | 
							DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(LTP_VERSION))
 | 
				
			||||||
	docker rmi $(IMAGE):build
 | 
						docker rmi $(IMAGE):build
 | 
				
			||||||
	rm -f hash
 | 
						rm -f hash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user