Skip to content

Commit d0794ba

Browse files
committed
Support customising tideways hostname
1 parent 4dff1fb commit d0794ba

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

tideways/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ RUN echo 'deb http://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages debian m
1313
&& rm -rf /var/lib/apt/lists/*
1414

1515
COPY ./etc/ /etc/
16+
COPY ./usr/ /usr/

tideways/etc/confd/templates/supervisor/tideways_daemon.conf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[program:tideways_daemon]
2-
command = /usr/bin/tideways-daemon --hostname=tideways-daemon --address=0.0.0.0:9135 --udp=0.0.0.0:9136
2+
command = /usr/bin/tideways-daemon --hostname="{{ getenv "TIDEWAYS_HOSTNAME" }}" --address=0.0.0.0:9135 --udp=0.0.0.0:9136 --env="{{ getenv "TIDEWAYS_ENVIRONMENT" }}"
33
stdout_logfile=/dev/stdout
44
stdout_logfile_maxbytes=0
55
stderr_logfile=/dev/stderr
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
export TIDEWAYS_HOSTNAME=${TIDEWAYS_HOSTNAME:-tideways-daemon}
4+
export TIDEWAYS_ENVIRONMENT=${TIDEWAYS_ENVIRONMENT:-production}

0 commit comments

Comments
 (0)