Skip to content

Adding pv in the docker container #54

Open
@Bouhnosaure

Description

@Bouhnosaure

Hi,

I have a small issue with long database imports, it takes a long time and I've noticed in the /plugins/@lando/core/scripts/sql-import.sh there is a command that checks if pv is installed and use it if so and if not that defaults to cat which has no output progress.

So I've read the code behind the mysql plugin and i haven't found yet how to add custom commands in order to install pv as you don't control the bitnami's mysql docker containers.

Do you have a way to add it in the build process or a workaround to automate the process of installing pv ?


As a workaround i've done this :

➜  docker ps                                          
CONTAINER ID   IMAGE
343de3e04a02   bitnami/mysql:8.0.19-debian-10-r57                                                   
➜  docker exec -u 0 -it 343de3e04a02 sh -c "apt update && apt install pv -y"

Hope it helps !

Thanks,

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions