Skip to content

Commit

Permalink
Namespace converter
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Jan 19, 2024
1 parent b9ca262 commit 945b958
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
set -e

# replace localhost:8080 with {{placeholder "http.vars.full_host"}}:UI_PORT in /foxglove/default-layout.json file
# replace localhost:8080 with {{placeholder "http.vars.full_host"}}:UI_PORT in /foxglove/default-layout.json file (change file to do not modify volumen)
sed 's|localhost:8080|{{placeholder "http.vars.full_host"}}:{{env "UI_PORT"}}|g' /foxglove/default-layout.json > /foxglove/remote-layout.json
sed -i "s|<robot_namespace>|/$ROBOT_NAMESPACE|g" /foxglove/remote-layout.json

# Optionally override the default layout with one provided via bind mount
index_html=$(cat index.html)
Expand Down Expand Up @@ -37,4 +38,4 @@ if [[ "$DISABLE_INTERACTION" == "true" ]]; then
fi

# Continue executing the CMD
exec "$@"
exec "$@"

0 comments on commit 945b958

Please sign in to comment.