-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
37 additions
and
76 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
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,25 +1,26 @@ | ||
ARG JDKVER=17.0.9_9 | ||
FROM ubuntu:focal AS build-env | ||
ARG TDVERSION=3.0.2.5 | ||
ARG TDVERSION_FULL=ver-${TDVERSION} | ||
|
||
WORKDIR /tdengine | ||
ARG JDKVER=17.0.11_9 | ||
FROM eclipse-temurin:${JDKVER}-jdk-focal | ||
ARG TDVERSION=3.3.0.3 | ||
ARG TARGETARCH | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y tzdata libgeos-dev | ||
RUN apt-get install -y gcc cmake build-essential git libssl-dev libgflags2.2 libgflags-dev libaprutil1-dev | ||
RUN apt-get install -y build-essential libjansson-dev libsnappy-dev liblzma-dev libz-dev zlib1g pkg-config | ||
RUN apt-get install -y netcat | ||
ADD taos.cfg /etc/taos/taos.cfg | ||
|
||
RUN git clone --depth=1 -b ${TDVERSION_FULL} https://github.com/taosdata/TDengine . | ||
RUN git submodule update --init --recursive | ||
RUN mkdir debug && cd debug && cmake .. -DBUILD_JDBC=false -DBUILD_TOOLS=false -DBUILD_HTTP=false && make && make install | ||
WORKDIR /tmp | ||
|
||
RUN if [ "$TARGETARCH" = "linux/arm64/v8" ]; then \ | ||
export ARCH=arm64; \ | ||
else \ | ||
export ARCH=x64; \ | ||
fi && curl -o tdengine.tar.gz https://www.tdengine.com/assets-download/3.0/TDengine-client-${TDVERSION}-Linux-$ARCH.tar.gz | ||
RUN tar -xf tdengine.tar.gz | ||
RUN cp TDengine-client-${TDVERSION}/driver/libtaos.so.${TDVERSION} /usr/lib/ | ||
RUN cp TDengine-client-${TDVERSION}/driver/libtaosws.so /usr/lib/ | ||
|
||
FROM eclipse-temurin:${JDKVER}-jdk-focal | ||
ARG TDVERSION | ||
RUN apt-get update | ||
RUN apt-get install -y netcat | ||
ADD taos.cfg /etc/taos/taos.cfg | ||
COPY --from=build-env /tdengine/debug/build/lib/libtaos.so.${TDVERSION} /usr/lib/libtaos.so.${TDVERSION} | ||
RUN ln -s /usr/lib/libtaos.so.${TDVERSION} /usr/lib/libtaos.so | ||
RUN ln -s /usr/lib/libtaos.so.${TDVERSION} /usr/lib/libtaos.so.1 | ||
|
||
RUN rm -rf /tmp/TDengine-client-* | ||
|
||
WORKDIR / |
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 +1 @@ | ||
3.2.2.4 | ||
3.3.0.3 |
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 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 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