Skip to content

Commit

Permalink
build: try using docker override file for host network mode
Browse files Browse the repository at this point in the history
- this is so we can avoid binding to 0.0.0.0 in the dev server
  • Loading branch information
ozyx committed Oct 1, 2024
1 parent 67da983 commit 95924a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/yamcs-quickstart-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ jobs:
run: |
mvn -B versions:set-property -Dproperty=yamcsVersion -DnewVersion=${{ matrix.yamcs-version }}
working-directory: quickstart
- name: create docker-compose.override.yml
run: |
# Create a docker-compose.override.yml file to override the default settings
# This override file will configure the Yamcs service to use host networking,
# and clear any port and network configurations.
cat <<EOF > docker-compose.override.yml
services:
yamcs:
network_mode: "host" # Use host networking
ports: [] # Clear ports
networks: [] # Clear networks
EOF
working-directory: quickstart/docker
- name: trigger make all from docker dir. Orphan and redirect output to docker/makeout.txt
run: |
touch makeout.txt
Expand Down
4 changes: 2 additions & 2 deletions .webpack/webpack.dev.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ const devConfig = {
proxy: [
{
context: ["/yamcs-proxy/"],
target: "http://0.0.0.0:8090/",
target: "http://localhost:8090/",
secure: false,
changeOrigin: true,
pathRewrite: { "^/yamcs-proxy/": "" },
},
{
context: ["/yamcs-proxy-ws/"],
target: "ws://0.0.0.0:8090/api/websocket",
target: "ws://localhost:8090/api/websocket",
secure: false,
changeOrigin: true,
ws: true,
Expand Down

0 comments on commit 95924a7

Please sign in to comment.