Spin up Singlestore cluster using dockerfile in localhost

Hi,

I want to spin up SS cluster with container os “rockylinux”. Also let me know if i can assign specific version of SS in dockerfile,I couldn’t find it.

dockerfile-

FROM rockylinux:8

# Install systemd -- See https://hub.docker.com/_/centos/
RUN rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;

# Install requirements.
RUN yum -y install rpm dnf-plugins-core \
 && yum -y update \
 && yum -y config-manager --set-enabled powertools \
 && yum -y install \
      epel-release \
      yum-utils \
      initscripts \
      sudo \
 && yum clean all

RUN yum-config-manager --add-repo https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo && \
    yum install -y memsql-studio

COPY studio.hcl /var/lib/singlestoredb-studio/studio.hcl

EXPOSE 8080/tcp
EXPOSE 3036/tcp

CMD ["memsql-studio"]

studio.hcl

version =1
cluster "68df261b-a26b-4732-82f8-f0e0e60006c0" {
  name        = "localhost"
  description = "localhost"
  hostname    = "host.docker.internal"
  port        = 3306
  profile     = "PRODUCTION"
}

docker-compose.yml

version: '2'

services:
  memsql:
    image: 'singlestore'
    ports:
      - 3306:3306
      - 8080:8080

Ref link- https://github.com/Artum/memsql-studio

I am able to spin up SS cluster but unable to login,

Snapshot-
image

Pls le me know where I got wrong.
I tried official image it work like charm but it’s size is more than 1gb so i am trying for custom image.

Also I am not able to create new cluster.Pls let me know the same.
I struck here.

Did you try using "cluster-in-a-box’ deployment?
https://docs.singlestore.com/db/v7.8/en/deploy/cluster-in-a-box/introduction.html

If that doesn’t work for you, it’s pretty easy to install SingleStore from the command line, setting up one aggregator and one leaf:

https://docs.singlestore.com/db/v7.8/en/deploy/linux/cli-online-rpm.html

The full matrix of installation options is here:

https://docs.singlestore.com/db/v7.8/en/deploy.html

1 Like