-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: added dockerfile for build in ubuntu22.
Signed-off-by: Wine93 <[email protected]> Signed-off-by: fine97 <[email protected]>
- Loading branch information
Showing
6 changed files
with
99 additions
and
19 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
container_name: curve-build-playground.master | ||
container_image: opencurvedocker/curve-base:build-debian11 | ||
container_image: opencurvedocker/curve-build:ubuntu22 |
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 |
---|---|---|
|
@@ -6,12 +6,12 @@ How to build | |
|
||
``` bash | ||
$ git clone [email protected]:opencurve/curve.git | ||
$ cd curve | ||
$ make dep stor=fs | ||
$ make playground | ||
$ make ci-dep stor=fs | ||
$ make sdk | ||
``` | ||
|
||
It will generate a jar after build success: | ||
It will generate a jar package after build success: | ||
|
||
``` | ||
Build SDK success => /curve/curvefs/sdk/output/curvefs-hadoop-1.0-SNAPSHOT.jar | ||
|
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,10 @@ | ||
FROM ubuntu:22.04 | ||
|
||
LABEL maintainer="Wine93 <[email protected]>" | ||
|
||
ENV TZ=Asia/Shanghai \ | ||
LANG=C.UTF-8 \ | ||
LC_ALL=C.UTF-8 | ||
|
||
COPY setup.sh .setup.sh | ||
RUN bash .setup.sh |
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,4 @@ | ||
.PHONY: build | ||
|
||
build: | ||
docker build -t opencurvedocker/curve-build:ubuntu22 . |
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,63 @@ | ||
#!/usr/bin/env bash | ||
|
||
g_bazelisk_url="https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64" | ||
g_protoc_url="https://github.com/protocolbuffers/protobuf/releases/download/v21.8/protoc-21.8-linux-x86_64.zip" | ||
|
||
cat << EOF > /etc/apt/sources.list | ||
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse | ||
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse | ||
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse | ||
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse | ||
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse | ||
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse | ||
EOF | ||
|
||
apt-get clean | ||
apt-get -y update | ||
apt-get -y install --no-install-recommends \ | ||
bison \ | ||
build-essential \ | ||
cmake \ | ||
default-jdk \ | ||
flex \ | ||
git \ | ||
golang \ | ||
libcurl4-gnutls-dev \ | ||
libfiu-dev \ | ||
libfuse3-dev \ | ||
libhashkit-dev \ | ||
liblz4-dev \ | ||
libsnappy-dev \ | ||
libssl-dev \ | ||
libz-dev \ | ||
make \ | ||
maven \ | ||
musl \ | ||
musl-dev \ | ||
musl-tools \ | ||
python3-pip \ | ||
sudo \ | ||
tree \ | ||
unzip \ | ||
uuid-dev \ | ||
vim \ | ||
wget | ||
apt-get autoremove -y | ||
|
||
wget "${g_bazelisk_url}" -O /usr/bin/bazel | ||
chmod a+x /usr/bin/bazel | ||
|
||
g_protoc_zip="/tmp/protoc.zip" | ||
wget "${g_protoc_url}" -O ${g_protoc_zip} | ||
unzip ${g_protoc_zip} "bin/protoc" -d /usr | ||
rm -f ${g_protoc_zip} | ||
|
||
cat << EOF >> ~/.bashrc | ||
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64" | ||
export GOPATH=${HOME}/go | ||
export PATH=\$JAVA_HOME/bin:\$PATH | ||
EOF |
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