forked from memsql/deployment-docker
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile-ciab
49 lines (42 loc) · 1.95 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
48
49
# vim: ft=dockerfile
# CHANGED FROM SOURCE: set the base image to fit the LOCALLY BUILT image
# (which was built using `make`, based on my changes to the Makefile)
ARG BASE_IMAGE="memsql/cluster-in-a-box"
FROM ${BASE_IMAGE}
# install SingleStore DB packages and additional dependencies
# CHANGED FROM SOURCE: switch to root, add specific versions according to Makefile
USER root
ARG CLIENT_VERSION="1.0.7"
ARG SERVER_PACKAGE="singlestoredb-server"
ARG SERVER_VERSION="8.1.31-d5850b922e"
ARG STUDIO_VERSION="4.0.16"
ARG TOOLBOX_VERSION="1.17.6"
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
# CHANGED FROM SOURCE: switch back from root
USER memsql
# CHANGED FROM SOURCE: commented the VOLUME line to enable persisting data in our automation-db-upload job
#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"]