Sign inSign up

larsvh/meteor

By larsvh

•Updated almost 10 years ago

Simple Meteor Docker image with support for live development and automated project building.

Image
0

10K+

larsvh/meteor repository overview

⁠Meteor for Docker

You can find this image on the Docker Hub!⁠

This is a simple Meteor Docker image with support for live development and automated project building.

Built on the NodeJS⁠ image, it lets you run and build Meteor apps without having to install the Meteor tool itself.

⁠Current build status

ImageStatus
standaloneBuild Status
v1.4Build Status
v1.2Build Status

⁠What can I do with Meteor?

Meteor is a tool used to quickly build web and mobile applications.

  • The platform is based around JavaScript, in the front-end as well as in the back-end.
  • Data is passed reactively from the server to the clients, and vice-versa.

For more documentation, visit the Meteor Guide.⁠

⁠How do I use the image?

⁠Specify Meteor Versions (Patches)

Normally, the image uses the most recent version for that image (e.g. 1.2.1 for meteor:1.2).
If you need a different patch version, you can specify it via the $METEOR_RELEASE environment variable.

Note: The version specified in the $METEOR_RELEASE env variable MUST be a patch version belonging to the minor version
of that image! (e.g. 1.4.1.1 for meteor:1.4. Using 1.2.1 for meteor:1.4 will fail!)

⁠Build Environments

To control the current mode in which the application should run, you can set the environment variable APP_ENV to either development or production.

⁠Development Mode
  • PORT : The port that should be exposed on which the app will run.

Note: The port must be above port 1024, because the app runs without root access.

⁠Production Mode
  • MONGO_URL : The URL of the MongoDB that the app should use.
  • ROOT_URL : The URL of the app itself.
  • PORT : The port that should be exposed on which the app will run.

Note: The port must be above port 1024, because the app runs without root access.

⁠File Structure

The image expects your source code to be mounted to the /home/web/src directory.
If you want to use a different directory, you can set the $SRC_BASE environment variable at launch.

In that directory, the system will look for a settings.json file or a settings-default.json file, if your app needs to load specific settings.

The image will build the app's tarball to the /home/web/build directory, then extract and install it automatically.
If you want to use a different directory, you can set the $BUILD_BASE environment variable at launch.

⁠Standalone

This version of the image is just a NodeJS image with the Meteor tool preinstalled.
It can be used as an image in CI servers, or as a way to use Meteor without installing it.

⁠Currently supported versions

At the moment, these are the supported Meteor versions:

If you only need an image with the tool installed, no automisation, you can use the standalone image:

Tag summary

Content type

Image

Digest

Size

411.8 MB

Last updated

almost 10 years ago

docker pull larsvh/meteor