Created
December 22, 2019 15:15
-
-
Save superherointj/fe031e0255d86fc40fc333a7e14de310 to your computer and use it in GitHub Desktop.
Tracking pony-stable issue - Upstream or Packaging?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM superherointj/archlinux-base as archlinux-pkgbuild-base | |
# ArchLinux PKGBUILD requires | |
RUN pacman -S --noconfirm fakeroot binutils | |
#Pick EITHER: | |
# (1) base-devel | |
# (2) fakeroot binutils | |
RUN mkdir /app | |
WORKDIR /app | |
# makepkg requires non-root user | |
RUN useradd notroot | |
RUN chown -R notroot /app | |
USER notroot | |
FROM archlinux-pkgbuild-base as pkgbuild-ponystable-srcpackage | |
RUN curl -o PKGBUILD https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/pony-stable | |
# Pony-Stable requires gcc, make, pony --- BUT PKGBUILD only makerequires ponyc. ??? | |
RUN pacman -S --noconfirm gcc make ponyc | |
RUN makepkg -s | |
# Testing built package | |
FROM superherointj/archlinux-base as pkgbuild-ponystable-testpackage | |
RUN mkdir /app | |
WORKDIR /app | |
# USER root | |
COPY --from=pkgbuild-ponystable-srcpackage /app/*.tar.xz /app | |
RUN pacman --noconfirm -U /app/*.tar.xz | |
RUN stable version | |
# It works just fine! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM superherointj/archlinux-base | |
RUN pacman --noconfirm -S pony-stable | |
RUN stable version | |
# Errors as: | |
# The command '/bin/sh -c stable version' returned a non-zero code: 132 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/superherointj/dockerfile-archlinux-base/blob/master/Dockerfile | |
FROM archlinux | |
RUN pacman -Syu --noconfirm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment