-
Notifications
You must be signed in to change notification settings - Fork 119
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
Question: Is it possible to use the '--settings' flag for the meteor build process? #5
Comments
Yes. As noted in the README, you’re meant to copy the example Dockerfile from this repo into your project. You can then edit it however you need, such as to add support for Per the docs at https://guide.meteor.com/deployment.html#environment you can pass the RUN export METEOR_SETTINGS="$(cat $APP_BUNDLE_FOLDER/bundle/settings.json)" |
Thanks! Wilco |
I found a solution on https://medium.com/p/4bccb26f6ff0/responses/show and in the Dockerfile (after copying package.json and settings.json to $APP_BUNDLE_FOLDER/bundle/): |
@clemenspeters would you mind to share your Dockerfile? |
I was able to run my application using the @clemenspeters workaround (thanks!). However, I see that the console log gets stuck when running the
I changed the @GeoffreyBooth any ideas what it could be? it doesn't log anything |
So The export METEOR_SETTINGS=$(cat settings.json) and in your Dockerfile add COPY startup.sh / |
@GeoffreyBooth That's quite helpful, I'm gonna try it, thanks a lot! |
@GeoffreyBooth I tried it but didn't work. I copied the
So; I think I'm using the wrong base image, not sure, this is what I have: |
Ok, I made a custom |
Glad you figured it out. This is general Docker stuff, not specific to Meteor or this image. Look up "override Docker entrypoint" and you'll find lots of articles on best practices on how to do so. |
Merge pull request #67 from antwaremx/master
Thanks for providing this! It was the first script for me that worked out-of-the-box for creating containerized meteor applications.
For my current project I have an Meteor application that I build with the '--settings' flag. Is it somehow possible to get this done using your docker-file?
Thanks and best regards,
Wilco
The text was updated successfully, but these errors were encountered: