8000 Change port to --net=host in startup script by blakecduncan · Pull Request #477 · getwax/bls-wallet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Change port to --net=host in startup script #477

Merged
merged 1 commit into from
Jan 23, 2023
Merged

Conversation

blakecduncan
Copy link
Contributor

What is this PR doing?

I was trying to update the optimism aggregator with the latest changes in main. Two big things included my change to add a status column and the change to take the env vars out of the docker image.

I noticed when starting up the container with the the new start-docker script that the aggregator was failing to connect to postgres. I had to make this change and I also had to change the PG_HOST to PG_HOST=127.0.0.1 instead of using localhost. I got the idea about the PG_HOST from this thread. Not sure why it wasn't working before.

How can these changes be manually tested?

Build a docker image and try to start it up

Does this PR resolve or contribute to any issues?

No

Checklist

  • I have manually tested these changes
  • Post a link to the PR in the group chat

Guidelines

  • If your PR is not ready, mark it as a draft
  • The resolve conversation button is for reviewers, not authors
    • (But add a 'done' comment or similar)

@github-actions github-actions bot added the aggregator Aggregator backend related label Jan 20, 2023
@@ -36,7 +36,7 @@ echo "Creating $CONTAINER_NAME using $IMAGE_NAME"
docker run \
--name "$CONTAINER_NAME" \
-d \
-p$PORT:$PORT \
--net=host
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change and setting PG_HOST=127.0.0.1 in the env vars fixed my issue

@blakecduncan blakecduncan requested a review from voltrevo January 20, 2023 16:55
@voltrevo voltrevo merged commit 3b79d55 into main Jan 23, 2023
@voltrevo voltrevo deleted the updateStartDocker branch January 23, 2023 04:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aggregator Aggregator backend related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0