Browse code

remove unsupported distros from install script

The install script currently includes some
distros that we don't actually have packages
for.

For these distros, the script currently
performs step to install Docker from
the distro's repository.

This patch removes those distros from
the install script, because we have no
control over these packages, and cannot
provide support for them.

Installing docker anyway will give the
false impression that they installed
a package from our repository (but they
didn't), and that they need to contact
us for support.

It's better to tell people that we don't
install in that case, and refer them to
the installation documentation, or the
documentation of their distro.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2016/06/13 07:11:18
Showing 1 changed files
... ...
@@ -338,74 +338,6 @@ do_install() {
338 338
 
339 339
 	# Run setup for each distro accordingly
340 340
 	case "$lsb_dist" in
341
-		amzn)
342
-			(
343
-			set -x
344
-			$sh_c 'sleep 3; yum -y -q install docker'
345
-			)
346
-			echo_docker_as_nonroot
347
-			exit 0
348
-			;;
349
-
350
-		'opensuse project'|opensuse)
351
-			echo 'Going to perform the following operations:'
352
-			if [ "$repo" != 'main' ]; then
353
-				echo '  * add repository obs://Virtualization:containers'
354
-			fi
355
-			echo '  * install Docker'
356
-			$sh_c 'echo "Press CTRL-C to abort"; sleep 3'
357
-
358
-			if [ "$repo" != 'main' ]; then
359
-				# install experimental packages from OBS://Virtualization:containers
360
-				(
361
-					set -x
362
-					zypper -n ar -f obs://Virtualization:containers Virtualization:containers
363
-					rpm_import_repository_key 55A0B34D49501BB7CA474F5AA193FBB572174FC2
364
-				)
365
-			fi
366
-			(
367
-				set -x
368
-				zypper -n install docker
369
-			)
370
-			echo_docker_as_nonroot
371
-			exit 0
372
-			;;
373
-		'suse linux'|sle[sd])
374
-			echo 'Going to perform the following operations:'
375
-			if [ "$repo" != 'main' ]; then
376
-				echo '  * add repository obs://Virtualization:containers'
377
-				echo '  * install experimental Docker using packages NOT supported by SUSE'
378
-			else
379
-				echo '  * add the "Containers" module'
380
-				echo '  * install Docker using packages supported by SUSE'
381
-			fi
382
-			$sh_c 'echo "Press CTRL-C to abort"; sleep 3'
383
-
384
-			if [ "$repo" != 'main' ]; then
385
-				# install experimental packages from OBS://Virtualization:containers
386
-				echo >&2 'Warning: installing experimental packages from OBS, these packages are NOT supported by SUSE'
387
-				(
388
-					set -x
389
-					zypper -n ar -f obs://Virtualization:containers/SLE_12 Virtualization:containers
390
-					rpm_import_repository_key 55A0B34D49501BB7CA474F5AA193FBB572174FC2
391
-				)
392
-			else
393
-				# Add the containers module
394
-				# Note well-1: the SLE machine must already be registered against SUSE Customer Center
395
-				# Note well-2: the `-r ""` is required to workaround a known issue of SUSEConnect
396
-				(
397
-					set -x
398
-					SUSEConnect -p sle-module-containers/12/x86_64 -r ""
399
-				)
400
-			fi
401
-			(
402
-				set -x
403
-				zypper -n install docker
404
-			)
405
-			echo_docker_as_nonroot
406
-			exit 0
407
-			;;
408
-
409 341
 		ubuntu|debian|raspbian)
410 342
 			export DEBIAN_FRONTEND=noninteractive
411 343
 
... ...
@@ -512,33 +444,6 @@ do_install() {
512 512
 			echo_docker_as_nonroot
513 513
 			exit 0
514 514
 			;;
515
-		gentoo)
516
-			if [ "$url" = "https://test.docker.com/" ]; then
517
-				# intentionally mixed spaces and tabs here -- tabs are stripped by "<<-'EOF'", spaces are kept in the output
518
-				cat >&2 <<-'EOF'
519
-
520
-				  You appear to be trying to install the latest nightly build in Gentoo.'
521
-				  The portage tree should contain the latest stable release of Docker, but'
522
-				  if you want something more recent, you can always use the live ebuild'
523
-				  provided in the "docker" overlay available via layman.  For more'
524
-				  instructions, please see the following URL:'
525
-
526
-				    https://github.com/tianon/docker-overlay#using-this-overlay'
527
-
528
-				  After adding the "docker" overlay, you should be able to:'
529
-
530
-				    emerge -av =app-emulation/docker-9999'
531
-
532
-				EOF
533
-				exit 1
534
-			fi
535
-
536
-			(
537
-				set -x
538
-				$sh_c 'sleep 3; emerge app-emulation/docker'
539
-			)
540
-			exit 0
541
-			;;
542 515
 	esac
543 516
 
544 517
 	# intentionally mixed spaces and tabs here -- tabs are stripped by "<<-'EOF'", spaces are kept in the output