Repository: lf-edge/ekuiper

Issue #2314: Plugin tdengine sink not found when run ekuiper from docker  
Created: 2023-10-13T03:38:58Z
Dear team,
built plugin tdengine into docker  , when create a tdengine rule , but reported: sink tdengine not found. Follow Dockerfile:
Please help check the issue:
FROM golang:1.20.8 AS builder
ENV GOPROXY=https://goproxy.cn
ARG TARGETARCH
RUN sed -e 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' -i~ /etc/apk/repositories
RUN apk add --update --no-cache bash zip zeromq-dev make git gcc g++ pkgconfig libc-dev musl-dev libsodium-dev libgcc libstdc++
ADD  . /go/kuiper
WORKDIR /go/kuiper
RUN make tidy
RUN make build_with_edgex
RUN make plugins
FROM alpine:edge
RUN sed -e 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' -i~ /etc/apk/repositories
RUN  apk add --update --no-cache zeromq
ENV MAINTAINER="EdgeGo" 
KUIPER_HOME="/kuiper" 
KUIPER__BASIC__CONSOLELOG=true
ARG KUIPER_USER="kuiper"
ARG KUIPER_USER_ID="1001"
WORKDIR ${KUIPER_HOME}
RUN adduser -DH -s /sbin/nologin -u ${KUIPER_USER_ID} ${KUIPER_USER} && 
chown -Rh ${KUIPER_USER}:${KUIPER_USER} ${KUIPER_HOME} && 
mkdir -p /usr/local/taos && 
chown -Rh ${KUIPER_USER}:${KUIPER_USER} /usr/local/taos && 
mkdir -p /var/log/taos && 
chmod 777 /var/log/taos && 
chown -Rh ${KUIPER_USER}:${KUIPER_USER} /var/log/taos
COPY --chown=${KUIPER_USER}:${KUIPER_USER} --from=builder /usr/local/taos /usr/local/taos
COPY --chown=${KUIPER_USER}:${KUIPER_USER} --from=builder /usr/local/taos/include/tao*.h  /usr/include/
RUN ln -s /usr/local/taos/driver/libtaos.so.1  /usr/lib/libtaos.so
RUN if [ -d /usr/lib64 ]; then   
ln -s /usr/local/taos/driver/libtaos.so.1  /usr/lib64/libtaos.so ; 
fi
USER ${KUIPER_USER}
RUN ldconfig /usr/lib /usr/lib64 /usr/local/lib
COPY --chown=${KUIPER_USER}:${KUIPER_USER} ./deploy/docker/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
COPY --chown=${KUIPER_USER}:${KUIPER_USER} --from=builder /go/kuiper/_build/kuiper-* /kuiper/
COPY --chown=${KUIPER_USER}:${KUIPER_USER} --from=builder /go/kuiper/extensions/sinks/ /kuiper/plugins/sinks/
RUN ln -s /kuiper/plugins/sinks/image/image@1.11.2.so  /kuiper/plugins/sinks/image.so
RUN ln -s /kuiper/plugins/sinks/influx/influx@1.11.2.so  /kuiper/plugins/sinks/influx.so
RUN ln -s /kuiper/plugins/sinks/influx2/influx2@1.11.2.so  /kuiper/plugins/sinks/influx2.so
RUN ln -s /kuiper/plugins/sinks/kafka/kafka@1.11.2.so  /kuiper/plugins/sinks/kafka.so
RUN ln -s /kuiper/plugins/sinks/sql/sql@1.11.2.so  /kuiper/plugins/sinks/sql.so
RUN ln -s /kuiper/plugins/sinks/tdengine/tdengine@1.11.2.so  /kuiper/plugins/sinks/tdengine.so
RUN ln -s /kuiper/plugins/sinks/zmq/zmq@1.11.2.so  /kuiper/plugins/sinks/zmq.so
VOLUME ["${KUIPER_HOME}/etc", "${KUIPER_HOME}/data", "${KUIPER_HOME}/plugins", "${KUIPER_HOME}/log"]
EXPOSE 9081 20498
ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"]
CMD ["./bin/kuiperd"]

Duplicate issue #2558: error of installing the sink plugin of tdengine
Created: 2024-01-15T03:39:14Z
Environment: docker  lfedge/ekuiper:1.12.3
What happened and what you expected to happen:
The sink plugin of tdengine cannot be installed.
The version of tdengine is 2.6.0.34
If I use the default URL (https://packages.emqx.net/kuiper-plugins/1.12.3/alpine/sinks/tdengine_amd64.zip):
Report:   sinks plugins create command error: fail to download file https://packages.emqx.net/kuiper-plugins/1.12.3/alpine/sinks/tdengine_amd64.zip: cannot download the file with status: 403 Forbidden
If I use the URL given in doc (https://packages.emqx.net/kuiper-plugins/1.12.3/debian/sinks/tdengine_amd64.zip)
Report:   sinks plugins create command error: fail to install plugin: exit status 127

Closing comment (2024-01-15T03:41:18Z): I think this is a duplicate of #2314