fix approach for: amatica-1.7.1 docker libmysqlclient-dev install error

15 views
Skip to first unread message

Geoffrey Brimhall

unread,
Jun 25, 2018, 6:05:27 PM6/25/18
to Archivematica Tech
When I try to build amatica-1.7.1 using docker on a new machine I'm running into errors with mcp-server and storage-server images because they want to install the debian package libmysqlclient-dev.

On my old machine, which I still have, it works ok. 

It looks like the problem is because the dockerhub python:2.7 image switched to using debian:stretch as it's base instead of debian:jessie.

Question about preferred approach to fix ( and submitting a pull request patch ):

1). Should I update the Dockerfile so they are FROM python:2.7-jessie

OR

2). Update Dockerfile so it installs package "default-libmysqlclient-dev" ( which is the name of the equivalent package in stretch ).






Jesús García Crespo

unread,
Jun 25, 2018, 6:55:25 PM6/25/18
to Geoffrey Brimhall, Archivematica Tech
Hi Geoffrey,

Thanks for the update. We fixed this in our development branch (pull request https://github.com/artefactual/archivematica/pull/1154) but it didn't make it into our stable/1.7.x branch until now, see https://github.com/artefactual/archivematica/pull/1154. Related issue: https://github.com/artefactual-labs/am/issues/60.

Thank you,

--
You received this message because you are subscribed to the Google Groups "Archivematica Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematica-tech+unsub...@googlegroups.com.
To post to this group, send email to archivematica-tech@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archivematica-tech/1145a386-3e15-4718-91db-a21f6a35191a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jesús García Crespo,
Software Developer, Artefactual Systems Inc.
http://www.artefactual.com | +1.604.527.2056

Geoffrey Brimhall

unread,
Jun 26, 2018, 2:51:00 PM6/26/18
to je...@artefactual.com, archivema...@googlegroups.com
This fix should be applied to all images that use python:2.7 as a base in development and stable/1.7.x just to ensure no behavioral surprises show up from the implicit switch to stretch from jessie of python:2.7 docker tag:

This impacts:
archivematica-storage-service/Dockerfile
archivematica/src/dashboard.Dockerfile
archivematica/src/MCPServer.Dockerfile

-geoff Brimhall





On Mon, Jun 25, 2018 at 3:55 PM Jesús García Crespo <je...@artefactual.com> wrote:
Hi Geoffrey,

Thanks for the update. We fixed this in our development branch (pull request https://github.com/artefactual/archivematica/pull/1154) but it didn't make it into our stable/1.7.x branch until now, see https://github.com/artefactual/archivematica/pull/1154. Related issue: https://github.com/artefactual-labs/am/issues/60.

Thank you,
On Mon, Jun 25, 2018 at 3:05 PM, Geoffrey Brimhall <glbrimh...@gmail.com> wrote:
When I try to build amatica-1.7.1 using docker on a new machine I'm running into errors with mcp-server and storage-server images because they want to install the debian package libmysqlclient-dev.

On my old machine, which I still have, it works ok. 

It looks like the problem is because the dockerhub python:2.7 image switched to using debian:stretch as it's base instead of debian:jessie.

Question about preferred approach to fix ( and submitting a pull request patch ):

1). Should I update the Dockerfile so they are FROM python:2.7-jessie

OR

2). Update Dockerfile so it installs package "default-libmysqlclient-dev" ( which is the name of the equivalent package in stretch ).






--
You received this message because you are subscribed to the Google Groups "Archivematica Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematica-t...@googlegroups.com.
To post to this group, send email to archivema...@googlegroups.com.

Jesús García Crespo

unread,
Jun 27, 2018, 4:39:52 PM6/27/18
to Geoffrey Brimhall, Archivematica Tech
Good point. I've just submitted a PR that updates the SS image: https://github.com/artefactual/archivematica-storage-service/pull/385. I'll be merged soon. Thanks.

On Tue, Jun 26, 2018 at 11:50 AM, Geoffrey Brimhall <glbrimh...@gmail.com> wrote:
This fix should be applied to all images that use python:2.7 as a base in development and stable/1.7.x just to ensure no behavioral surprises show up from the implicit switch to stretch from jessie of python:2.7 docker tag:

This impacts:
archivematica-storage-service/Dockerfile
archivematica/src/dashboard.Dockerfile
archivematica/src/MCPServer.Dockerfile

-geoff Brimhall




On Mon, Jun 25, 2018 at 3:55 PM Jesús García Crespo <je...@artefactual.com> wrote:
Hi Geoffrey,

Thanks for the update. We fixed this in our development branch (pull request https://github.com/artefactual/archivematica/pull/1154) but it didn't make it into our stable/1.7.x branch until now, see https://github.com/artefactual/archivematica/pull/1154. Related issue: https://github.com/artefactual-labs/am/issues/60.

Thank you,
On Mon, Jun 25, 2018 at 3:05 PM, Geoffrey Brimhall <glbrimh...@gmail.com> wrote:
When I try to build amatica-1.7.1 using docker on a new machine I'm running into errors with mcp-server and storage-server images because they want to install the debian package libmysqlclient-dev.

On my old machine, which I still have, it works ok. 

It looks like the problem is because the dockerhub python:2.7 image switched to using debian:stretch as it's base instead of debian:jessie.

Question about preferred approach to fix ( and submitting a pull request patch ):

1). Should I update the Dockerfile so they are FROM python:2.7-jessie

OR

2). Update Dockerfile so it installs package "default-libmysqlclient-dev" ( which is the name of the equivalent package in stretch ).






--
You received this message because you are subscribed to the Google Groups "Archivematica Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematica-tech+unsub...@googlegroups.com.
To post to this group, send email to archivematica-tech@googlegroups.com.



--
Jesús García Crespo,
Software Developer, Artefactual Systems Inc.
http://www.artefactual.com | +1.604.527.2056
Reply all
Reply to author
Forward
0 new messages