This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script
52 lines (36 loc) · 1.03 KB
/
script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Get Docker Hub Credentials
$docker_creds = Get-Credential
# Install kubectl
choco install kubernetes-cli
# Install Helm
choco install kubernetes-helm
# Install Draft
choco install Draft
# Install Docker
choco install docker-desktop --pre
# Install minikube
choco install minikube
# Setup an internal virtual switch for minikube
Get-NetAdapter
New-VMSwitch -name Minikube -AllowManagementOS $true
# Stop for a moment and setup Internet Connection Sharing
# Refresh Environment Variables
RefreshEnv.cmd
# Start Minikube
minikube start --vm-driver hyperv --hyperv-virtual-switch Minikube
# Install Helm note this is not a secure method. See https://helm.sh/docs/using_helm/#role-based-access-control for more details
helm init
# Install Draft
draft init
# Pull down some code
cd..
git@github.com:JasonvanBrackel/discourse-social-exporter.git
cd discourse-social-exporter\Rancher.Scrappers.Discourse
# Login to docker
docker login
# Create Container and Kubernetes Items
draft create
# Modify draft configuration
code .
# Deploy
draft up