Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development: allow to use --ngrok when starting Docker #151

Merged
merged 3 commits into from
Jun 21, 2022

Conversation

humitos
Copy link
Member

@humitos humitos commented Jun 17, 2022

Together with readthedocs/readthedocs.org#9353 this
commit will allow developers to run NGROK with the local instance just by
passing another argument.

inv docker.up --ngrok readthedocs.ngrok.io

Together with readthedocs/readthedocs.org#9353 this
commit will allow developers to run NGROK with the local instance just by
passing another argument.

```
inv docker.up --ngrok readthedocs.ngrok.io
```
Copy link
Contributor

@benjaoming benjaoming left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I tried using it locally, albeit without installing ngrok. But I really like it, it's a great idea!

@@ -23,7 +23,7 @@ services:
- proxito
- storage
volumes:
- ${PWD}/dockerfiles/nginx:/etc/nginx/conf.d
- ${PWD}/dockerfiles/nginx:/etc/nginx/templates
Copy link
Contributor

Choose a reason for hiding this comment

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

Really good idea to start using envsubst 👍 This is a good step towards convergence between development docker images and production. Ideally, the same Docker images can be used in multiple deployments and after having isolated variables as environment variables, we can reduce reliance on volumes and build configurations straight into the images.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note that this is incompatible with current readthedocs-corporate setup.

Copy link
Member Author

Choose a reason for hiding this comment

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

Note that this is incompatible with current readthedocs-corporate setup.

Yes, we will need to do some work there to support ngrok as well.

dockerfiles/tasks.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants