Skip to content

Commit

Permalink
curve/docker: build & make image in docker
Browse files Browse the repository at this point in the history
Signed-off-by: Cyber-SiKu <[email protected]>
  • Loading branch information
Cyber-SiKu committed Sep 21, 2022
1 parent c6ddbfc commit ed8d569
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 15 deletions.
9 changes: 6 additions & 3 deletions curvefs/docker/debian10/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:10
FROM opencurvedocker/curve-base:debian10

RUN echo "deb http://mirrors.163.com/debian/ buster main non-free contrib\n" \
"deb http://mirrors.163.com/debian/ buster-updates main non-free contrib\n" \
Expand Down Expand Up @@ -31,6 +31,9 @@ RUN echo "deb http://mirrors.163.com/debian/ buster main non-free contrib\n" \
libnl-3-200 \
libnl-genl-3-200 \
libjemalloc2 \
&& ln -s /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so
libsnappy1v5 \
liblz4-1 \
zlib1g
&& ln -sf /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so

COPY libetcdclient.so /usr/lib/
COPY libetcdclient.so /usr/lib/
20 changes: 18 additions & 2 deletions curvefs/docker/debian10/compile/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:10
FROM opencurvedocker/curve-base:build-debian10

RUN echo "deb http://mirrors.163.com/debian/ buster main non-free contrib\n" \
"deb http://mirrors.163.com/debian/ buster-updates main non-free contrib\n" \
Expand Down Expand Up @@ -27,9 +27,25 @@ RUN echo "deb http://mirrors.163.com/debian/ buster main non-free contrib\n" \
make \
openjdk-11-jdk \
sudo \
zlib1g-dev \
libsnappy-dev \
liblz4-dev \
cmake \
ca-certificates \
curl \
gnupg \
lsb-release \
curl \
git \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y docker-ce docker-ce-cli containerd.io \
&& wget https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 \
&& mv bazelisk-linux-amd64 /usr/bin/bazelisk \
&& ln -s /usr/bin/bazelisk /usr/bin/bazel \
&& ln -sf /usr/bin/bazelisk /usr/bin/bazel \
&& wget https://github.com/bazelbuild/bazel/releases/download/4.2.2/bazel-4.2.2-linux-x86_64 \
&& mkdir -p /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin \
&& mv bazel-4.2.2-linux-x86_64 /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin/bazel \
Expand Down
7 changes: 5 additions & 2 deletions curvefs/docker/debian11/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:11
FROM opencurvedocker/curve-base:debian11

RUN echo "deb http://mirrors.163.com/debian/ bullseye main non-free contrib\n" \
"deb http://mirrors.163.com/debian/ bullseye-updates main non-free contrib\n" \
Expand Down Expand Up @@ -31,6 +31,9 @@ RUN echo "deb http://mirrors.163.com/debian/ bullseye main non-free contrib\n" \
libnl-3-200 \
libnl-genl-3-200 \
libjemalloc2 \
&& ln -s /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so
libsnappy1v5 \
liblz4-1 \
zlib1g
&& ln -sf /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so

COPY libetcdclient.so /usr/lib/
19 changes: 17 additions & 2 deletions curvefs/docker/debian11/compile/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:11
FROM opencurvedocker/curve-base:build-debian11

RUN echo "deb http://mirrors.163.com/debian/ bullseye main non-free contrib\n" \
"deb http://mirrors.163.com/debian/ bullseye-updates main non-free contrib\n" \
Expand Down Expand Up @@ -27,9 +27,24 @@ RUN echo "deb http://mirrors.163.com/debian/ bullseye main non-free contrib\n" \
make \
openjdk-11-jdk \
sudo \
libsnappy-dev \
liblz4-dev \
cmake \
ca-certificates \
curl \
gnupg \
lsb-release \
curl \
git \
&& mkdir -p /etc/apt/keyrings \
# && curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y docker-ce docker-ce-cli containerd.io \
&& wget https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 \
&& mv bazelisk-linux-amd64 /usr/bin/bazelisk \
&& ln -s /usr/bin/bazelisk /usr/bin/bazel \
&& ln -sf /usr/bin/bazelisk /usr/bin/bazel \
&& wget https://github.com/bazelbuild/bazel/releases/download/4.2.2/bazel-4.2.2-linux-x86_64 \
&& mkdir -p /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin \
&& mv bazel-4.2.2-linux-x86_64 /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin/bazel \
Expand Down
6 changes: 3 additions & 3 deletions curvefs/docker/debian9/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ RUN echo "deb http://mirrors.163.com/debian/ stretch main\n" \
lsof \
nginx \
less \
zlib1g-dev \
libsnappy-dev \
liblz4-dev \
zlib1g \
libsnappy1v5 \
liblz4-1 \
python \
wget \
python3 \
Expand Down
22 changes: 19 additions & 3 deletions curvefs/docker/debian9/compile/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM opencurvedocker/curve-base:debian9
FROM opencurvedocker/curve-base:build-debian9

RUN apt-get clean \
&& apt-get -y update \
Expand All @@ -10,7 +10,6 @@ RUN apt-get clean \
libnl-genl-3-dev \
libssl-dev \
uuid-dev \
zlib1g-dev \
libcurl4-gnutls-dev \
libfiu-dev \
openjdk-8-jdk \
Expand All @@ -21,9 +20,26 @@ RUN apt-get clean \
python3-dev \
python3-setuptools \
python3-wheel \
zlib1g-dev \
libsnappy-dev \
liblz4-dev \
cmake \
ca-certificates \
curl \
gnupg \
lsb-release \
curl \
apt-transport-https \
git \
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y docker-ce docker-ce-cli containerd.io \
&& wget https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 \
&& mv bazelisk-linux-amd64 /usr/bin/bazelisk \
&& ln -s /usr/bin/bazelisk /usr/bin/bazel \
&& ln -sf /usr/bin/bazelisk /usr/bin/bazel \
&& wget https://github.com/bazelbuild/bazel/releases/download/4.2.2/bazel-4.2.2-linux-x86_64 \
&& mkdir -p /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin \
&& mv bazel-4.2.2-linux-x86_64 /root/.cache/bazelisk/downloads/bazelbuild/bazel-4.2.2-linux-x86_64/bin/bazel \
Expand Down

0 comments on commit ed8d569

Please sign in to comment.