Installation on docker
acavas opened this issue · 10 comments
Hi,
Had some issues with installing this software on docker, succeeded eventually just wanted to share:
- git clone https://github.com/foradian/fluxday.git
- cp config/database.yml.example config/database.yml
- cp app.env.example app.env
- cp db.env.example db.env (had to do this also)
- container fluxday-db is created later so you have to edit app.env file and change
DB_HOST=db to DB_HOST=fluxday-db - 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 - docker exec -it fluxday /bin/bash (to log in to the container)
9.rake db:create
10.rake db:migrate
11.rake db:seed - bundle install
- 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,
This was super helpful
Also, before gem bundle, i had to install
- sudo apt-get install ruby-all-dev
- apt install make
- apt install gcc
- apt install g++
- apt-get install libmysqlclient-dev
- gem install mysql2 -v 0.3.21
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!
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
@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!
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
@celsoagra add gem 'rdoc', '~> 5.1.0'
in your Gemfile, right before gem 'sdoc', require: false
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
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
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.