Sign inSign up

larsoste/ansible-vscode-server

By larsoste

•Updated 4 months ago

Container for VS Code in the browser with Ansible, Git, and Python 3 Support

Image
0

1.1K

larsoste/ansible-vscode-server repository overview

Container for VS Code in the browser with Ansible, Git, and Python 3 Support

Example: Docker-Compose.yml


version: '3.8'

services:
  code-server:
    image: larsoste/ansible-vscode-server:latest
    build:
      context: /home/pi/my-container
      dockerfile: Dockerfile
    ports:
      - "8081:8081"
    volumes:
      - /home/pi:/workspace
      - vscode-data:/root/.local/share/code-server
      - /home/pi/my-container/.gitconfig:/root/.gitconfig 

volumes:
  vscode-data:

A certificate is still required, which must be located in the following directory on the host within the workspace folder: /"workspace"/my-container/pem

For a self-signed certificate, the following command can be used:


openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem

Tag summary

Content type

Image

Digest

sha256:f29addc0d…

Size

587.4 MB

Last updated

4 months ago

docker pull larsoste/ansible-vscode-server