Skip to content

Commit

Permalink
alpine 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nxadm committed Jan 10, 2018
1 parent c22c7fc commit 5c6d182
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
- RAKUDO_DEB="https://github.com/nxadm/rakudo-pkg/releases/download/v2017.11/rakudo-pkg-Ubuntu14.04_2017.11-01_amd64.deb"
matrix:
- OS=alpine ARCH=amd64 VERSION=3.6
- OS=alpine ARCH=amd64 VERSION=3.7
- OS=centos ARCH=amd64 VERSION=7
- OS=debian ARCH=amd64 VERSION=8
- OS=debian ARCH=amd64 VERSION=9
Expand Down
30 changes: 30 additions & 0 deletions docker/Dockerfile-alpine-amd64-3.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM alpine:3.7
MAINTAINER Claudio Ramirez <pub.claudio@gmail.com>
# This build is on hold because an upstream bug resulting in bad pkgs:
# https://github.com/jordansissel/fpm/issues/1227

ENV LANG='C.UTF-8'
ENV TZ='Europe/Brussels'
ENV pkgs='build-base ca-certificates git libc-dev linux-headers openssl perl perl-utils ruby wget zlib gzip tar git'
ENV pkg_tmp='libffi-dev ruby-dev ruby-irb ruby-rdoc tzdata'

RUN set -xv ; \
apk update && apk upgrade && \
# pkgs for compiling and pkg creation
apk add --no-cache ${pkgs} ${pkg_tmp} && \
update-ca-certificates && \
cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
echo "${TZ}" > /etc/timezone && \
gem install fpm json && \
# Workaround bug https://github.com/jordansissel/fpm/issues/1227
perl -pi -e \
's/^\s+(full_record_path\s+=\s+add_paxstring\(full_record_path\))/#$1/' \
/usr/lib/ruby/gems/2.4.0/gems/fpm-1.9.3/lib/fpm/package/apk.rb && \
# Cleanup
apk del ${pkg_tmp} && \
rm -rf /tmp/* /var/tmp/* /MoarVM* /nqp* /rakudo*

COPY pkg_rakudo.pl /
COPY install-zef-as-user /

ENTRYPOINT [ "/pkg_rakudo.pl" ]
24 changes: 24 additions & 0 deletions docker/EOL/Dockerfile-ubuntu-amd64-17.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM ubuntu:zesty
MAINTAINER Claudio Ramirez <pub.claudio@gmail.com>

ENV LANG='C.UTF-8' \
DEBIAN_FRONTEND='noninteractive' \
TZ='Europe/Brussels' \
pkgs='build-essential git lsb-release ruby wget' \
pkgs_tmp='ruby-dev'

RUN set -xv ; \
apt-get -qq update && \
apt-get -qq dist-upgrade -y && \
# Packages for compiling and pkg creation
apt-get -qq install -y ${pkgs} ${pkgs_tmp} && \
gem install fpm && \
# Cleanup
apt-get remove -y --purge ${pkgs_tmp} && \
apt-get -qq autoremove -y && apt-get -qq clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /*.deb /MoarVM* /nqp* /rakudo*

COPY pkg_rakudo.pl /
COPY install-zef-as-user /

ENTRYPOINT [ "/pkg_rakudo.pl" ]
26 changes: 26 additions & 0 deletions docker/EOL/Dockerfile-ubuntu-i386-17.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM nxadm/ubuntu-i386:17.04
# This inherits from an image directly created (without changes) from:
# http://cdimage.ubuntu.com/ubuntu-base/releases/17.04/release/ubuntu-base-17.04-core-i386.tar.gz
MAINTAINER Claudio Ramirez <pub.claudio@gmail.com>

ENV LANG='C.UTF-8' \
DEBIAN_FRONTEND='noninteractive' \
TZ='Europe/Brussels' \
pkgs='build-essential git lsb-release ruby wget' \
pkgs_tmp='ruby-dev'

RUN set -xv ; \
apt-get -qq update && \
apt-get -qq dist-upgrade -y && \
# Packages for compiling and pkg creation
apt-get -qq install -y ${pkgs} ${pkgs_tmp} && \
gem install fpm && \
# Cleanup
apt-get remove -y --purge ${pkgs_tmp} && \
apt-get -qq autoremove -y && apt-get -qq clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /*.deb /MoarVM* /nqp* /rakudo*

COPY pkg_rakudo.pl /
COPY install-zef-as-user /

ENTRYPOINT [ "/pkg_rakudo.pl" ]

0 comments on commit 5c6d182

Please sign in to comment.