Skip to content

Latest commit

 

History

History
79 lines (61 loc) · 2.81 KB

deploy.md

File metadata and controls

79 lines (61 loc) · 2.81 KB

Prerequisites

DockerHub Account (The repository for storing services is currently docker hub), therefore need credentials to authenticate to avoid rate limiting.m

Validate Systename

Need to use a regex for validating current hostname (i.e. system name)

Installing WSL

wsl --install wsl --update wsl --set-default-version 2

wsl sudo apt update wsl sudo apt upgrade -y

wsl echo -e "[boot]\nsystemd=true" | wsl sudo tee /etc/wsl.conf

wsl --shutdown

Install microk8s

wsl sudo snap install microk8s --classic

wsl sudo microk8s status --wait-ready

wsl sudo microk8s kubectl get node -o wide

Get the IP address of the WSL instance

wsl hostname -I

sudo microk8s enable dns sudo microk8s enable ingress sudo microk8s enable metrics-server sudo microk8s enable registry sudo microk8s enable hostpath-storage sudo microk8s enable storage

Move WSL VHD to another drive:

mkdir %DRIVENAME%\wsl-backup wsl --export Ubuntu %DRIVENAME%\wsl-backup\ubuntu.tar

wsl --unregister Ubuntu

mkdir %DRIVENAME%\wsl

wsl --import Ubuntu %DRIVENAME%\wsl %DRIVENAME%\wsl-backup\ubuntu.tar

cd %userprofile%\AppData\Local\Microsoft\WindowsApps (on windows machine) ubuntu config --default-user (this is the username set when setting up Ubuntu VM)

Install CincoDeBio /w Cellmaps Ontology / Services Repo