-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a50b58b
commit 73e8455
Showing
9 changed files
with
59 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM centos:7 | ||
|
||
RUN yum -y install snappy-devel \ | ||
&& yum -y install zlib-devel \ | ||
&& yum -y install bzip2-devel \ | ||
&& yum -y install epel-release \ | ||
&& yum -y install jemalloc-devel \ | ||
&& yum -y install gtest-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
FROM deepfabric/elasticell-dev | ||
|
||
RUN mkdir -p /apps/deepfabric | ||
|
||
COPY ./entrypoint-build.sh /apps/deepfabric | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y git \ | ||
&& chmod +x /apps/deepfabric/entrypoint-build.sh | ||
|
||
WORKDIR /apps/deepfabric | ||
ENTRYPOINT ./entrypoint-build.sh | ||
FROM deepfabric/centos | ||
|
||
RUN yum -y install go \ | ||
&& yum -y install make \ | ||
&& go get github.com/funny/slab \ | ||
&& go get github.com/deepfabric/c-nemo \ | ||
&& go get github.com/deepfabric/go-nemo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
FROM golang:1.9.2 | ||
FROM deepfabric/build as builder | ||
|
||
RUN mkdir -p /apps/deepfabric | ||
COPY . /root/go/src/github.com/deepfabric/elasticell | ||
WORKDIR /root/go/src/github.com/deepfabric/elasticell | ||
|
||
COPY ./dist/cell /apps/deepfabric | ||
COPY ./entrypoint.sh /apps/deepfabric | ||
RUN make cell | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install libsnappy-dev \ | ||
&& apt-get -y install zlib1g-dev \ | ||
&& apt-get -y install libbz2-dev \ | ||
&& apt-get -y install libgtest-dev \ | ||
&& apt-get -y install libjemalloc-dev | ||
FROM deepfabric/centos | ||
COPY --from=builder /root/go/src/github.com/deepfabric/elasticell/dist/cell /usr/local/bin/cell | ||
|
||
RUN chmod +x /apps/deepfabric/cell \ | ||
&& chmod +x /apps/deepfabric/entrypoint.sh | ||
|
||
ENV ELASTICELL_HOME=/apps/deepfabric | ||
ENV ELASTICELL_EXEC=cell | ||
|
||
WORKDIR /apps/deepfabric | ||
|
||
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"] | ||
ENTRYPOINT ["/usr/local/bin/cell"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM ubuntu:16.04 | ||
FROM deepfabric/build as builder | ||
|
||
RUN mkdir -p /apps/deepfabric | ||
COPY . /root/go/src/github.com/deepfabric/elasticell | ||
WORKDIR /root/go/src/github.com/deepfabric/elasticell | ||
|
||
COPY ./dist/pd /apps/deepfabric | ||
COPY ./entrypoint.sh /apps/deepfabric | ||
RUN make pd | ||
|
||
RUN chmod +x /apps/deepfabric/pd \ | ||
&& chmod +x /apps/deepfabric/entrypoint.sh | ||
|
||
ENV ELASTICELL_HOME=/apps/deepfabric | ||
ENV ELASTICELL_EXEC=pd | ||
FROM alpine:latest | ||
|
||
WORKDIR /apps/deepfabric | ||
COPY --from=builder /root/go/src/github.com/deepfabric/elasticell/dist/pd /usr/local/bin/pd | ||
|
||
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"] | ||
RUN mkdir -p /var/pd/ | ||
RUN mkdir -p /var/lib/pd/ | ||
|
||
# Alpine Linux doesn't use pam, which means that there is no /etc/nsswitch.conf, | ||
# but Golang relies on /etc/nsswitch.conf to check the order of DNS resolving | ||
# (see https://github.com/golang/go/commit/9dee7771f561cf6aee081c0af6658cc81fac3918) | ||
# To fix this we just create /etc/nsswitch.conf and add the following line: | ||
RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf | ||
|
||
# Define default command. | ||
ENTRYPOINT ["/usr/local/bin/pd"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM ubuntu:16.04 | ||
FROM deepfabric/build as builder | ||
|
||
RUN mkdir -p /apps/deepfabric | ||
RUN go get github.com/deepfabric/elasticell-proxy | ||
|
||
COPY ./dist/redis-proxy /apps/deepfabric | ||
COPY ./entrypoint.sh /apps/deepfabric | ||
WORKDIR /root/go/src/github.com/deepfabric/elasticell-proxy | ||
|
||
RUN chmod +x /apps/deepfabric/redis-proxy \ | ||
&& chmod +x /apps/deepfabric/entrypoint.sh | ||
RUN make proxy | ||
|
||
ENV ELASTICELL_HOME=/apps/deepfabric | ||
ENV ELASTICELL_EXEC=redis-proxy | ||
FROM alpine:latest | ||
|
||
WORKDIR /apps/deepfabric | ||
COPY --from=builder /root/go/src/github.com/deepfabric/elasticell-proxy/dist/redis-proxy /usr/local/bin/redis-proxy | ||
|
||
ENTRYPOINT ["/bin/sh", "./entrypoint.sh"] | ||
RUN mkdir -p /var/redis-proxy/ | ||
RUN mkdir -p /var/lib/redis-proxy/ | ||
|
||
# Alpine Linux doesn't use pam, which means that there is no /etc/nsswitch.conf, | ||
# but Golang relies on /etc/nsswitch.conf to check the order of DNS resolving | ||
# (see https://github.com/golang/go/commit/9dee7771f561cf6aee081c0af6658cc81fac3918) | ||
# To fix this we just create /etc/nsswitch.conf and add the following line: | ||
RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf | ||
|
||
# Define default command. | ||
ENTRYPOINT ["/usr/local/bin/redis-proxy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.