-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile-ciab
47 lines (40 loc) · 1.58 KB
/
Dockerfile-ciab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# vim: ft=dockerfile
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
# install SingleStore DB packages and additional dependencies
ARG CLIENT_VERSION
ARG SERVER_PACKAGE
ARG SERVER_VERSION
ARG STUDIO_VERSION
ARG TOOLBOX_VERSION
ARG JRE_PACKAGES
RUN yum install -y \
singlestore-client-${CLIENT_VERSION} \
${SERVER_PACKAGE}${SERVER_VERSION} \
singlestoredb-studio-${STUDIO_VERSION} \
singlestoredb-toolbox-${TOOLBOX_VERSION} \
&& yum clean all
RUN mkdir -p /home/memsql && chown memsql:memsql /home/memsql
ADD ciab-assets/studio.hcl /var/lib/singlestoredb-studio/studio.hcl
RUN chown memsql:memsql /var/lib/singlestoredb-studio/studio.hcl
RUN for pkg in ${JRE_PACKAGES} ; do \
yum install -y ${pkg}; \
done \
&& yum clean all
VOLUME ["/var/lib/memsql"]
LABEL name="SingleStore DB Cluster in a Box"
LABEL vendor="SingleStore"
LABEL version=${SERVER_VERSION}
LABEL release=1
LABEL summary="The official docker image for testing SingleStore DB + Studio (cluster-in-a-box)."
LABEL description="The official Docker image for testing SingleStore DB + Studio. Check out the tutorial: http://docs.singlestore.com/docs/quick-start-with-docker/"
LABEL io.k8s.display-name="SingleStore DB Cluster in a Box"
LABEL io.k8s.description="The official Docker image for testing SingleStore DB + Studio. Check out the tutorial: http://docs.singlestore.com/docs/quick-start-with-docker/"
LABEL io.openshift.tags="database,db,sql,memsql,singlestore,testing,studio,dashboard"
EXPOSE 3306/tcp
EXPOSE 3307/tcp
EXPOSE 8080/tcp
USER memsql
WORKDIR "/home/memsql"
ADD ciab-assets/startup /startup
CMD ["bash", "/startup"]