-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (24 loc) · 1005 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 atlas/athanalysis:21.2.40
RUN echo bust cache
RUN echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lcg/zeromq/4.1.6-b4186/x86_64-slc6-gcc62-opt/lib' >> /home/atlas/setup.sh
RUN source ~/release_setup.sh && pip install -U metakernel --user
RUN source /home/atlas/release_setup.sh && cp -r $ROOTSYS/etc/notebook/kernels/root ~/.local/share/jupyter/kernels
RUN echo 'export PATH=$PATH:$HOME/.local/bin' >> /home/atlas/setup.sh
USER root
ADD entrypoint.sh /entrypoint.sh
RUN chown atlas /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN usermod -u 1000 atlas
RUN find /home -user 500 -type f -exec chown -h atlas '{}' \;
ENV AtlasProject AthAnalysis
ENV AtlasVersion 21.2.40
USER atlas
ENTRYPOINT ["/entrypoint.sh"]
COPY . /code/src
RUN sudo chown -R atlas /code /home/atlas && \
mkdir /code/build && cd /code/build && \
source /home/atlas/release_setup.sh && \
cmake /code/src && \
make && \
echo 'source /code/build/x86*/setup.sh' >> /home/atlas/setup.sh
WORKDIR /code/src