Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Permission problems when installing quickstart on Ubuntu VM. #48

Open
eomeara opened this issue May 18, 2018 · 0 comments
Open

Permission problems when installing quickstart on Ubuntu VM. #48

eomeara opened this issue May 18, 2018 · 0 comments

Comments

@eomeara
Copy link

eomeara commented May 18, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant