Git Product home page Git Product logo

Comments (7)

GeoffreyBooth avatar GeoffreyBooth commented on July 28, 2024 1

Other hand, we could use with any meteor docker images such as

Yes, but then you lose the advantages described in https://github.com/disney/meteor-base/blob/master/README.md#why-this-image-instead-of-some-others

from meteor-base.

GeoffreyBooth avatar GeoffreyBooth commented on July 28, 2024

Perhaps, I haven't tested. Please let me know what you find 😀 You'll need to use the build-with-native-dependencies Dockerfile, as those older versions of Meteor lack the new version of Fibers that includes an Alpine-compatible binary so therefore it must be compiled.

from meteor-base.

thearabbit avatar thearabbit commented on July 28, 2024

thanks for your reply. This file app-with-native-dependencies.dockerfile???

# The tag here should match the Meteor version of your app, per .meteor/release
FROM geoffreybooth/meteor-base:1.9

# Copy app package.json and package-lock.json into container
COPY ./app/package*.json $APP_SOURCE_FOLDER/

RUN bash $SCRIPTS_FOLDER/build-app-npm-dependencies.sh

# Copy app source into container
COPY ./app $APP_SOURCE_FOLDER/

RUN bash $SCRIPTS_FOLDER/build-meteor-bundle.sh


# Use the specific version of Node expected by your Meteor release, per https://docs.meteor.com/changelog.html; this is expected for Meteor 1.9
FROM node:12.14.0-alpine

ENV APP_BUNDLE_FOLDER /opt/bundle
ENV SCRIPTS_FOLDER /docker

# Install OS build dependencies, which we remove later after we’ve compiled native Node extensions
RUN apk --no-cache --virtual .node-gyp-compilation-dependencies add \
		g++ \
		make \
		python \
	# And runtime dependencies, which we keep
	&& apk --no-cache add \
		bash \
		ca-certificates

# Copy in entrypoint
COPY --from=0 $SCRIPTS_FOLDER $SCRIPTS_FOLDER/

# Copy in app bundle
COPY --from=0 $APP_BUNDLE_FOLDER/bundle $APP_BUNDLE_FOLDER/bundle/

RUN bash $SCRIPTS_FOLDER/build-meteor-npm-dependencies.sh --build-from-source \
	&& apk del .node-gyp-compilation-dependencies

# Start app
ENTRYPOINT ["/docker/entrypoint.sh"]

CMD ["node", "main.js"]

Have any edit this file???

FROM geoffreybooth/meteor-base:1.4.xxx
.....
FROM node:x.x.x-alpine

from meteor-base.

thearabbit avatar thearabbit commented on July 28, 2024

But I checked available tag 1.6 (lowest)!

from meteor-base.

GeoffreyBooth avatar GeoffreyBooth commented on July 28, 2024

But I checked available tag 1.6 (lowest)!

Yes, you need to build the other images. Clone this repo and edit versions.sh with the versions you want to support, then run build.sh to build them locally. Then you'll have e.g. geoffreybooth/meteor-base:1.4.0 in your local Docker registry, and you could edit a fork of app-with-native-dependencies.dockerfile to FROM that image.

Those earlier versions of Meteor used older versions of Node, so you'll also need to change the version of Node in that FROM line.

from meteor-base.

thearabbit avatar thearabbit commented on July 28, 2024

Very clear.
Other hand, we could use with any meteor docker images such as

  • kadirahq/meteord
  • abernix/meteord:base
  • abernix/meteord:node-8.4.0-base
  • zodern/meteor:root ......
    ?????

from meteor-base.

thearabbit avatar thearabbit commented on July 28, 2024

I mean that, I use this image with your Dockerfile

// Dockerfile
# The tag here should match the Meteor version of your app, per .meteor/release
FROM abernix/meteord:base // -----  Custom any docker image

# Copy app package.json and package-lock.json into container
COPY ./package*.json $APP_SOURCE_FOLDER/

RUN bash $SCRIPTS_FOLDER/build-app-npm-dependencies.sh

# Copy app source into container
COPY ./ $APP_SOURCE_FOLDER/

RUN bash $SCRIPTS_FOLDER/build-meteor-bundle.sh


# Use the specific version of Node expected by your Meteor release, per https://docs.meteor.com/changelog.html; this is expected for Meteor 1.9
# How to check:  meteor node --version
FROM node:4.6.2-alpine

.......

And then I run docker build -t yourname/app .
But don't work

from meteor-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.