-
Notifications
You must be signed in to change notification settings - Fork 0
/
.envrc
31 lines (22 loc) · 918 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Contains environment variables and other bits customized for this workflow
# Use direnv to make it an even better user experience
# https://github.com/direnv/direnv
# https://rnorth.org/practical-direnv
# grep for all non-localhost IPv4 addresses
# Pick the last IP
IP=$(ifconfig | grep inet | grep -v inet6 | grep -v '127\.' | tr '\t' ' ' | sed 's/^ //g' | awk '{print $2}' | sed 's/addr://g' | sort | tail -n 1)
export CONCOURSE_EXTERNAL_URL
CONCOURSE_EXTERNAL_URL="http://${IP}:8080"
export FLY_CLI_VERSION
FLY_CLI_VERSION=3.8.0
export CONCOURSE_BASIC_AUTH_USERNAME
CONCOURSE_BASIC_AUTH_USERNAME=concourse
export CONCOURSE_BASIC_AUTH_PASSWORD
CONCOURSE_BASIC_AUTH_PASSWORD=changeme
export CONCOURSE_POSTGRES_USER
CONCOURSE_POSTGRES_USER=concourse
export CONCOURSE_POSTGRES_PASSWORD
CONCOURSE_POSTGRES_PASSWORD=changeme
export CONCOURSE_POSTGRES_DATABASE
CONCOURSE_POSTGRES_DATABASE=concourse