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

Request: Custom the image of preset #565

Closed
koolay opened this issue Jun 15, 2022 · 3 comments · Fixed by #569
Closed

Request: Custom the image of preset #565

koolay opened this issue Jun 15, 2022 · 3 comments · Fixed by #569

Comments

@koolay
Copy link

koolay commented Jun 15, 2022

I can't see how to custom the image of mysql.

@orlangure
Copy link
Owner

Hi @koolay,

If you need to provide the version of mysql image, use mysql.WithVersion() option when creating a new preset instance.

If you need to use a custom docker image for some reason (which may not work since it was never tested), you can use something like this:

pp := mysql.Preset()
opts := pp.Options()
gnomock.StartCustom("custom-image", pp.Ports(), opts...)

@koolay
Copy link
Author

koolay commented Jun 15, 2022

@orlangure

The default preset of mysql is not work on the mac m1.
I need to custom the image with mysql/mysql-server:8.xxx-aarch64.

@orlangure orlangure linked a pull request Jun 18, 2022 that will close this issue
@orlangure
Copy link
Owner

Thank you for raising this issue, I'm releasing a new version where mysql preset should work on both amd64 and arm64 architectures.

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

Successfully merging a pull request may close this issue.

2 participants