platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

PlatformIO IDE on code-server running in a Docker container

Open silvio-vallorani opened this issue 3 years ago • 2 comments

Hi guys, this is probably not the right place to ask this question, but I don't know where to start such a thread ... don't have a Discord server or a Slack workspace or a Team on Microsoft Teams?

Anyway, has anyone tried running PlatformIO IDE inside a code-server instance running in a docker container like this https://hub.docker.com/r/codercom/code-server ?

I have tried and made a good point, but there are several obstacles that I don't know how to deal with ...

Thank you for your nice work!

silvio-vallorani avatar Apr 12 '22 06:04 silvio-vallorani

I have it mostly working using the linuxserver docker image. Here's a snippet of my docker compose file:

version: '2.4'
services:
  code-server:
    image: lscr.io/linuxserver/code-server
    restart: always
    ports:
      - 8443:8443
    environment:
      - TZ=America/Chicago
      - PUID=1000
      - PGID=1000
      - DOCKER_MODS=linuxserver/mods:code-server-python3
      - 'EXTENSIONS_GALLERY={"serviceUrl":"https://marketplace.visualstudio.com/_apis/public/gallery","itemUrl":"https://marketplace.visualstudio.com/items"}'
    volumes:
      - /srv/docker/code-server:/config
      - /projects/path/on/host:/projects

The pio command and PlatformIO project tasks work but the embedded web pages (e.g. PIO Home) don't work. And unfortunately it's not possible to get them working currently as the extension assumes you're accessing it from the same host it's running on.

thedanbob avatar Apr 18 '22 20:04 thedanbob

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 18 '22 17:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 08 '22 21:09 stale[bot]

Has anyone been able to get PlatformIO running in docker in code-server?

melwinek avatar May 24 '23 06:05 melwinek