Created
January 21, 2021 17:03
-
-
Save RunsFor/d1096be5c3ba7a3d54ef0b09be0c6d87 to your computer and use it in GitHub Desktop.
Example on how to build static kafka module for use with static tarantool build
This file contains hidden or 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
docker buildx build --target export --output rocks . | |
# It copies kafka rock into rocks directory |
This file contains hidden or 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
FROM registry.gitlab.com/runfor/envs/centos:7-build as static-kafka | |
RUN set -x \ | |
&& git clone --recurse-submodules https://github.com/tarantool/kafka /opt/kafka \ | |
&& wget -P /etc/yum.repos.d/ https://copr.fedorainfracloud.org/coprs/bgstack15/stackrpms/repo/epel-7/bgstack15-stackrpms-epel-7.repo \ | |
&& yum install -y tarantool tarantool-devel openssl110 zip | |
WORKDIR /opt/kafka | |
RUN tarantoolctl rocks STATIC_BUILD=ON make \ | |
&& tarantoolctl rocks pack kafka | |
FROM scratch as export | |
COPY --from=static-kafka /opt/kafka/kafka-scm-1.linux-x86_64.rock / |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment