Questions tagged [environment-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
6 views

GitHub Variables not available in .NET test file

I wrote some F# tests with NUnit, all of them pass just fine when I run them locally. The project is also uploaded on GitHub, there the paths are incorrect. I wrote as well tests in PowerShell ...
Alex_P's user avatar
  • 99
1 vote
1 answer
49 views

How many deployment environments are appropriate for SPA + API architecture?

My company uses Azure as our cloud-infrastructure provider, and we are making use of their Azure Webapp PaaS offering to individually deploy our SPA (react.js) and corresponding API (Golang). Haven't ...
Hassan Zaidi's user avatar
0 votes
0 answers
47 views

Inject configuration from Terraform into Kubernetes without hardcoding

I have a pretty simple setup: An AWS DocumentDB managed using Terraform A container running on EKS, managed in a Flux (GitOps) repository The container needs to access the DocumentDB, so somehow I ...
ggradnig's user avatar
  • 113
1 vote
1 answer
82 views

Using kubernetes secret env var inside another env var

I have a secret being used as env var in another env var as follows: - name: "PWD" valueFrom: secretKeyRef: name: "credentials" key: "password" - name: ...
Harshit Nagar's user avatar
1 vote
1 answer
37 views

Deploying environment secrets to services

I know I can use CD pipelines to deploy an app to a given environment (dev/stage/prod) Given that each environment should have its own environment variables/secrets for each app, how can I streamline ...
Jordan Renaud's user avatar
1 vote
1 answer
62 views

Is there a safe way to archive Azure App Services application settings?

I successfully deployed a fastAPI onto Azure App Services. However, the environmental variables that I specified into the Configurations > App Settings pane got unexpectedly deleted, thus ...
Sheldon's user avatar
  • 95
0 votes
1 answer
431 views

Pass variables form current shell environment to the node app

Please help me somebody with passing variables to node app. Given: node app on ubuntu package.json contains scripts { start: node index.js } The app is started with command npm run start Problem: ...
Vadzim's user avatar
  • 1
4 votes
2 answers
8k views

Azure Devops Pipeline variables in Powershell

I've tried to figure this out and I can't see why my ipaddress is not getting set. I've checked code samples and they all suggest I am doing everything correct. ip variable defined here: This is my ...
cdsln's user avatar
  • 161
2 votes
0 answers
495 views

Substitute env_file values with .env values on docker compose

Is it possible to substitute (without the use of external tools like envsubst) values in an environment file used in docker-compose (using env_file) with values on a .env file in the folder? Say I ...
Jcl's user avatar
  • 121
1 vote
1 answer
875 views

How to access a fully qualified domain name through "localhost"?

About nine minutes into a tutorial on ERPNext I followed directions as: root@mordor:/home/nicholas/git/frappe_docker# root@mordor:/home/nicholas/git/frappe_docker# cat .env LETSENCRYPT_EMAIL=nicholas@...
Nicholas Saunders's user avatar
3 votes
1 answer
4k views

Pass environment variables from pipeline job A to pipeline job B

I passed params to pipeline B and set the environment variables from parameters. However, "${params.URL}" is evaluated as null. Pipeline A is declared in Jenkinsfile: pipeline { agent any ...
rokpoto.com's user avatar
3 votes
1 answer
2k views

What approach should I take to store environment variables for a repo?

I am setting up a new infrastructure as code repository for a small to medium size project. The problem I am currently trying to solve is how to store my environment variables such that they can be ...
Savvly's user avatar
  • 33
1 vote
1 answer
381 views

Why is Rails (with Nginx/Passenger via Ansible) unable to see my RAILS_MASTER_KEY environment variable?

I'm writing Ansible playbooks to provision an Ubuntu 18.04 server. I want to provision the server for a Rails application using Passenger and Nginx. I used geerlingguy.passenger from Ansible Galaxy ...
afarley's user avatar
  • 111
10 votes
5 answers
36k views

Docker compose volume syntax valid for Windows and Linux

We have developers working on an app using both Windows and Linux. The application is built within a Docker container, and ships a docker-compose specification for the build environment. The local ...
Bruce Becker's user avatar
  • 3,573
1 vote
2 answers
726 views

How to handle different credentials in continuous integration?

I am using teamcity to automatically build and test a nodejs application. The problem I am facing is that the application needs to have some environment variables set during the build phase, as well ...
Cyclonecode's user avatar
5 votes
3 answers
11k views

How to pass Gitlab env var with sensitive characters to bash script?

I have the following situation: I'm storing sensitive data in Gitlab's environment and then passing these variables to a deployment script in bash. Gitlab's env var: Key: sensitive_var Value: aaa$...
JJ Yong's user avatar
  • 53
1 vote
1 answer
535 views

Jenkins won't substitute variables when trying to check out from perforce

I want to generalize my code so that it can pull from perforce for any files marked with a type "perforce" because some files need to downloaded from the artifactory instead. I want to sub in the ...
Jack Stevens's user avatar
2 votes
1 answer
2k views

Can we reuse Variables across variable groups in Azure DevOps?

I'm using DevOps to deploy Azure Data Factory ARM template I'm using a deployment pipeline to take artifacts from a prior build pipeline and deploy to various environments (TEST, PROD) I've created ...
Nick.Mc's user avatar
  • 123
1 vote
1 answer
12k views

Set environment variables then run script in Jenkins Scripted Pipeline

I am new to Jenkins, Groovy and pipelines. I have created a simple pipeline stage like so: //working build but not setting env variables node('build-01') { stage('Building') { echo "[*] ...
Perplexabot's user avatar
11 votes
4 answers
8k views

docker-compose.yml - make network name configurable via environment variable

I have a docker compose file with env variables for stage specific configurations. As long as env variables are used in values in docker-compose.yml everything is fine, but the problem is with the ...
ivicaa's user avatar
  • 260
2 votes
3 answers
10k views

How to define global variables in groovy file, which I want to load and consume?

I have a Jenkins parent groovy file which consumes the child groovy file Parent grooy file: ... def child = load 'child-groovy-file'; child.execute(); Child groovy file: a = "first letter"; b = "...
omkar sirra's user avatar
0 votes
2 answers
1k views

How to get list of env variables from the root folder to jenkins job?

Using configure option, when we check the environment variables, we get only the variables which are available with in the folder or job. But, I want to get complete list of env variable from the ...
omkar sirra's user avatar
0 votes
3 answers
170 views

Is there a php (or composer) command to change upload_max_filesize && post_max_size from terminal?

Is there a php (or composer) terminal command to change the php.ini variables upload_max_filesize and post_max_size from terminal to some value directly from terminal, without sed or awk operations? ...
user avatar
2 votes
2 answers
164 views

Environment variable names, when my development environment has multiple projects

The context is that I'm looking at doing staging/testing and production on a kubernetes cluster. Where I might have some code that looks like this: doSomething({ username: process.env....
dwjohnston's user avatar
4 votes
1 answer
8k views

Accessing the committer's name as a Jenkinsfile environment variable

Using the env.BRANCH_NAME variable accessible in the Jenkinsfile outside of the pipeline{} block, I have set up a variable used to conditionally set the node used to build the git branch. I would like ...
Michael Ficocelli's user avatar
11 votes
2 answers
2k views

How should I store my environment variables?

This is a very broad question about methods and advice regarding environment variables / structure. But ultimately I'm looking for answers for the very specific question of 'How should I store my ...
Naphta's user avatar
  • 627