Added docker wsl setup.

This commit is contained in:
2020-05-28 11:41:38 +12:00
parent b47b643420
commit adff6713bb
2 changed files with 107 additions and 68 deletions

View File

@ -47,6 +47,9 @@ fi
# Configure display for vcxsrv # Configure display for vcxsrv
export DISPLAY=:0.0 export DISPLAY=:0.0
# Configure docker host
export DOCKER_HOST=tcp://localhost:2375
# Setup prompt # Setup prompt
function color_my_prompt { function color_my_prompt {
local __user_and_host="\[\033[01;32m\]\u@\h" local __user_and_host="\[\033[01;32m\]\u@\h"

View File

@ -59,6 +59,34 @@ This guide will walk through setting up [[https://en.wikipedia.org/wiki/Windows_
#+END_SRC #+END_SRC
We use [[https://docker.io][docker]] to run containers or kind (kubernetes in docker) locally.
#+NAME: Install docker
#+begin_src shell
# Download and add Docker's official public PGP key.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add the `stable` channel's Docker upstream repository.
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
# Update the apt package list (for the new apt repo).
sudo apt-get update -y
# Install the latest version of Docker CE.
sudo apt-get install -y docker-ce
# Allow your user to access the Docker CLI without needing root access.
sudo usermod -aG docker $USER
#+end_src
#+RESULTS: Install docker
#+begin_example
#+end_example
We use [[https://pandoc.org/][pandoc]] for documentation export from spacemacs and other markup conversion tasks. We use [[https://pandoc.org/][pandoc]] for documentation export from spacemacs and other markup conversion tasks.
#+NAME: Install pandoc #+NAME: Install pandoc
@ -223,7 +251,11 @@ Once our keys are available to us we can clone down our dotfiles and get back to
** Step 4 - Install kubemacs editor ** Step 4 - Install kubemacs editor
*** Compile and install vanilla emacs An integral part of our pair development workflow is [[https://github.com/kubemacs/kubemacs][kubemacs]]. Below are options to install this either manually from source, or automatically via docker.
*** Option 1 - Install from source
**** Compile and install vanilla emacs
A key component in our environment is the ii extension of spacemacs. A key component in our environment is the ii extension of spacemacs.
The section below will setup emacs version ~26.3~ and then layer The section below will setup emacs version ~26.3~ and then layer
@ -275,7 +307,7 @@ Once our keys are available to us we can clone down our dotfiles and get back to
#+END_SRC #+END_SRC
*** Overlay kubemacs **** Overlay kubemacs
Once the right version of emacs is running we can then layer in kubemacs on top. Documentation for this is here: https://github.com/kubemacs/kubemacs Once the right version of emacs is running we can then layer in kubemacs on top. Documentation for this is here: https://github.com/kubemacs/kubemacs
@ -325,6 +357,10 @@ Once our keys are available to us we can clone down our dotfiles and get back to
#+END_SRC #+END_SRC
*** Option 2 - Install via docker
** Step 5 - Setup mutt email client ** Step 5 - Setup mutt email client
For reading email we ideally use a cli based client for fast searching and lightweight mail reading. For reading email we ideally use a cli based client for fast searching and lightweight mail reading.