Skip to content

Commit

Permalink
add more devcontainer environment (#81)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Siwiec <[email protected]>
  • Loading branch information
rizzza authored Oct 20, 2023
1 parent f0f67b1 commit 6efab7f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
LOADBALANCER_MANAGER_HAPROXY_HAPROXY_CONFIG_BASE=/workspaces/.devcontainer/config/haproxy.cfg
LOADBALANCER_MANAGER_HAPROXY_EVENTS_NATS_CREDSFILE=/etc/nats-auth/manager.creds
LOADBALANCER_MANAGER_HAPROXY_EVENTS_NATS_SUBSCRIBEPREFIX=com.infratographer
LOADBALANCER_MANAGER_HAPROXY_LOADBALANCERAPI_URL=http://load-balancer-api:7608
LOADBALANCER_MANAGER_HAPROXY_LOADBALANCER_ID=loadbal-testing
LOADBALANCER_MANAGER_HAPROXY_CHANGE_TOPICS="*.load-balancer-pool,*.load-balancer-origin,*.load-balancer-port"
5 changes: 2 additions & 3 deletions .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ services:
context: .
dockerfile: Dockerfile
command: sleep infinity
environment:
LOADBALANCER_MANAGER_HAPROXY_EVENTS_NATS_CREDSFILE: /etc/nats-auth/manager.creds
LOADBALANCER_MANAGER_HAPROXY_EVENTS_NATS_SUBSCRIBEPREFIX: com.infratographer
env_file:
- .env
volumes:
- ..:/workspaces:cached
- nats-auth:/etc/nats-auth
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ clean: ## Clean up all the things
vendor: ## Vendors dependencies
@go mod download
@go mod tidy

go-run: ## Runs the app
@echo --- Running binary...
@date --rfc-3339=seconds
@go run main.go run

0 comments on commit 6efab7f

Please sign in to comment.