platformio / platformio-vscode-ide

PlatformIO IDE for VSCode: The next generation integrated development environment for IoT
https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide
Apache License 2.0
1.21k stars 193 forks source link

Strange difference between `pio home` and automatic start via `platformio` command with code-server in Docker #4035

Open pandel opened 5 months ago

pandel commented 5 months ago

Hi!

I am currently running the latest release of PlatformIO under Docker.

I noticed some strange behaviour:

Why is that? What is pio home doing differently here?

I attach my main configuration files for reference:

compose.yaml

services:
  code-server:
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - HASHED_PASSWORD=$HASHPW
      - SUDO_PASSWORD=sudopw
      - DOCKER_MODS=linuxserver/mods:code-server-python3|linuxserver/mods:universal-package-install
      - INSTALL_PACKAGES=mc
      - 'EXTENSIONS_GALLERY={"serviceUrl":"https://marketplace.visualstudio.com/_apis/public/gallery","itemUrl":"https://marketplace.visualstudio.com/items"}'
      - PATH=/config/.platformio/penv/bin:$PATH
    volumes:
      - ./config:/config
      - ./projects:/projects
        # - ./certs:/certs # not using because of PlatformIO
    expose:
      - 8443
      - 8008
    restart: unless-stopped

  nginx:
    image: nginx:latest
    container_name: nginx-proxy
    ports:
      - "8443:443"
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/default.conf
      - ./certs:/etc/nginx/certs
    depends_on:
      - code-server
    restart: unless-stopped

networks: {}

nginx.conf

server {
  listen 443 ssl http2;
  server_name docker.home.server;
  ssl_certificate     /etc/nginx/certs/server.crt;
  ssl_certificate_key /etc/nginx/certs/server.key;

  location / {
    proxy_pass http://code-server:8443/;
    proxy_set_header Host $http_host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection upgrade;
    proxy_set_header Accept-Encoding gzip;
  }

}

Regards, Holger