Skip to content

[BUG] /lsiopy folder & 'VIRTUAL_ENV': '/lsiopy': Why included in image? #189

@ManiMatter

Description

@ManiMatter

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The vscode image comes with a folder called "/lsiopy" and a enviornment variable 'VIRTUAL_ENV': '/lsiopy'..

My take is that these are two remnants of the Jenkins file. Since the vscode image does not actually have a python binary installed, I am not sure these two serve any purpose and I wonder why they are included in the image.

python3 -m venv /lsiopy && \

The reason I am bringing this up is because the VIRTUAL_ENV variable has caused an issue for me, since the application "poetry" is also using the same variable, and I hadn't been aware that codeserver already had set a value for it.

Expected Behavior

If there is no use of the /lsiopy folder and the associated environment variable post jenkins installation they should not be included in the image.

Steps To Reproduce

  1. Spin up a fresh codeserver container
  2. Check the presence of folder "/lsiopy"
    test -d /lsiopy && echo "Directory exists" || echo "Directory does not exist"
  • Will say "Directory exists" and expected would be "Directory does not exist"
  1. Check the presence of env variable
    echo $VIRTUAL_ENV
  • Will return "/lsiopy" and expected would be nothing

CPU architecture

x86-64

Docker creation

vscode:
    <<: *common-keys-core
    image: lscr.io/linuxserver/code-server:latest
    container_name: vscode
    ports:
      - 8443:8443
    environment:
      <<: *default-tz-puid-pgid
      SUDO_PASSWORD: $VSCODE_SUDO_PW
    volumes:
      - $DOCKERDIR/own_coding/vscode/:/vscode
      - $DOCKERDIR:/docker
      - /var/run/docker.sock:/var/run/docker.sock
      - /:/host:ro # for cloudbackup development
    security_opt:
      - no-new-privileges:false
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.vscode-rtr.entrypoints=https"
      - "traefik.http.routers.vscode-rtr.rule=Host(`vscode.$DOMAINNAME_CLOUD_SERVER`)"
      - "traefik.http.routers.vscode-rtr.tls=true"
      - "traefik.http.routers.vscode-rtr.middlewares=chain-oauth@file"
      - "traefik.http.routers.vscode-rtr.service=vscode-svc"
      - "traefik.http.services.vscode-svc.loadbalancer.server.port=8443"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions