question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Environment variables and connection setup for Docker?

See original GitHub issue

I am running FROM dbeaver/cloudbeaver:21.0.1

Q1) How do I bypass “INITIAL SERVER CONFIGURATION” while running in Docker? I want to specify the cbadmin user name (nice to have) and password (critical) as an environment variable or command line setting. Something like CB_ADMIN_NAME=cbadmin and CB_ADMIN_PASSWORD=password. If I provide this information, I hope it will stop the setup wizard and go directly to the main / data explorer page.

Q2) What does adminCredentialsSaveEnabled do within conf/cloudbeaver.conf https://github.com/dbeaver/cloudbeaver/wiki/Server-configuration

Q3) Where can I find a list of all Cloud Beaver environment variables? Is there a way to set supportsCustomConnections other than inside conf/cloudbeaver.conf

Q4) I believe I need to copy two files to force connection setup. Is there a better way to setup connections automatically within docker? https://github.com/dbeaver/cloudbeaver/wiki/Configuring-server-datasources

  1. /opt/cloudbeaver/workspace/GlobalConfiguration/.dbeaver/credentials-config.json Saved user name and password from wizards setup? Anyway to pass with environment variables or command line settings?
  2. /opt/cloudbeaver/conf/initial-data-sources.conf driver and host setup without password

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kseniiaguzeevacommented, Apr 13, 2022

Variables can be set in CloudBeaver configuration files. The description is available in the article Using environment variables. Please feel free to contact me, if you have any additional questions.

1reaction
OJFordcommented, Jan 17, 2022

It would be much nicer for K8s & Docker use if a connection could be configured via environment variables.

e.g.:

# docker-compose.yml
services:
  app:
    # ...
    environment:
      DATABASE_URL: postgres://local:hunter2@postgres/app

  postgres:
    image: postgres
    expose:
      - 5432
    environment:
      POSTGRES_USER: local
      POSTGRES_PASSWORD: hunter2
      POSTGRES_DB: app

  cloudbeaver:
    image: dbeaver/cloudbeaver
    ports:
      - 8978:8978
    environment:
      # if only
Read more comments on GitHub >

github_iconTop Results From Across the Web

Environment variables in Compose | Docker Documentation
You can set default values for any environment variables referenced in the Compose file, or used to configure Compose, in an environment file...
Read more >
How to Set Docker Environment Variables {ARG and ENV}
Set Docker environment variables in a Dockerfile, and override them using Docker CLI and Docker Compose by following this easy tutorial.
Read more >
How do I pass environment variables to Docker containers?
You can pass environment variables to your containers with the -e flag. An example from a startup script: sudo docker run -d -t...
Read more >
2. Passing an environment variable with Docker Compose
First, we'll create a container to pass the environment variables to. Then we'll check out all the ways we can pass them. Let's...
Read more >
How to Set Environment Variables in Docker - RoseHosting
Set Environment Variables in Docker · CLI arguments. We can run a command to launch a docker container, docker run as arguments by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found