aboutsummaryrefslogtreecommitdiff
path: root/images
diff options
context:
space:
mode:
Diffstat (limited to 'images')
-rw-r--r--images/spmbuild/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/images/spmbuild/Dockerfile b/images/spmbuild/Dockerfile
new file mode 100644
index 0000000..1a939f8
--- /dev/null
+++ b/images/spmbuild/Dockerfile
@@ -0,0 +1,19 @@
+FROM jhunkeler/spm_ci_centos7:latest
+ARG RELOC_COMMIT=${RELOC_COMMIT:-}
+ARG SPM_COMMIT=${SPM_COMMIT:-}
+ENV PATH /opt/spm/bin:/usr/bin:/usr/sbin:/bin:/sbin
+ENV SHELL /bin/bash
+
+RUN yum install -y \
+ perl-Data-Dumper \
+ perl-Thread-Queue \
+ perl-ExtUtils-ParseXS
+
+RUN ln -s cmake3 /usr/bin/cmake \
+ && git clone https://github.com/jhunkeler/spmc \
+ && git clone https://github.com/jhunkeler/reloc \
+ && pushd reloc && mkdir build && cd build && git checkout ${RELOC_COMMIT} && cmake .. -DCMAKE_INSTALL_PREFIX=/opt/spm && make install && popd \
+ && pushd spmc && mkdir build && cd build && git checkout ${SPM_COMMIT} && cmake .. -DCMAKE_INSTALL_PREFIX=/opt/spm && make install && popd
+
+WORKDIR /spm_packages
+CMD ["bash", "-l"]