Skip to content

Allow the server to bind to a non-default port

Jonas Larsen requested to merge make_port_configurable into master

Sometimes we need to run more than a single Snowplow Micro instance.

Here is an example where we want to run a modified Snowplow Micro in parallel to the GDK Snowplow: gitlab!132775 (merged)

To avoid having to update the port number in ./snowplow-micro.sh to something other then 9090 I would like to propose this change.

Steps to validate

  1. Start server on default port ./snowplow-micro.sh.
  2. This will fail with this error Bind for 0.0.0.0:9090 failed: port is already allocated. if you're already running Snowplow Micro on port 9090.
  3. Start server on another port ./snowplow-micro.sh -p 9123.
  4. Check that Snowplow Micro is available at http://localhost:9123/micro/all
Edited by Jonas Larsen

Merge request reports