Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
FROM registry.icts.kuleuven.be:5000/icts/icts-centos7
MAINTAINER Claudio Ramirez <claudioxxx@xxx>
### Environment ###
# App dependent variables
ENV rakudo_version=2016.02 \
build_deps='git perl-autodie curl ca-certificates' \
buildgroup_deps='Development Tools' \
# OS environment
GIT_PROTOCOL=https
### Run ###
# create the OS image
RUN \
# Build dependencies
yum update -y \
&& yum install -y ${deps} ${build_deps} \
&& yum groupinstall -y "${buildgroup_deps}" \
# Get rakudo and build it
&& mkdir /root/rakudo \
&& curl -fsSL \
http://rakudo.org/downloads/rakudo/rakudo-${rakudo_version}.tar.gz \
-o rakudo.tar.gz \
&& tar xzf rakudo.tar.gz --strip-components=1 -C /root/rakudo \
&& cd /root/rakudo && perl Configure.pl --prefix=/usr --gen-moar \
&& make install \
# Get panda
&& cd /root \
&& git clone --recursive git://github.com/tadzik/panda.git \
&& cd panda && perl6 bootstrap.pl \
&& cd /root \
# Get zef
&& git clone https://github.com/ugexe/zef.git \
&& cd zef \
&& perl6 -Ilib bin/zef install . \
&& cd / \
&& yum autoremove -y && yum clean all \
&& rm -rf /rakudo.tar.gz /root/rakudo /root/panda /root/zef /tmp/* /var/tmp/*
### Entrypoint ###
ENTRYPOINT [ "perl6" ]
CMD [ "--version" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment