X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=integration_tests%2Ftestxappcode%2FDockerfile-test-receiver;h=196f2566cd10c8ce980bb9a2e282cf1461cfeb5d;hb=6bc8f8ef64a7e90f550dea4af6a10d785d8aeca6;hp=174af0eddb28257f552dc2b2995d0e7e48ac5a8e;hpb=78ba273b279a7e7af6dba811a29746b881a53a8e;p=ric-plt%2Fa1.git diff --git a/integration_tests/testxappcode/Dockerfile-test-receiver b/integration_tests/testxappcode/Dockerfile-test-receiver index 174af0e..196f256 100644 --- a/integration_tests/testxappcode/Dockerfile-test-receiver +++ b/integration_tests/testxappcode/Dockerfile-test-receiver @@ -16,9 +16,11 @@ # ================================================================================== # This Dockerfile uses a two stage Docker build +FROM nexus3.o-ran-sc.org:10004/o-ran-sc/bldr-alpine3:12-a3.11 -# The first stage is defined here: https://gerrit.o-ran-sc.org/r/gitweb?p=ci-management.git;a=blob;f=docker/bldr-alpine3-go/Dockerfile;h=a1e31f07e6113d4a02202793ace6ebc780d71583;hb=3711ffcbfe06f6c872bf4a0871eb5f2a2fcd83ae -FROM nexus3.o-ran-sc.org:10004/bldr-alpine3-go:1-rmr1.13.1 +# copy rmr headers and libraries from builder image in lieu of an Alpine package +COPY --from=nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-alpine3-rmr:4.0.5 /usr/local/include/rmr /usr/local/include/rmr +COPY --from=nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-alpine3-rmr:4.0.5 /usr/local/lib64/librmr* /usr/local/lib64/ # go will complain if there is a go.mod at the root of the GOPATH so we can't. RUN mkdir myxapp @@ -34,9 +36,11 @@ RUN go build -a -installsuffix cgo -o receiver receiver.go # 2nd stage FROM alpine:3.11 -COPY --from=0 /usr/local/lib64/libnng.so* /usr/local/lib64/ -COPY --from=0 /usr/local/lib64/librmr_nng* /usr/local/lib64/ -COPY --from=0 /go/myxapp/receiver . + +# copy rmr libraries from builder image in lieu of an Alpine package +COPY --from=nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-alpine3-rmr:4.0.5 /usr/local/lib64/librmr* /usr/local/lib64/ + +COPY --from=0 /myxapp/receiver . COPY test-config-file.yaml . # rmr setup