Skip to content
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

Request for docker image #26

Closed
bluenevus opened this issue Dec 15, 2018 · 5 comments
Closed

Request for docker image #26

bluenevus opened this issue Dec 15, 2018 · 5 comments

Comments

@bluenevus
Copy link

Humble request for a docker image

@entrptaher
Copy link
Member

The current version is pretty old, but hold on, let me create one, since it will also improve development setup.

@bluenevus
Copy link
Author

Thanks!!!

@bluenevus
Copy link
Author

any luck on that docker image?

@entrptaher
Copy link
Member

Clone the repo and use the following docker file, all preconfigured just as explained on the linux setup. :D

Here are the steps.

Create a Dockerfile:

FROM node:8

# Install all dependencies
RUN apt-get update
RUN apt-get install -y curl build-essential g++ libcairo2-dev libjpeg-dev libgif-dev libpango1.0-dev libcairo2-dev libjpeg62-turbo-dev libpango1.0-dev libgif-dev build-essential g++

# Install meteor 1.6
RUN curl https://install.meteor.com/?release=1.6 | /bin/sh
RUN meteor npm install -g yarn node-gyp

# Install Packages
ADD . /opt/wireflow
WORKDIR /opt/wireflow
RUN meteor yarn --ignore-optional
# The dependencies changed since then
RUN meteor yarn add bufferutil utf-8-validate canvas xmldom --ignore-optional

# Set environment variables 
ENV LC_ALL C
ENV METEOR_ALLOW_SUPERUSER true

# Expose ports
EXPOSE 3000

# Start the app
CMD yarn run start

Build it:

sudo docker build -t wireflow .

Run it:

sudo docker run --net=host -it wireflow

Here are the drawbacks of this strategy:

  • You will get this warning (Even with METEOR_ALLOW_SUPERUSER ...), however it's sufficient to run meteor at this point.
  • This will run as a development version, not a production version.

@entrptaher
Copy link
Member

Feel free to reopen if this does not solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants