Skip to content
Snippets Groups Projects

Add git-lfs to CI docker images

9 files
+ 72
31
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -2,7 +2,7 @@ FROM centos:centos7
# Install core dev packages
RUN yum -y install gcc gcc-c++ gcc-gfortran git make curl file valgrind vim \
gdb zlib zlib-devel bzip2 bzip2-libs bzip2-devel python-devel numpy \
gdb zlib zlib-devel bzip2 bzip2-libs bzip2-devel python-devel numpy
RUN yum -y install epel-release
RUN yum -y install zeromq-devel hdf5 hdf5-devel
@@ -21,9 +21,13 @@ RUN export uid=1001 gid=1001 && \
echo "adios2:x:${uid}:" >> /etc/group && \
chown ${uid}:${gid} -R /home/adios2
# Install and initialize git-lfs
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash && \
yum install -y git-lfs && \
runuser -l adios2 -c 'git lfs install'
# Misc cleanup of unneeded files
RUN rm -rfv /tmp/* \
&& rm -rf /var/cache/yum
RUN rm -rfv /tmp/* /var/cache/yum
USER adios2
ENV HOME /home/adios2
Loading