From 3d4e141a5900a091ffdba573c220da5d1eaaebfa Mon Sep 17 00:00:00 2001 From: Adam Hughes Date: Mon, 23 Jul 2018 00:17:50 -0400 Subject: [PATCH] Remove build_docker test script --- docs/2.x-tests/21-build_docker.sh | 138 ------------------------------ 1 file changed, 138 deletions(-) delete mode 100755 docs/2.x-tests/21-build_docker.sh diff --git a/docs/2.x-tests/21-build_docker.sh b/docs/2.x-tests/21-build_docker.sh deleted file mode 100755 index 276fec8267..0000000000 --- a/docs/2.x-tests/21-build_docker.sh +++ /dev/null @@ -1,138 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2017, Michael W. Bauer. All rights reserved. -# Copyright (c) 2017, Gregory M. Kurtzer. All rights reserved. -# -# "Singularity" Copyright (c) 2016, The Regents of the University of California, -# through Lawrence Berkeley National Laboratory (subject to receipt of any -# required approvals from the U.S. Dept. of Energy). All rights reserved. -# -# This software is licensed under a customized 3-clause BSD license. Please -# consult LICENSE file distributed with the sources of this project regarding -# your rights to use or distribute this software. -# -# NOTICE. This Software was developed under funding from the U.S. Department of -# Energy and the U.S. Government consequently retains certain rights. As such, -# the U.S. Government has been granted for itself and others acting on its -# behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software -# to reproduce, distribute copies to the public, prepare derivative works, and -# perform publicly and display publicly, and to permit other to do so. -# -# - - - -. ./functions - -test_init "Docker bootstrap tests" - - - -CONTAINER="$SINGULARITY_TESTDIR/container.img" -DEFFILE="$SINGULARITY_TESTDIR/example.def" - -# KERNEL_MAJOR=$(uname -r | cut -f1 -d.) - -# # Make sure the examples/docker/Singularity is pointing to busybox:latest (nobody mess with the examples! LOL) -# stest 0 grep busybox:latest ../examples/docker/Singularity - -# stest 0 cp ../examples/docker/Singularity "$DEFFILE" -# stest 0 sudo singularity build "$CONTAINER" "$DEFFILE" - -# stest 0 sed -i -e 's@busybox:latest@ubuntu:16.04@' "$DEFFILE" -# stest 0 sudo singularity build -F "$CONTAINER" "$DEFFILE" -# stest 0 singularity exec "$CONTAINER" true -# stest 1 singularity exec "$CONTAINER" false - -# stest 0 sed -i -e 's@ubuntu:16.04@centos:latest@' "$DEFFILE" -# stest 0 sudo singularity build -F "$CONTAINER" "$DEFFILE" -# stest 0 singularity exec "$CONTAINER" true -# stest 1 singularity exec "$CONTAINER" false - -# if [ "$KERNEL_MAJOR" = "2" ]; then -# echo "Skipping Arch Linux tests - requires host with >=3.x kernel" -# else -# stest 0 sed -i -e 's@centos:latest@dock0/arch:latest@' "$DEFFILE" -# stest 0 sudo singularity build -F "$CONTAINER" "$DEFFILE" -# stest 0 singularity exec "$CONTAINER" true -# stest 1 singularity exec "$CONTAINER" false -# fi - -# stest 0 sudo singularity build -F "$CONTAINER" docker://busybox -# stest 0 singularity exec "$CONTAINER" true -# stest 1 singularity exec "$CONTAINER" false - -# stest 1 sudo singularity build -F "$CONTAINER" docker://something_that_doesnt_exist_ever -# stest 1 singularity exec "$CONTAINER" true -# stest 1 singularity exec "$CONTAINER" false - -# # AUFS sanity tests -# stest 0 sudo singularity build -F "$CONTAINER" docker://dctrud/docker-aufs-sanity -# stest 0 singularity exec "$CONTAINER" ls /test/whiteout-dir/file2 /test/whiteout-file/file2 /test/normal-dir/file2 -# stest 1 singularity exec "$CONTAINER" ls /test/whiteout-dir/file1 /test/whiteout-file/file1 -# stest 1 singularity exec "$CONTAINER" ls /test/*/.wh* - -# # Check force permissions for user builds #977 -# stest 0 singularity build -F "$CONTAINER" docker://dctrud/docker-singularity-userperms -# stest 0 singularity exec "$CONTAINER" ls /testdir/ -# stest 1 singularity exec "$CONTAINER" ls /testdir/testfile - -# # Check whiteout of symbolic links #1592 #1576 -# stest 0 singularity build -F "$CONTAINER" docker://dctrud/docker-singularity-linkwh -# stest 0 singularity exec "$CONTAINER" true - -# if singularity_which docker >/dev/null 2>&1; then -# # make sure local test does not exist, ignore errors -# sudo docker kill registry >/dev/null 2>&1 -# sudo docker rm registry >/dev/null 2>&1 - -# # start local docker registry -# stest 0 sudo docker run -d -p 5000:5000 --restart=always --name registry registry:2 -# # pull busybox from docker and push to local registry -# stest 0 sudo docker pull busybox -# stest 0 sudo docker tag busybox localhost:5000/my-busybox -# stest 0 sudo docker push localhost:5000/my-busybox - -# # alright, now we have a local registry to test with - -# # test with custom registry and custom namespace (including empty namespace) -# # from squashfs to squashfs (via def file) -# cat >"$DEFFILE" <"$DEFFILE" <"$DEFFILE" <