Public | Automated Build

Last pushed: a year ago
Short Description
A set of linux tools to help you build meteor app with docker easily.
Full Description

Meteor Tools

A set of linux tools to help you build meteor app with docker easily.

Basic Usage

Add following Dockerfile into the root of your app:

FROM zhaoyao91/meteor-tools

COPY . /src

RUN /tools/install_base.sh \
  && /tools/install_node.sh 4.6.0 \
  && /tools/install_meteor.sh \
  && /tools/build_app.sh /src /app \
  && /tools/prepare_app.sh /app \
  && /tools/cleanup.sh && rm -rf /src

CMD /tools/run_app.sh /app

EXPOSE 80

Then you can build the docker image with:

docker build -t yourname/appname .

Then you can run your meteor image with

docker run -d \
  -e ROOT_URL=http://yourapp.com \
  -e MONGO_URL=mongodb://url \
  -e MONGO_OPLOG_URL=mongodb://oplog_url \
  -p 80:80 \
  yourname/appname

Advanced

You can look through the code and try to customize your own process of dockerizing your app.

Contributions

Thanks to the meteord project.

License

MIT

Docker Pull Command
Owner
zhaoyao91
Source Repository

Comments (0)