Skip to content

Commit

Permalink
Fix GLIBC_2.32 not found (#35)
Browse files Browse the repository at this point in the history
* Fix GLIBC_2.32 not found

Signed-off-by: Pavol Loffay <[email protected]>

* Fix

Signed-off-by: Pavol Loffay <[email protected]>

* Fix

Signed-off-by: Pavol Loffay <[email protected]>

* Fix

Signed-off-by: Pavol Loffay <[email protected]>

---------

Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay authored Jan 15, 2024
1 parent aa12d4b commit 91c4e42
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
FROM golang:1.21 as builder
FROM registry.access.redhat.com/ubi8/ubi-minimal as builder

RUN microdnf -y install which go-toolset make
WORKDIR /opt/app-root/src
COPY . .
USER root
RUN make build
#COPY otelcol /otelcol
## Note that this shouldn't be necessary, but in some cases the file seems to be
## copied with the execute bit lost (see #1317)
RUN chmod 755 /go/_build/otelcol
RUN chmod 755 /opt/app-root/src/_build/otelcol

FROM registry.access.redhat.com/ubi8/ubi-minimal

ARG USER_UID=10001
USER ${USER_UID}

COPY --from=builder /go/_build/otelcol /
COPY --from=builder /opt/app-root/src/_build/otelcol /
COPY configs/otelcol.yaml /etc/otelcol/config.yaml
ENTRYPOINT ["/otelcol"]
CMD ["--config", "/etc/otelcol/config.yaml"]
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
GO=$(shell which go)
OTELCOL_BUILDER_VERSION ?= 0.89.0
OTELCOL_BUILDER_VERSION ?= 0.92.0
OTELCOL_BUILDER_DIR ?= ${PWD}/bin
OTELCOL_BUILDER ?= ${OTELCOL_BUILDER_DIR}/ocb

build: ocb
mkdir -p _build
CGO_ENABLED=0 ${OTELCOL_BUILDER} --skip-compilation=false --go ${GO} --config manifest.yaml 2>&1 | tee _build/build.log
${OTELCOL_BUILDER} --skip-compilation=false --go ${GO} --config manifest.yaml 2>&1 | tee _build/build.log

generate-sources: ocb
@mkdir -p _build
Expand Down
6 changes: 3 additions & 3 deletions configs/otelcol.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ processors:
batch:

exporters:
logging:
logLevel: debug
debug:
verbosity: detailed

service:

Expand All @@ -36,6 +36,6 @@ service:
traces:
receivers: [otlp, opencensus, jaeger, zipkin]
processors: [batch]
exporters: [logging]
exporters: [debug]

extensions: [health_check, pprof, zpages]

0 comments on commit 91c4e42

Please sign in to comment.