github.com/portworx/kvdb@v0.0.0-20241107215734-a185a966f535/Dockerfile.kvdb (about) 1 FROM ubuntu 2 LABEL maintainer=support@portworx.com 3 4 RUN apt-get update -yq 5 RUN apt-get install -yq --no-install-recommends \ 6 gcc \ 7 g++ \ 8 ca-certificates && \ 9 apt-get clean && \ 10 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 11 12 RUN apt-get update && \ 13 apt-get -y install unzip curl make git default-jre 14 15 16 RUN curl -s -L https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | tar -C /usr/local/ -xz && \ 17 curl -s -L https://github.com/etcd-io/etcd/releases/download/v3.4.24/etcd-v3.4.24-linux-amd64.tar.gz -o /tmp/etcd-v3.4.24-linux-amd64.tar.gz && \ 18 mkdir -p /tmp/test-etcd && tar xzvf /tmp/etcd-v3.4.24-linux-amd64.tar.gz -C /tmp/test-etcd --strip-components=1 && cp /tmp/test-etcd/etcd /usr/local/bin && \ 19 curl -s -L https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_linux_amd64.zip -o /tmp/consul.zip && \ 20 mkdir -p /tmp/test-consul && unzip /tmp/consul.zip -d /tmp/test-consul && cp /tmp/test-consul/consul /usr/local/bin/ && \ 21 curl -s -L https://archive.apache.org/dist/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz -o /tmp/zookeeper-3.4.13.tar.gz && \ 22 mkdir -p /tmp/test-zookeeper && tar -xvf /tmp/zookeeper-3.4.13.tar.gz -C /tmp/test-zookeeper --strip-components=1 && mkdir -p /data/zookeeper 23 24 ENV PATH /usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin 25 ENV GOPATH /go 26 ENV GOROOT /usr/local/go 27 28 RUN mkdir -p /go/src/github.com/portworx/kvdb 29 ADD . /go/src/github.com/portworx/kvdb 30 31 RUN echo $'tickTime=2000 \n\ 32 dataDir=/data/zookeeper \n\ 33 clientPort=2181 \n\ 34 initLimit=5 \n\ 35 syncLimit=2 \n\ 36 server.1=127.0.0.1:2888:3888' > /tmp/test-zookeeper/conf/zoo.cfg 37 38 WORKDIR /go/src/github.com/portworx/kvdb