Questions tagged [environment-variables]
The environment-variables tag has no usage guidance.
25
questions
1
vote
1
answer
39
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 ...
0
votes
0
answers
41
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 ...
1
vote
1
answer
69
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: ...
1
vote
1
answer
34
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 ...
1
vote
1
answer
47
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 ...
0
votes
1
answer
386
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:
...
3
votes
2
answers
7k
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 ...
2
votes
0
answers
413
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 ...
1
vote
1
answer
771
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@...
3
votes
1
answer
3k
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
...
3
votes
1
answer
1k
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 ...
1
vote
1
answer
370
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 ...
10
votes
5
answers
34k
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 ...
1
vote
2
answers
582
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 ...
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$...
1
vote
1
answer
469
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 ...
2
votes
1
answer
1k
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 ...
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 "[*] ...
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 ...
2
votes
3
answers
9k
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 = "...
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 ...
0
votes
3
answers
160
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?
...
2
votes
2
answers
150
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....
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 ...
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 ...