Building dockerfile for singlestore with container os as rockylinux

Viewed 34

I am Building dockerfile for singlestore with os rockylinux.

Dockerfile-

FROM rockylinux:8

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

EXPOSE 8080/tcp

CMD ["memsql-studio"]

Getting error-

 > [3/3] RUN yum-config-manager --add-repo https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo &&     yum install -y memsql-studio:
#6 1.796 /bin/sh: yum-config-manager: command not found
------
executor failed running [/bin/sh -c yum-config-manager --add-repo https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo &&     yum install -y memsql-studio]: exit code: 127

Ref links- https://github.com/nevrending/singlestoredb-studio/blob/master/Dockerfile

https://github.com/Artum/memsql-studio/blob/master/Dockerfile

Update

After I installed "yum utils" the error is changed. Latest Dockerfile file as below.

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

Error-

 => ERROR [4/4] RUN yum-config-manager --add-repo https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo &&     yum install -y memsql-studio       15.1s
------
 > [4/4] RUN yum-config-manager --add-repo https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo &&     yum install -y memsql-studio:
#7 3.731 Adding repo from: https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo
#7 13.24 Curl error (7): Couldn't connect to server for https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo []
#7 13.24 Error: Configuration of repo failed
------
executor failed running [/bin/sh -c yum-config-manager --add-repo https://release.memsql.com/production/rpm/x86_64/repodata/memsql.repo &&     yum install -y memsql-studio]: exit code: 1
0 Answers
Related