Skip to content

suggestion/minikube#2

Open
Methy659 wants to merge 4 commits intomasterfrom
suggestion/minikube-deploy
Open

suggestion/minikube#2
Methy659 wants to merge 4 commits intomasterfrom
suggestion/minikube-deploy

Conversation

@Methy659
Copy link
Collaborator

Added support for minikube for Mac

  • Makefile created to engage the script to run it from scratch on minikube
    • Notice that make clean will destroy your minikube so use with caution

@Methy659 Methy659 requested a review from HakimiX June 28, 2022 11:18
spec:
containers:
- name: client
image: hakimixx/docker-infra-client:v1.1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vær opmærksom her

Comment on lines +4 to +5
echo $CURRENT_PATH
echo $CURRENT_PATH | rev | cut -d "/" -f1 | rev
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quote these values

first_deploy() {
minikube start
minikube addons enable ingress
eval $(minikube docker-env)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quote here as well.
Generally quote everything (unless it's a numerical value) where you do not require the shell to perform word splitting.

Comment on lines +40 to +43
echo
echo
echo
echo sometimes it gets stuck just do ctrl + c on it, do verify by refreshing website.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps replace these lines with:

echo $'\nIn case the script is stuck, simply terminate and verify by refreshing the client'

echo $CURRENT_PATH
echo $CURRENT_PATH | rev | cut -d "/" -f1 | rev
FILES=(client-deployment.yml server-deployment.yml worker-deployment.yml)
PATH_OF_DOCKERFILES=$(echo $CURRENT_PATH | rev | cut -d "/" -f1 | rev)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this line do?

clean:
echo Deletes all local Kubernetes cluster. This command deletes the VM, and removes all associated files.
minikube stop
minikube delete --all
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about creating a minikube profile which allows us to manage multiple minikube instances.
That way we don't terminate other minikube instances (applications running) by executing minikube stop.

minikube start -p docker-infrastructure
minikube profile docker-infrastructure

And perhaps add a stop step, that simply stops the current instance and doesn't delete it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants