Skip to content

Commit

Permalink
fixed templates to include html files
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Oct 4, 2023
1 parent 68a2f47 commit db86eaf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
redir /ui /?ds={$DS_TYPE}&ds.url=ws%3A%2F%2F{http.request.host}%3A{$DS_PORT}

templates {
mime "application/json" "text/plain"
mime "application/json" "text/plain" "text/html"
}

file_server browse
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ COPY --from=urdf_builder /rosbot.urdf .
COPY --from=urdf_builder /rosbot_xl.urdf .
COPY --from=urdf_builder /panther.urdf .

# replace file:///ros2_ws with http://{{.Host}}:FOXGLOVE_PORT/ros2_ws in /src/rosbot_xl.urdf and /src/rosbot.urdf files
RUN sed -i 's|file:///ros2_ws|http://{{.Host}}:{{env "UI_PORT"}}/ros2_ws|g' /src/rosbot_xl.urdf /src/rosbot.urdf /src/panther.urdf

EXPOSE 8080

ENV DS_TYPE=rosbridge-websocket
# ENV DS_TYPE=foxglove-websocket
ENV DS_PORT=9090
ENV UI_PORT=8080

# replace file:///ros2_ws with http://{{.Host}}:UI_PORT/ros2_ws in /src/rosbot_xl.urdf and /src/rosbot.urdf files
RUN sed -i 's|file:///ros2_ws|http://{{.Host}}:{{env "UI_PORT"}}/ros2_ws|g' /src/rosbot_xl.urdf /src/rosbot.urdf /src/panther.urdf

ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]
2 changes: 1 addition & 1 deletion demo/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
foxglove:
image: husarion/foxglove:add-panther-v1.72.0
image: husarion/foxglove:v1.72.0
ports:
- 8080:8080
volumes:
Expand Down

0 comments on commit db86eaf

Please sign in to comment.