-
Notifications
You must be signed in to change notification settings - Fork 40
/
.newrelic.Dockerfile
51 lines (37 loc) · 1.6 KB
/
.newrelic.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM newrelic/infrastructure:latest
RUN echo "license_key: $NEW_RELIC_LICENSE_KEY" | tee -a /etc/newrelic-infra.yml
RUN apk upgrade && \
apk add --no-cache curl gnupg python3 python3-dev py3-pip libpq boost-dev postgresql-dev libcap py3-pip py3-numpy py3-scipy \
musl-dev linux-headers gcc g++ cmake build-base cython libstdc++ gfortran wget freetype-dev libpng-dev openblas-dev \
git bash jemalloc-dev autoconf zlib-dev flex bison py3-numpy py3-scipy libffi-dev openssl-dev apache-arrow && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools pipenv && \
adduser -D 4geeks && \
mkdir -p /app
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
ARG ARROW_VERSION=14.0.1
ARG ARROW_SHA1=2ede75769e12df972f0acdfddd53ab15d11e0ac2
ARG ARROW_BUILD_TYPE=release
ENV ARROW_HOME=/usr/local \
PARQUET_HOME=/usr/local
RUN mkdir /mnt/arrow \
&& cd /mnt/arrow \
&& curl -L -o apache-arrow-${ARROW_VERSION}.tar.gz \
https://github.com/apache/arrow/archive/refs/tags/apache-arrow-${ARROW_VERSION}.tar.gz \
&& tar -xzvf apache-arrow-${ARROW_VERSION}.tar.gz \
&& cd arrow-apache-arrow-${ARROW_VERSION} \
&& ls
USER 4geeks
ENV NRIA_MODE="UNPRIVILEGED"
COPY . /app
WORKDIR /app
RUN python3 --version
RUN python3.12 --version
RUN pipenv install --system --deploy --ignore-pipfile && \
pip3 cache purge && \
rm -rf $HOME/.cache/pipenv /tmp/*
RUN newrelic-infra
RUN newrelic profile configure --accountId $NEW_RELIC_ACCOUNT_ID --apiKey $NEW_RELIC_API_KEY && \
/usr/bin/newrelic install -n logs-integration
#