Browse code

Add -f flag to cURL install instructions

From the -f description:

(HTTP) Fail silently (no output at all) on server errors. This is mostly done
to better enable scripts etc to better deal with failed attempts. In normal
cases when an HTTP server fails to deliver a document, it returns an HTML
document stating so (which often also describes why and more). This flag will
prevent curl from outputting that and return error 22.

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

Sebastiaan van Stijn authored on 2016/01/07 00:05:16
Showing 6 changed files
... ...
@@ -9,7 +9,7 @@ MAINTAINER Hector Castro hector@basho.com
9 9
 # Install Riak repository before we do apt-get update, so that update happens
10 10
 # in a single step
11 11
 RUN apt-get install -q -y curl && \
12
-    curl -sSL https://packagecloud.io/install/repositories/basho/riak/script.deb | sudo bash
12
+    curl -fsSL https://packagecloud.io/install/repositories/basho/riak/script.deb | sudo bash
13 13
 
14 14
 # Install and setup project dependencies
15 15
 RUN apt-get update && \
... ...
@@ -37,7 +37,7 @@ script and we download the setup script and run it.
37 37
     # Install Riak repository before we do apt-get update, so that update happens
38 38
     # in a single step
39 39
     RUN apt-get install -q -y curl && \
40
-        curl -sSL https://packagecloud.io/install/repositories/basho/riak/script.deb | sudo bash
40
+        curl -fsSL https://packagecloud.io/install/repositories/basho/riak/script.deb | sudo bash
41 41
 
42 42
 Then we install and setup a few dependencies:
43 43
 
... ...
@@ -109,7 +109,7 @@ package manager.
109 109
 
110 110
 3. Run the Docker installation script.
111 111
 
112
-		$ curl -sSL https://get.docker.com/ | sh
112
+		$ curl -fsSL https://get.docker.com/ | sh
113 113
 
114 114
 	This script adds the `docker.repo` repository and installs Docker.
115 115
 
... ...
@@ -104,7 +104,7 @@ There are two ways to install Docker Engine.  You can install with the `dnf` pac
104 104
 
105 105
 3. Run the Docker installation script.
106 106
 
107
-		$ curl -sSL https://get.docker.com/ | sh
107
+		$ curl -fsSL https://get.docker.com/ | sh
108 108
 
109 109
 	This script adds the `docker.repo` repository and installs Docker.
110 110
 
... ...
@@ -104,7 +104,7 @@ You use the same installation procedure for all versions of CentOS.
104 104
 
105 105
 3. Run the Docker installation script.
106 106
 
107
-		$ curl -sSL https://get.docker.com/ | sh
107
+		$ curl -fsSL https://get.docker.com/ | sh
108 108
 
109 109
 4. Start the Docker daemon.
110 110
 
... ...
@@ -7,12 +7,12 @@ set -e
7 7
 #   'wget -qO- https://get.docker.com/ | sh'
8 8
 #
9 9
 # For test builds (ie. release candidates):
10
-#   'curl -sSL https://test.docker.com/ | sh'
10
+#   'curl -fsSL https://test.docker.com/ | sh'
11 11
 # or:
12 12
 #   'wget -qO- https://test.docker.com/ | sh'
13 13
 #
14 14
 # For experimental builds:
15
-#   'curl -sSL https://experimental.docker.com/ | sh'
15
+#   'curl -fsSL https://experimental.docker.com/ | sh'
16 16
 # or:
17 17
 #   'wget -qO- https://experimental.docker.com/ | sh'
18 18
 #