/orca

:whale: Orca | Docker workshop

Primary LanguageGo

Orca

The killer whale or orca is a toothed whale belonging to the oceanic dolphin family, of which it is the largest member. -- Wikipedia

git clone https://github.com/lukaszlach/orca
cd orca/

Introduction

Install Docker on Linux

# Install Docker 19.03
curl -fsSL https://get.docker.com | VERSION=19.03 CHANNEL=stable sh

# Install Docker under your $HOME as a non-root
curl -fsSL https://get.docker.com/rootless | sh

Install Docker helpers

# Windows
$ Set-ExecutionPolicy RemoteSigned
$ Install-Module posh-docker
$ Import-Module posh-docker

# Mac
$ brew tap homebrew/completions
$ brew install docker-completion
$ brew install docker-compose-completion

# Linux
$ apt install bash-completion
$ curl https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker -o /etc/bash_completion.d/docker.sh

Connect to your workshop VPS

SSH server listens on ports 6667 and 80.

ssh -p 6667 d@vpsX.cmd.cat
ssh -p 6667 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null d@vpsX.cmd.cat

Start Orca Tunnel

Orca Tunnel allows you to tunnel all ports used on the workshop through a SSH connection on port 80 to your VPS.

Run the tunnel with automated scripts or manually using Docker on your laptop/PC. When the tunnel is running you can access all workshop services running on your VPS by using localhost. In this case you can also access your VPS shell on http://localhost:8022 and Visual Studio Code editor under http://localhost:443.

If you do not have Docker installed on your PC/laptop see how to configure port forwarding using PuTTy and terminal SSH client on MacOS and Linux.

Start using the automated script:

# Mac and Linux
bash <(curl -sSfL lach.dev/orca-tunnel)

# Windows
iex ((New-Object System.Net.WebClient).DownloadString('https://lach.dev/orca-tunnel.ps'))

Start manually with Docker:

docker run -d --name orca-tunnel \
    --restart always 
    -p 4040:4040 -p 5000:5000 -p 6080:6080 -p 8000:8000 -p 8022:8022 \
    -p 8080:8080 -p 8081:8081 -p 8443:8443 -p 9000:9000 -p 10080:10080 \
    -e SSH_USER=d -e SSH_PASSWORD=docker -e SSH_PORT=80 \
    lukaszlach/orca-tunnel vpsX.cmd.cat \
    4040 5000 6080 8000 8022 8080 8081 8443 9000 10080

Workshop

Beginner

Intermediate

High