Scalable and distributed custom feed generator, ott - on that topic
at main 43 lines 1.1 kB view raw
1ARG CONFIG_FILE=connector.yaml 2 3FROM debian:stable-slim AS builder 4 5RUN apt-get update && apt-get -y upgrade 6RUN apt-get install -y curl 7 8# install fluvio 9RUN curl -fsS https://hub.infinyon.cloud/install/install.sh | bash 10ENV PATH="/root/.fluvio/bin:$PATH" 11RUN export PATH 12 13WORKDIR /app 14 15# Download specific connector (change to your connector) 16RUN cdk hub download infinyon/http-source@0.3.8 17RUN tar -xf infinyon-http-source-0.3.8.ipkg 18RUN tar -xzf manifest.tar.gz 19 20# setup runtime container 21FROM debian:stable-slim 22ARG CONFIG_FILE=connector.yaml 23 24# setup fluvio as non user 25ENV USER=fluvio 26RUN useradd \ 27 --create-home \ 28 --home-dir "/home/$USER" \ 29 --shell /bin/bash \ 30 "$USER" 31USER $USER 32WORKDIR /home/fluvio/connector 33 34# copy fluvio profile and test 35COPY ./fluvio_profile.toml /home/fluvio/.fluvio/config 36 37# Copy connector configuration 38COPY --from=builder /app/http-source /home/fluvio/connector/http-source 39 40COPY ${CONFIG_FILE} /home/fluvio/connector/connector.yaml 41 42# run http-source, this will be different for each connector 43ENTRYPOINT ["/home/fluvio/connector/http-source", "--config", "/home/fluvio/connector/connector.yaml"]