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

Installation on docker #43

Open
acavas opened this issue Jan 11, 2018 · 10 comments
Open

Installation on docker #43

acavas opened this issue Jan 11, 2018 · 10 comments

Comments

@acavas
Copy link

acavas commented Jan 11, 2018

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
Copy link

sunitavc commented May 6, 2018

This was super helpful

@pedmindset
Copy link

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
Copy link

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
Copy link

1kidvidiot commented Jan 25, 2019

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
Copy link

beejaz commented Feb 25, 2019

@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
Copy link

celsoagra commented Apr 5, 2019

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
Copy link

dplaza commented Apr 11, 2019

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

@haison123
Copy link

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
Copy link

hazardousmonk commented Oct 30, 2019

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
Copy link

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.

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

10 participants