Bug #81186 Missing mysqlsh from docker image
Submitted: 24 Apr 2016 7:55 Modified: 2 Dec 2016 11:55
Reporter: Giuseppe Maxia (OCA) Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Package Repos Severity:S1 (Critical)
Version:5.7.12 OS:Any
Assigned to: Lars Tangvald CPU Architecture:Any

[24 Apr 2016 7:55] Giuseppe Maxia
Description:
The Docker image for MySQL 5.7.12 does not include mysqlsh.

How to repeat:
docker pull mysql/mysql-server
docker run --name mybox  -e MYSQL_ROOT_PASSWORD=secret -d mysql/mysql-server
docker exec -ti mybox bash
# mysqlsh

bash: mysqlsh: command not found
[25 Apr 2016 4:36] MySQL Verification Team
Hello Giuseppe,

Thank you for the report and feedback.

Thanks,
Umesh
[25 Apr 2016 4:37] MySQL Verification Team
Also, related Bug #81187
[25 Apr 2016 6:55] Lars Tangvald
Hi

We've added a separate Docker image for the Shell preview package, which can be found at https://hub.docker.com/r/mysql/shell/

The source for the image can be found at https://github.com/mysql/mysql-docker/tree/mysql-shell
[25 Apr 2016 7:32] Giuseppe Maxia
Lars,
Thanks for taking action quickly. 
I would not mind much if the shell and the server were installed on top of a lightweight distro, such as Alpine, but as it is, using the shell on Docker feels like a waste (239 + 296 MB for server + shell).

Still, I believe that the docker image for the server should include the shell.
[25 Apr 2016 11:33] Lars Tangvald
The file size is an issue, yes. 

While Shell is still an alpha product we won't add it to the server image, but we're looking into making it smaller (this applies to the server image as well).

Once Shell hits GA we might include it in the regular server image.
[2 Dec 2016 11:55] Lars Tangvald
Posted by developer:
 
MySQL Shell will be included in our packages when it is released as GA