memsql / deployment-docker

This repository contains our official deployment Docker images for various products.
MIT License
15 stars 8 forks source link

Running ciab on apple silicone (M1 Macs) #4

Closed dborinsk closed 2 years ago

dborinsk commented 2 years ago

After spending some time trying to understand why ciab is not working on my Mac I figured out that Singlestoe cannot run on ARM arch. For development and test flow there must be a solution or a workaround to solve it. We want to keep our test flow isolated by using temporary containers dedicated for the tests and we dont want to use a real DB and manage the state just for the tests. Will be great to understand if there is any way to run ciab on M1 macs, any other suggestions that do not require maintaining a cluster for tests or any ETA if there is one for this issue.

arno756 commented 2 years ago

Hello, we have a good news.

With our 7.8.11 release, you can now run SingleStoreDB on M1 Macs. Provide feedback on this thread if you encounter any issue.

Make sure to pull the latest version when installing it:

docker run -i --init \
    --name singlestore-ciab \
    -e LICENSE_KEY=<YOUR_LICENSE_FROM_PORTAL.SINGLESTORE.COM> \
    -e ROOT_PASSWORD=<YOUR_DESIRED_DATABASE_ROOT_PASSWORD> \
    -p 3306:3306 -p 8080:8080 \
    singlestore/cluster-in-a-box:latest
carlsverre commented 2 years ago

Will close this issue unless someone re-opens with additional problems.

JackEllis commented 2 years ago

image

dborinsk commented 1 year ago

Has someone been able to use the new docker image on M1 using testcontainers?

carlsverre commented 1 year ago

Not sure what you mean by testcontainers - but the new image does work on M1 in docker and rancher.

dborinsk commented 1 year ago

@carlsverre https://github.com/testcontainers/testcontainers-java it works indeed on M1 but using this framework we still encounter same issue maybe its not related but wanted to know if someone was able to run it through testcontainers

carlsverre commented 1 year ago

@dborinsk can you switch over to our new image which you can find here along with specific docs for running in Docker on Apple Silicon (m1/m2 chips): https://github.com/singlestore-labs/singlestoredb-dev-image#how-to-run-the-docker-image-on-apple-silicon-m1m2-chips

Please give that a try first. If you are still having issues with that image and testcontainers please open an issue here: https://github.com/singlestore-labs/singlestoredb-dev-image/issues/new/choose

Thanks!

dborinsk commented 1 year ago

Thanks! I was missing the specific docker instructions. it works as a charm! I created a gist with an example of a generic container for SingleStore using testcontainers if it might help anyone. https://gist.github.com/dborinsk/f3977c5d834e0543fbb3538141e8e4e4

carlsverre commented 1 year ago

Glad it worked! And appreciate the testcontainers example, I'll add it to the docs for singlestoredb-dev-image.