SpeciesFileGroup / install_taxonworks

Instructions for installing and running TaxonWorks
6 stars 7 forks source link

E: Unable to locate package postgresql-client-10 on docker-compose build #17

Closed jhpoelen closed 6 years ago

jhpoelen commented 6 years ago

when running sudo docker-compose build on ubuntu 18.04 with docker v17.12.1-ce, the following error message is found:

Reading state information...
E: Unable to locate package postgresql-client-10
ERROR: Service 'app' failed to build: The command '/bin/sh -c apt-get update &&     apt-get install -y locales                        postgresql-client-10                        git gcc build-essential                        libffi-dev libgdbm-dev libncurses5-dev libreadline-dev libssl-dev libyaml-dev zlib1g-dev libcurl4-openssl-dev                        pkg-config imagemagick libmagickcore-dev libmagickwand-dev                        libpq-dev libproj-dev libgeos-dev libgeos++-dev                        tesseract-ocr                        cmake                        nodejs yarn &&                        apt clean &&                        rm -rf /var/lip/abpt/lists/* /tmp/* /var/tmp/*' returned a non-zero code: 100
mjy commented 6 years ago

You shouldn't need sudo, but that's likely not the problem.

jhpoelen commented 6 years ago

Good point about sudo, I should probably change the way I configure docker. Regarding the actual issue - am trying to see whether upgrading to 18.04 fixes it.

mjy commented 6 years ago

I've replicated the problem on Mac.

jhpoelen commented 6 years ago

Did you every consider running all this in travis every week or so?

jhpoelen commented 6 years ago

That should catch variability introduced by apt update

mjy commented 6 years ago

We have definitely wanted to get the CI/CD pipeline rolling, just been a matter of getting it setup.

jhpoelen commented 6 years ago

I can do that now, it think it'll save time in fixing this issue. Perhaps easier if you add me as a contributor. Alternatively, I can do the pull request method and you'll have to manually enable travis / merge pull requests. Let me know what you prefer.

mjy commented 6 years ago

Added you here. Pushed fix.

mjy commented 6 years ago

We just did a major branch merge hours ago. Expect other bumpiness. I see Ruby in dockerfile needs to be bumped as well.

jhpoelen commented 6 years ago

Ok, fastening my seatbelt ; )

mjy commented 6 years ago

Still an issue with getting right Ruby version. Back at it ASAP but off for a bit.

mjy commented 6 years ago

docker-compose build working on mac/ubuntu 16.04

jhpoelen commented 6 years ago

looks like travis has similar results. Closing issue.