Skip to content

Setting env var SEQCLI_CONNECTION_SERVERURL doesn't seem to work #365

@rj-au

Description

@rj-au

Documentation mentions being able to use env vars in the form SEQCLI_<setting path>, with the example: SEQCLI_CONNECTION_SERVERURL
But I wasn't able to get it working.

Steps to reproduce:

Create a docker compose file with the contents:

version: '3.7'

services:
  seq:
    container_name: local-seq
    image: datalust/seq:latest
    restart: unless-stopped
    ports:
      - 81:80
      - 5341:5341
    environment:
      ACCEPT_EULA: 'Y'
    networks:
      - my_default

networks:
  my_default:
    name: my_default

Start the Seq container:

docker compose up -d --quiet-pull

Use the SeqCLI image to connect to it (using --server):

docker run --rm --network=my_default datalust/seqcli:latest feed list --server=http://local-seq
# nugetfeed-1 nuget.org

Use the SeqCLI image to connect to it (using env var SEQCLI_CONNECTION_SERVERURL):

docker run --rm --network=my_default -e SEQCLI_CONNECTION_SERVERURL=http://local-seq datalust/seqcli:latest feed list
# The command failed: Connection refused (localhost:5341) Connection refused

Confirm that env var SEQCLI_CONNECTION_SERVERURL gets passed to the container:

docker run --rm -it --entrypoint bash -e SEQCLI_CONNECTION_SERVERURL=http://local-seq --network=my_default datalust/seqcli:latest
# echo $SEQCLI_CONNECTION_SERVERURL
## http://local-seq

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions