Skip to content

Commit

Permalink
Basic scripts for building images and pods
Browse files Browse the repository at this point in the history
  • Loading branch information
RawToast committed Mar 4, 2018
1 parent cf5c1be commit 6016a58
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 10 deletions.
7 changes: 7 additions & 0 deletions bin/build-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

eval $(minikube docker-env)

docker build ../dokusho -t dokusho:web

docker build ../dokusho-server -t dokusho:server
7 changes: 7 additions & 0 deletions bin/create-services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

kubectl create -f ../kube/mongo-service.yaml
kubectl create -f ../kube/web-service.yaml

kubectl create -f ../kube/mongo-controller.yaml
kubectl create -f ../kube/web-controller.yaml
3 changes: 0 additions & 3 deletions kube/build-image.sh

This file was deleted.

7 changes: 0 additions & 7 deletions kube/run-local.sh

This file was deleted.

13 changes: 13 additions & 0 deletions run-minikube.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !!! This script expects Hyperkit drivers to be installed !!!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

minikube start --vm-driver hyperkit

cd bin

./build-images.sh

./create-services.sh

0 comments on commit 6016a58

Please sign in to comment.