Merge pull request #131 from Mastercuber/master

Move troubleshoots to end; add install links for docker and minikube
This commit is contained in:
Grzegorz Leoniec 2019-01-27 23:16:01 +01:00 committed by GitHub
commit 3ce814a96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
node_modules/
.env
.vscode
.idea
yarn-error.log
dist/*
coverage.lcov

View File

@ -1,23 +1,15 @@
# Usage with minikube
assuming you installed the packages git, docker, minikube and virtualbox here...
Assuming you installed the packages git, docker ([all-distributions](https://docs.docker.com/install/)), minikube ([ubuntu]([minikube](https://computingforgeeks.com/how-to-install-minikube-on-ubuntu-18-04/)), [all-distributions](https://kubernetes.io/docs/tasks/tools/install-minikube/)) and virtualbox here...
First of all start minikube on your machine:
```sh
minikube start
```
**[troubleshoot]** If you get an error message along th lines of 'The vboxdrv kernel module is not loaded.' - then you have the same issue i had. to solve this you need to install the propper linux kernel host modules package. Here an example for Manjaro:
https://forum.manjaro.org/t/installing-virtualbox-kernel-modules/6999
**[troubleshoot]** When you can not start minikube, try also to remove the cluster with `minikube delete` and start again with `minikube start`. Sometimes this fix startup problems of the cluster.
You can always get an overview and see what's going on with your minikube:
```sh
minikube dashboard
```
**[troubleshoot]** now again you might run into trouble with an error like 'kubectl could not be found on your path.' In this case run the following command:
```sh
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo cp kubectl /usr/local/bin/ && rm kubectl
```
From now on stay in your favorite work directory. First let's clone the necessary sources:
```sh
@ -32,7 +24,7 @@ docker build -t humanconnection/nitro-backend:latest Nitro-Backend/
docker build -t humanconnection/neo4j:latest -f Nitro-Backend/Dockerfile.neo4j Nitro-Backend/
```
check that the image is in Minikubes Docker registry:
Check that the image is in Minikubes Docker registry:
```sh
minikube ssh docker images
```
@ -48,5 +40,12 @@ You can see the backend in action with:
minikube service backend
```
### Troubleshoot
1. If you get an error message along th lines of 'The vboxdrv kernel module is not loaded.' - then you have the same issue i had. to solve this you need to install the propper linux kernel host modules package. Here an example for Manjaro:
https://forum.manjaro.org/t/installing-virtualbox-kernel-modules/6999
2. When you can not start minikube, try also to remove the cluster with `minikube delete` and start again with `minikube start`. Sometimes this fix startup problems of the cluster.
3. Now again you might run into trouble with an error like 'kubectl could not be found on your path.' In this case run the following command:
```sh
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo cp kubectl /usr/local/bin/ && rm kubectl
```