Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grigio/docker-meteor
A small Docker image to run you Meteor apps without surprises
https://github.com/grigio/docker-meteor
Last synced: 3 months ago
JSON representation
A small Docker image to run you Meteor apps without surprises
- Host: GitHub
- URL: https://github.com/grigio/docker-meteor
- Owner: grigio
- Created: 2014-12-26T17:43:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-24T15:36:05.000Z (almost 10 years ago)
- Last Synced: 2024-07-18T20:48:05.740Z (4 months ago)
- Language: Shell
- Size: 136 KB
- Stars: 18
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grigio/docker-meteor
![docker-meteor](https://cloud.githubusercontent.com/assets/8074/5562265/a3cba180-8e0e-11e4-8bab-9a0f6ec0a395.jpg)
This is a docker container image which use `node` provided by Meteor itself. You can use `grigio/meteor:` as a development sandbox or as a base to build your production image for your project.
[![grigio meteor](http://dockeri.co/image/grigio/meteor)](https://hub.docker.com/u/grigio/meteor/)
The Meteor images available are on [Docker hub](https://registry.hub.docker.com/u/grigio/meteor/tags/manage/)
More info in a dedicated [post](http://grigio.org/meteor_and_docker_grigio_docker_meteor).
### Development mode
```shell
❯ sudo docker run -it -v $PWD/my-meteor-app:/app -p 1234:8080 grigio/meteor:1.0 /bin/bash
root@4bae180c01a0:/app# meteor --release $METEOR_RELEASE -p 8080
[[[[[ ~app ]]]]]=> Started proxy.
=> Started MongoDB.
=> Started your app.=> App running at: http://localhost:8080/
```### Production mode
You need to build a `Dockerfile` based on `grigio/meteor-docker` an then run it.```dockerfile
FROM grigio/meteor:1.0
MAINTAINER Your Name# Add the source of your Meteor app and build
ADD ./demo /app
RUN /meteor-build.sh# Run the generated files
CMD /meteor-run.sh
```
```bash
❯ sudo docker build -t grigio/docker-meteor-demo .
```
```bash
❯ sudo docker run -e "MONGO_URL=mongodb://172.17.0.4:27017/mytest" \
-e "ROOT_URL=http://example.com" -p 5555:8080 -it grigio/docker-meteor-demo sh /meteor-run.sh
```
..and the Meteor app starts in seconds :)