We really can't define them at compile time anymore as we build multiple exes that depend on libspark in the same dir (e.g., spark api server, pubsub, ds-publisher, webapp, etc.). That means one libspark.so (or dll) must serve all exes. We should compile a consistent libspark to mitigate the risk of running an exe with the wrong version (of libspark). For example, running pubsub with a libspark configured for spark api server, leftover from an earlier build.
14 lines
613 B
Docker
14 lines
613 B
Docker
FROM bluetradingsystems/linux_dotnet7
|
|
|
|
ENV DOCKERIZE_VERSION v0.7.0
|
|
USER root
|
|
RUN apt-get update \
|
|
&& apt-get install -y wget \
|
|
&& wget -O - https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar xzf - -C /usr/local/bin \
|
|
&& apt-get autoremove -yqq --purge wget && rm -rf /var/lib/apt/lists/*
|
|
|
|
USER bts
|
|
COPY --chown=bts:bts "build/Release/bin/net7.0/linux-x64/publish" "bin"
|
|
COPY --chown=bts:bts "src/DataStreamSuite/DataStreamPublisher/spark.conf" ".local/share/bts/DataStreamPublisher/conf/spark.conf"
|
|
WORKDIR "/home/bts/bin"
|