Skip to content

Commit a20b5bb

Browse files
committed
make: add .env file
1 parent 75fb779 commit a20b5bb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
kontrol-data.*
22
_etcd
33
kitectl/kitectl
4+
.env
45

Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ postgres:
3737
psql -h $(POSTGRES_HOST) kontrol -f kontrol/002-table.sql -U postgres
3838
psql -h $(POSTGRES_HOST) kontrol -f kontrol/003-migration-001-add-kite-key-table.sql -U postgres
3939
psql -h $(POSTGRES_HOST) kontrol -f kontrol/003-migration-002-add-key-indexes.sql -U postgres
40-
echo "export KONTROL_POSTGRES_HOST=$(POSTGRES_HOST) KONTROL_STORAGE=postgres KONTROL_POSTGRES_USERNAME=kontrolapplication KONTROL_POSTGRES_DBNAME=kontrol KONTROL_POSTGRES_PASSWORD=somerandompassword"
40+
echo "#!/bin/bash" > .env
41+
echo "alias psql-kite='psql postgresql://postgres@$(POSTGRES_HOST):5432/kontrol'" >> .env
42+
echo "export KONTROL_POSTGRES_HOST=$(POSTGRES_HOST)" >> .env
43+
echo "export KONTROL_STORAGE=postgres" >> .env
44+
echo "export KONTROL_POSTGRES_USERNAME=kontrolapplication" >> .env
45+
echo "export KONTROL_POSTGRES_DBNAME=kontrol" >> .env
46+
echo "export KONTROL_POSTGRES_PASSWORD=somerandompassword" >> .env
4147

4248
postgres-logs:
4349
docker exec -ti postgres /bin/bash -c 'tail -f /var/lib/postgresql/data/pg_log/*.log'

kontrol/kontrol_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ func init() {
131131
}
132132

133133
func TestUpdateKeys(t *testing.T) {
134+
pause("starting TestUpdateKeys")
135+
134136
kon, conf := startKontrol(testkeys.Private, testkeys.Public, 5501)
135137
defer kon.Close()
136138

0 commit comments

Comments
 (0)