kolide-quickstart icon indicating copy to clipboard operation
kolide-quickstart copied to clipboard

Permission problems when installing quickstart on Ubuntu VM.

Open eomeara opened this issue 6 years ago • 0 comments

I installed the quickstart on a ubuntu vm but had to make the following changes to succeed:

diff --git a/demo.sh b/demo.sh index 00b351e..69197bb 100755 --- a/demo.sh +++ b/demo.sh @@ -238,7 +238,7 @@ function up() { docker run --rm -v $(pwd):/certs kolide/openssl rsa -in /certs/server.key -out /certs/server.key docker run --rm -v $(pwd):/certs kolide/openssl req -sha256 -new -key /certs/server.key -out /certs/server.csr -subj "/CN=$CN" docker run --rm -v $(pwd):/certs kolide/openssl x509 -req -sha256 -days 365 -in /certs/server.csr -signkey /certs/server.key -out /certs/server.crt

-        rm server.csr
+        rm -f server.csr
 else
     CN=$(get_cn)
 fi

AND ALSO:

diff --git a/docker-compose.yml b/docker-compose.yml index d6018c2..3086762 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: MYSQL_USER: kolide MYSQL_PASSWORD: kolide volumes:

-      - ./mysqldata:/tmp
+      - mysqldata:/tmp
 expose:
   - "3306"

@@ -51,3 +51,12 @@ services: core: hard: 1000000000 soft: 1000000000

+
+volumes:
+  mysqldata:
+

Note: Using a named volume instead of a relative path gets around permission problems re some hosts and also avoids seeing differences in host file systems on macOS, Windows and Linux.

eomeara avatar May 18 '18 15:05 eomeara