@@ -241,6 +241,7 @@ RUN find /usr/local/lib/python3.8 -name "*.pyc" -o -name "*.pyo" | xargs rm
241
241
# We don't support compiling extension modules so don't need this directory
242
242
RUN rm -rf /usr/local/lib/python3.8/config-*-linux-gnu
243
243
244
+
244
245
# ######## Java monitor dependencies and monitor jar compilation
245
246
FROM ubuntu:16.04 as java
246
247
@@ -378,97 +379,6 @@ COPY --from=agent-builder /usr/bin/signalfx-agent /bin/signalfx-agent
378
379
WORKDIR /
379
380
380
381
381
- # ###### Dev Image ########
382
- # This is an image to facilitate development of the agent. It installs all of
383
- # the build tools for building collectd and the go agent, along with some other
384
- # useful utilities. The agent image is copied from the final-image stage to
385
- # the /bundle dir in here and the SIGNALFX_BUNDLE_DIR is set to point to that.
386
- FROM ubuntu:18.04 as dev-extras
387
-
388
- RUN apt update &&\
389
- apt install -y \
390
- build-essential \
391
- curl \
392
- git \
393
- inotify-tools \
394
- iproute2 \
395
- jq \
396
- net-tools \
397
- python3.8 \
398
- python3.8-dev \
399
- python3.8-distutils \
400
- socat \
401
- sudo \
402
- vim \
403
- wget
404
-
405
- ENV PATH=$PATH:/usr/local/go/bin:/go/bin GOPATH=/go
406
- ENV SIGNALFX_BUNDLE_DIR=/bundle \
407
- TEST_SERVICES_DIR=/usr/src/signalfx-agent/test-services \
408
- AGENT_BIN=/usr/src/signalfx-agent/signalfx-agent \
409
- PYTHONPATH=/usr/src/signalfx-agent/python \
410
- AGENT_VERSION=latest \
411
- BUILD_TIME=2017-01-25T13:17:17-0500 \
412
- GOOS=linux \
413
- LC_ALL=C.UTF-8 \
414
- LANG=C.UTF-8
415
-
416
- RUN rm -f /usr/bin/python3 && \
417
- ln -s /usr/bin/python3.8 /usr/bin/python && \
418
- ln -s /usr/bin/python3.8 /usr/bin/python3
419
-
420
- RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
421
- python get-pip.py pip==20.0.2 && \
422
- rm get-pip.py
423
-
424
- RUN curl -fsSL get.docker.com -o /tmp/get-docker.sh &&\
425
- sh /tmp/get-docker.sh
426
-
427
- ARG TARGET_ARCH
428
-
429
- RUN wget -O /usr/bin/gomplate https://github.com/hairyhenderson/gomplate/releases/download/v3.4.0/gomplate_linux-${TARGET_ARCH} &&\
430
- chmod +x /usr/bin/gomplate
431
-
432
- # Install helm
433
- ARG HELM_VERSION=v3.0.0
434
- WORKDIR /tmp
435
- RUN wget -O helm.tar.gz https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGET_ARCH}.tar.gz && \
436
- tar -zxvf /tmp/helm.tar.gz && \
437
- mv linux-${TARGET_ARCH}/helm /usr/local/bin/helm && \
438
- chmod a+x /usr/local/bin/helm
439
-
440
- # Install kubectl
441
- ARG KUBECTL_VERSION=v1.14.1
442
- RUN cd /tmp &&\
443
- curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${TARGET_ARCH}/kubectl &&\
444
- chmod +x ./kubectl &&\
445
- mv ./kubectl /usr/bin/kubectl
446
-
447
- # Get integration test deps in here
448
- RUN pip3 install ipython ipdb
449
- COPY tests/requirements.txt /tmp/
450
- RUN pip3 install -r /tmp/requirements.txt
451
- RUN ln -s /usr/bin/pip3 /usr/bin/pip
452
-
453
- WORKDIR /usr/src/signalfx-agent
454
-
455
- COPY --from=final-image /bin/signalfx-agent ./signalfx-agent
456
- COPY --from=final-image / /bundle/
457
- RUN /bundle/bin/patch-interpreter /bundle
458
-
459
- COPY --from=agent-builder /usr/local/go /usr/local/go
460
- COPY --from=agent-builder /go $GOPATH
461
-
462
- RUN go get -u golang.org/x/lint/golint &&\
463
- if [ `uname -m` != "aarch64" ]; then go get github.com/derekparker/delve/cmd/dlv; fi &&\
464
- go get github.com/tebeka/go2xunit &&\
465
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.8
466
-
467
- COPY ./ ./
468
-
469
- CMD ["/bin/bash" ]
470
-
471
-
472
382
# ###### Pandoc Converter ########
473
383
FROM ubuntu:16.04 as pandoc-converter
474
384
@@ -513,6 +423,7 @@ RUN rm -f /usr/lib/signalfx-agent/bin/agent-status
513
423
RUN /usr/lib/signalfx-agent/bin/patch-interpreter /usr/lib/signalfx-agent
514
424
RUN mv /usr/lib/signalfx-agent ./signalfx-agent
515
425
426
+
516
427
# ##### RPM Packager #######
517
428
FROM fedora:27 as rpm-packager
518
429
0 commit comments