Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

add archlinux build #73

Merged
merged 6 commits into from
Jul 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ def package_docker(config, target, src_dir, iteration, clean=False):
elif output in ('rpm', 'rpm:bzip2'):
frpm = '-t rpm --rpm-compression %s' % ('xz' if output == 'rpm' else 'bzip2')
shell('docker run --rm -v%s:/tgt -w/tgt %s %s' % (os.path.abspath('targets'), fpm_args, frpm))
elif output in ('pacman'):
fpacman = '-t pacman'
palytoxin marked this conversation as resolved.
Show resolved Hide resolved
fpm_args = fpm_args.replace('/usr/local', '/usr')
shell('docker run --rm -v%s:/tgt -w/tgt %s %s' % (os.path.abspath('targets'), fpm_args, fpacman))

if clean:
shell('rm -fr %s' % tgt_dir)
Expand Down
16 changes: 16 additions & 0 deletions build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,22 @@ docker-targets:
xorg-x11-fonts-Type1
zlib

archlinux:
source: docker/Dockerfile.archlinux
args:
from: archlinux:latest
output: pacman
ashkulz marked this conversation as resolved.
Show resolved Hide resolved
matrix: ['amd64']
depend: >
openssl
zlib
fontconfig
freetype2
libjpeg
libpng
libxext
libxrender

amazonlinux2:
source: docker/Dockerfile.centos
args:
Expand Down
22 changes: 22 additions & 0 deletions docker/Dockerfile.archlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ARG from
FROM ${from}

ENV CFLAGS=-w CXXFLAGS=-w
WORKDIR /root/
RUN curl -o gcc-lib.pkg.tar.xz https://archive.archlinux.org/packages/g/gcc7-libs/gcc7-libs-7.4.1%2B20181207-3-x86_64.pkg.tar.xz && \
curl -o gcc.pkg.tar.xz https://archive.archlinux.org/packages/g/gcc7/gcc7-7.4.1%2B20181207-3-x86_64.pkg.tar.xz && \
pacman -Sy --noconfirm \
diffutils \
fontconfig \
freetype2 \
libx11 \
libxext \
libxrender \
libjpeg-turbo \
libpng \
make && \
pacman -U /root/gcc.pkg.tar.xz /root/gcc-lib.pkg.tar.xz --noconfirm && \
pacman -Scc --noconfirm
RUN ln -s /usr/bin/gcc-7 /usr/bin/gcc && \
ln -s /usr/bin/g++-7 /usr/bin/g++