-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (20 loc) · 943 Bytes
/
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
FROM ubuntu:20.04
MAINTAINER "Ryan Long <[email protected]>"
ARG SOURCE_BRANCH_NAME=main
ENV DEBIAN_FRONTEND noninteractive
# Update apt
RUN apt-get update
# Install dependencies
RUN apt-get install -y -q git build-essential libssl-dev libffi-dev python3 python3-pip python3-dev bison flex libglib2.0-dev
# Clone profiler
WORKDIR /home
RUN git clone -b $SOURCE_BRANCH_NAME https://github.com/esmf-org/esmf-profiler.git
WORKDIR /home/esmf-profiler
# install OS dependencies
RUN ./install_dependencies.sh
# Set envs for Python and LD_Library
ENV PYTHONPATH="/home/esmf-profiler/dependencies/INSTALL/babeltrace2-2.0.4/lib/python3.8/site-packages:$PYTHONPATH"
ENV LD_LIBRARY_PATH="/home/esmf-profiler/dependencies/INSTALL/babeltrace2-2.0.4/lib:$LD_LIBRARY_PATH"
# Install the profiler via local PIP
# TODO https://github.com/esmf-org/esmf-profiler/issues/35
RUN ["python3", "-m", "pip", "install", "."]