File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 16
16
set -e
17
17
source ./VERSION
18
18
19
+ if grep -q Microsoft /proc/version; then
20
+ echo " Running on Windows Subsystem for Linux"
21
+ # WSL doesn't have its own docker host, we have to use the one
22
+ # from Windows itself.
23
+ # https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4
24
+ export DOCKER_HOST=localhost:2375
25
+ fi
26
+
19
27
ARCH=amd64; [ -n " $1 " ] && ARCH=$1
20
28
MAJOR_VERSIONS=(" ${! MYSQL_SERVER_VERSIONS[@]} " ); [ -n " $2 " ] && MAJOR_VERSIONS=(" ${@: 2} " )
21
29
Original file line number Diff line number Diff line change 16
16
set -e
17
17
source ./VERSION
18
18
19
+ if grep -q Microsoft /proc/version; then
20
+ echo " Running on Windows Subsystem for Linux"
21
+ # WSL doesn't have its own docker host, we have to use the one
22
+ # from Windows itself.
23
+ # https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4
24
+ export DOCKER_HOST=localhost:2375
25
+ fi
26
+
19
27
REPO=mysql/mysql-server; [ -n " $1 " ] && REPO=$1
20
28
21
29
for MAJOR_VERSION in ${MULTIARCH_VERSIONS} ; do
Original file line number Diff line number Diff line change 20
20
set -e
21
21
source ./VERSION
22
22
23
+ if grep -q Microsoft /proc/version; then
24
+ echo " Running on Windows Subsystem for Linux"
25
+ # WSL doesn't have its own docker host, we have to use the one
26
+ # from Windows itself.
27
+ # https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4
28
+ export DOCKER_HOST=localhost:2375
29
+ shopt -s expand_aliases
30
+ alias inspec=" cmd.exe /c C:/opscode/inspec/bin/inspec"
31
+ fi
32
+
23
33
ARCH=amd64; [ -n " $1 " ] && ARCH=$1
24
34
MAJOR_VERSIONS=(" ${! MYSQL_SERVER_VERSIONS[@]} " ); [ -n " $2 " ] && MAJOR_VERSIONS=(" ${@: 2} " )
25
35
You can’t perform that action at this time.
0 commit comments