Category "environment-variables"

docker-compose Equivalent to Docker Build --secret Argument

We have used the technique detailed here to expose host environment variables to Docker build in a secured fashion. # syntax=docker/dockerfile:1.2 FROM golang:1

Is there a way to Hot Reload my Vue Page after changing an Environment Variable in VueJS?

I want to have different modes for my application, so I created different .env files to store my environment variables. Using these variables works fine, the on

Consume Cloud Run environment variables inside Nextjs app

I've recently built a Nextjs app, which I am hosting on Google Cloud Run. My app makes some requests to external APIs from the getStaticProps() method. I would

configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%s %s'

I am trying to read from ini file and replace it with os environment variables. My ini file: [svc1] host=%(TEST_IP)s port=%(TEST_PORT)s database=test_db user=te

How to use AWS Amplify environment variables in React app?

I have the ReactJS app deployed on AWS Amplify. Also, the environment variables that I need in js code are in Amplify. How can I use them from my code? How do a

C# - Get all environment variables in sorted order

I'm trying to get a sorted list of all environment variables for logging purpose using System.Environment.GetEnvironmentVariables() which returns an IDictionary

How to use Jupyter notebooks in a conda environment?

Typically one runs jupyter notebook or jupyter-notebook or ipython notebook in a terminal to start a Jupyter notebook webserver locally (and open the URL in the

raise KeyError(key) from None

I am getting an error message and have no idea how to proceed, the error message is displayed below. I have downloaded all necessary tools for it to run however

Updating Path multiple times in the same RUN command

Consider the following Dockerfile. On the last lines, first git is installed, and then something is appended to the path environment variable. FROM mcr.microsof

Python os.getenv() returning None when set Windows environment variables

I am following a Twitter bot tutorial using the Twippy library and Twitter API: https://realpython.com/twitter-bot-python-tweepy/ I set the config.py file and s

How to read an environment variable in Kotlin?

I'd like to get a certain value from an environment variable in my Kotlin app, but I can't find anything about reading environment variables in the core librari

How to add a folder to `Path` environment variable in Windows 10 (with screenshots)

On StackOverflow and on the net in general, there are outdated and few guides on how to add a specific folder to the Windows 10 Path environment variable of the

How to create a pathlib relative path with a dot starting point?

I needed to create a relative path starting with the current directory as a "." dot For example, in windows ".\envs\.some.env" or "./envs/.some.env" elsewhere I

reads variable from a text file and set it to current PowerShell session env variable

let's say that I have a text file that defines some variables something like this file : .env USER=user DB_NAME=userDB DB_HOST=localhost DB_PORT=5432 and I wa

Laravel - accessing .env variables

I tried to get the environment variable from the .env in my root with Route::get('/test', function () { return "value is". getenv('APP_ENV'); }); and Ro

How to Use Environment Variables in a .env file to fill out other environment variable in the same .env file

I am using a base.env as an env_file for several of my docker services.In this base.env I have several parts of the environment variable that repeat throughout

How to setup environment variables for `flask run` on Windows?

I just started learning flask and I am stuck at setting up the Flask environment variables. I don't know how to setup the environment variables. Whenever I use

How to set up conda-installed R for use with RStudio?

I've been trying to set up my R using conda (eventually to use with Beaker Notebook) and I want to be able to use RStudio with my conda-installed version of R

Bash: how to unset an env variable with a hyphen (-)?

I have in my environment some variables that have an invalid identifier. When I try to unset them, I get the following error: $ unset A-B bash: unset: `A-B': n

How to pass environment variables to the gradle wrapper build using only command line?

I am trying to pass env variables locally with strictly a command line command. At deploy, these variables get passed into the docker container, but when runnin