Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.27 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.27 KB

OpenConnect remote minimal

A template for creating a vpn development container.

It can be used to:

  • proxy traffic via a vpn
  • used as remote development container with visual studio code
  • run docker in docker

NOTE: See OpenConnect container minimal for a version suitable for Development Containers.

Prerequisites

  • copy company.cer, user.key and user.pem into certs directory
  • create .vpn-env file (copy sample) and fill out the missing values

Build devcontainer

docker compose build

Start the devcontainer (automatically connects to vpn)

docker compose up -d

Attach vscode

  • Open a new vscode window
  • Attach vscode to the running container by either
    • Selecting "Open Remote Window" (blue icon in the left down corner) -> "Attach to running container"
    • Pressing Crtl + Shift + P (linux) or Cmd + Shift + P (mac) -> "Dev Containers: Attach to running container"

Using the Proxy locally

The Proxy is forwarded to localhost:3128 and currently configured to allow http and https connections (see squid.conf). Use Foxy Proxy or similar tools in your browser to access it.