foradian / fluxday

A user-friendly, free & opensource task & productivity management tool for growing startups
http://fluxday.io/
Apache License 2.0
476 stars 174 forks source link

Installation on docker #43

Open acavas opened 6 years ago

acavas commented 6 years ago

Hi,

Had some issues with installing this software on docker, succeeded eventually just wanted to share:

  1. git clone https://github.com/foradian/fluxday.git
  2. cp config/database.yml.example config/database.yml
  3. cp app.env.example app.env
  4. cp db.env.example db.env (had to do this also)
  5. container fluxday-db is created later so you have to edit app.env file and change DB_HOST=db to DB_HOST=fluxday-db
  6. edit docker-compose.yml and change image: mysql to image: mysql:5.6 (works with 5.6 tag, doesnt work with the latest mysql version) 7.docker-compose up -d --build --remove-orphans
  7. docker exec -it fluxday /bin/bash (to log in to the container) 9.rake db:create 10.rake db:migrate 11.rake db:seed
  8. bundle install
  9. rails server &

I also created subdomain and set nginx as frontend and created a proxy to localhost:3000. Hope this helps.

If you have any problems with these steps, Im here to help. BTW this is a great software, worth of extra figuring out.

Best regards,

sunitavc commented 6 years ago

This was super helpful

pedmindset commented 5 years ago

Also, before gem bundle, i had to install

  1. sudo apt-get install ruby-all-dev
  2. apt install make
  3. apt install gcc
  4. apt install g++
  5. apt-get install libmysqlclient-dev
  6. gem install mysql2 -v 0.3.21
1kidvidiot commented 5 years ago

Hello - I have been trying to get this running on Ubuntu server 18.10 - which are you using? I have not been able to get it to run - not a whole lot of documentation out there, and I am new to ruby on rails - thanks for your help!

1kidvidiot commented 5 years ago

This is as far as I can get:
Error installing bundler: bundler requires Ruby version >= 2.3.0.

I have tried again and again and this is the highest it installs

beejaz commented 5 years ago

@1kidvidiot I changed line 33 in Dockerfile.development from RUN gem install bundler to: RUN gem install bundler -v '1.17.3'

And the installation worked!

celsoagra commented 5 years ago

Hello all, After change line 33,

I got an new error:

Fetching rdoc 6.1.1
Installing rdoc 6.1.1
Gem::InstallError: rdoc requires Ruby version >= 2.2.2.
An error occurred while installing rdoc (6.1.1), and Bundler cannot continue.
Make sure that `gem install rdoc -v '6.1.1' --source 'https://rubygems.org/'`
succeeds before bundling.

In Gemfile:
  sdoc was resolved to 1.0.0, which depends on
    rdoc
dplaza commented 5 years ago

@celsoagra add gem 'rdoc', '~> 5.1.0' in your Gemfile, right before gem 'sdoc', require: false

haison123 commented 4 years ago

Help me pls!!!! after run docker-compose up -d --build --remove-orphans , there was an error:

E: Sub-process /usr/bin/dpkg returned an error code (1) ERROR: Service 'fluxday-app' failed to build: The command '/bin/sh -c apt-get upgrade -y' returned a non-zero code: 100

hazardousmonk commented 4 years ago

Help me pls!!!! after run docker-compose up -d --build --remove-orphans , there was an error:

E: Sub-process /usr/bin/dpkg returned an error code (1) ERROR: Service 'fluxday-app' failed to build: The command '/bin/sh -c apt-get upgrade -y' returned a non-zero code: 100

What you need to do is open the Dockerfile.developer and add the following line before the RUN apt-get upgrade -y Line to add : RUN apt-get install -y $PACKAGENAME --option=Dpkg::Options::=--force-confdef

Replace $PACKAGENAME with the package that is causing the issues. More info here https://medium.com/the-singularity-is-near/docker-build-dpkg-error-processing-package-configure-end-of-file-on-stdin-at-conffile-89610189f1dd

martinelsner commented 4 years ago

We forked this repository and applied several of the fixes described in this thread plus some others to make it work. Feel free to clone from https://gitlab.com/gruporhes/fluxday The README file was modified to reflect our changes.