diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index abdba0583a1bafc474badb6359e649fde3878fba..a45a74536c561836db7b3b818257997884919af6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -75,7 +75,7 @@ build-services-linux-release: - KAFKA_LIBS=$(dpkg -L librdkafka-dev | grep "\.so") - FABRIC_LIBS=$(dpkg -L libfabric-dev | grep "\.so") - CURL_LIBS=$(dpkg -L libcurl4-openssl-dev | grep "\.so") - - DEPENDENCIES=$(printf "${KAFKA_LIBS}\n${FABRIC_LIBS}\n${CURL_LIBS}" | sed -e 's/\/\(.\+\)\/\(.\+\)/COPY \/\1\/\2 \/lib\/\2/g' | awk '{printf "%s\\n", $0}') + - DEPENDENCIES=$(printf "${KAFKA_LIBS}\n${FABRIC_LIBS}\n${CURL_LIBS}" | sed -e 's/\/\(.\+\)\/\(.\+\)/COPY --from=0 \/\1\/\2 \/lib\/\2/g' | awk '{printf "%s\\n", $0}') - sed -e "s|#REPLACE_COPY_LIBS|${DEPENDENCIES}|g" -i $CI_PROJECT_DIR/build/receiver/Dockerfile tags: - kubernetes-executor diff --git a/receiver/docker/Dockerfile b/receiver/docker/Dockerfile index c604d947343c41eedebd42c989a19eaa01cba316..99197fbec2d9cea2d282740cde46f254856b54ee 100644 --- a/receiver/docker/Dockerfile +++ b/receiver/docker/Dockerfile @@ -1,7 +1,7 @@ FROM $CI_REGISTRY_IMAGE/asapo-services-linux-build-env:latest -#REPLACE_COPY_LIBS FROM busybox:glibc +#REPLACE_COPY_LIBS COPY receiver / CMD ["/receiver","/var/lib/receiver/config.json"]