mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
tests: Remove systctl test package
It is not longer needed. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
15a05d6260
commit
9efac10874
@ -1,4 +0,0 @@
|
||||
FROM alpine:edge
|
||||
ADD . ./
|
||||
ENTRYPOINT ["/bin/sh", "/check.sh"]
|
||||
LABEL org.mobyproject.config='{"net": "host","pid": "host", "ipc": "host", "readonly": true}'
|
@ -1,29 +0,0 @@
|
||||
.PHONY: tag push
|
||||
|
||||
BASE=alpine:3.5
|
||||
IMAGE=test-sysctl
|
||||
|
||||
default: push
|
||||
|
||||
hash: Dockerfile check.sh
|
||||
DOCKER_CONTENT_TRUST=1 docker pull $(BASE)
|
||||
tar cf - $^ | docker build --no-cache -t $(IMAGE):build -
|
||||
docker run --rm --entrypoint=/bin/sh $(IMAGE):build -c "cat $^ /lib/apk/db/installed | sha1sum" | sed 's/ .*//' > hash
|
||||
|
||||
push: hash
|
||||
DOCKER_CONTENT_TRUST=1 docker pull 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 rmi $(IMAGE):build
|
||||
rm -f hash
|
||||
|
||||
tag: hash
|
||||
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
|
||||
docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash)
|
||||
docker rmi $(IMAGE):build
|
||||
rm -f hash
|
||||
|
||||
clean:
|
||||
rm -f hash
|
||||
|
||||
.DELETE_ON_ERROR:
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
function failed {
|
||||
printf "sysctl test suite FAILED\n" >&1
|
||||
exit 1
|
||||
}
|
||||
|
||||
# this is a non default value, so will fail if sysctl failed
|
||||
[ "$(sysctl -n fs.inotify.max_user_watches)" -eq 524288 ] || failed
|
||||
|
||||
printf "Sysctl test suite PASSED\n" >&1
|
Loading…
Reference in New Issue
Block a user