Browse code

Merge pull request #23480 from thaJeztah/remove-unsupported-distros

Remove unsupported distros from install script

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