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

Improving docker #363

Closed
wants to merge 33 commits into from
Closed

Conversation

alaxalves
Copy link
Member

@alaxalves alaxalves commented Feb 27, 2019

Fixes #351
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!

  • tests pass -- rake test
  • code has been rebased on top of latest master (check if another pull request was added recently, and please rebase)
  • pull request is descriptively named and, if possible, multiple commits squashed if they're smaller changes

Thanks!

@welcome
Copy link

welcome bot commented Feb 27, 2019

Thanks for opening this pull request! Dangerbot will test out your code and reply in a bit with some pointers and requests.
There may be some errors, but don't worry! We're here to help! 👍🎉😄

@alaxalves alaxalves force-pushed the improving-docker branch 6 times, most recently from c8b204b to 86353c9 Compare February 27, 2019 12:56
@alaxalves
Copy link
Member Author

It would be great having docker for development environment too. If you'd like I could work on this too. 😄

Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
@jywarren
Copy link
Member

Oh wow, lots of changes here. Pinging @icarito for a review! Thank you!

Copy link
Member

@icarito icarito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test this locally, some good ideas here! I've been working exactly on this issue of dependencies for plots2 because we've been installing bundles and modules at build time, if it works maybe we can adopt it for publiclab.org.

Dockerfile Show resolved Hide resolved
docker-compose.yml Show resolved Hide resolved
docker-compose.yml Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
@icarito icarito mentioned this pull request Mar 1, 2019
@icarito
Copy link
Member

icarito commented Mar 1, 2019

Trying this but I'm failing to install assets with bower... maybe I'll try #357 too

jywarren and others added 4 commits March 16, 2019 15:22
* starting to move things into exporter lib, parameterize

* additional mysql2 adapter change, sqlite compatibility

* moved almost all of exporter code into ruby lib

* Try to update GDAL from sources

* Update Dockerfile

* Try running Buster (publiclab#186)

* Try running Buster

* Include binary GDal

* Reorder Dockerfile

* Install npm

* Tweak apt command

* Update Dockerfile

* Simplfy

* Rollback ruby upgrade and rather install 2.4.4 from rvm

* Add login shell to support rvm

* Mysql deps

* Include git

* Fix entry command

* Move start command

* Revert "Fix entry command"

This reverts commit 1833f41.

* Remove entrypoint from Dockerfile

* Add -l parameter to bash

* More deps

* Bump mysql2 from 0.3.21 to 0.5.2

Bumps [mysql2](https://github.com/brianmario/mysql2) from 0.3.21 to 0.5.2.
- [Release notes](https://github.com/brianmario/mysql2/releases)
- [Changelog](https://github.com/brianmario/mysql2/blob/master/CHANGELOG.md)
- [Commits](brianmario/mysql2@0.3.21...0.5.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* activerecord-mysql2-adapter

* Return to mysql2 < 4 gem and add some grease

* Update exporter_test.rb

* Update exporter_test.rb

* Update exporter.rb

* Update exporter_test.rb
Bumps [will_paginate](https://github.com/mislav/will_paginate) from 3.1.6 to 3.1.7.
- [Release notes](https://github.com/mislav/will_paginate/releases)
- [Commits](mislav/will_paginate@v3.1.6...v3.1.7)

Signed-off-by: dependabot[bot] <support@dependabot.com>
@icarito
Copy link
Member

icarito commented Mar 20, 2019

@alaxalves I appreciate your patience - let's merge #418 which contains some of your ideas and then I'll try to rebase this patch on top of master! I figured out the issue with assets at least now we have a staging instance (will document it real soon)!

* Start script plus Makefile

* Add COMPOSE_HTTP_TIMEOUT

* Omit checking subdomains. This should be done at nginx level.

* Add precompile step to Makefile
@jywarren
Copy link
Member

#418 merged!

@alaxalves
Copy link
Member Author

@icarito If you want me to do something, let me know! ;) BTW how did you solve the assets issue? 🤔

@icarito
Copy link
Member

icarito commented Mar 21, 2019

Here I rebased on top of current head maybe there's still some tweaking to be done!

@icarito
Copy link
Member

icarito commented Mar 21, 2019

I think I messed up and I merged from main branch into this branch instead of rebasing this branch on top of main. I'm confused and not sure how to fix it. As it stands it can be merged @jywarren but maybe it's not the right way to do it?

@jywarren jywarren mentioned this pull request Mar 21, 2019
@jywarren
Copy link
Member

No problem, here - i just rebased it cleanly on top of the main branch. It wasn't a clean rebase, i had to review each step, but I think i got it right. If this looks good, go ahead and merge it, then close this one? #429

Thanks all!

@jywarren
Copy link
Member

@icarito
Copy link
Member

icarito commented Mar 22, 2019 via email

@icarito
Copy link
Member

icarito commented Mar 25, 2019

This has been merged now at PR #450 obrigado @alaxalves I learned a lot!

@icarito icarito closed this Mar 25, 2019
@jywarren
Copy link
Member

Fantastic!!!

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

Successfully merging this pull request may close these issues.

None yet