-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: 3.5.{build} | ||
version: 3.6.{build} | ||
max_jobs: 4 | ||
environment: | ||
matrix: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Docker >= 17.05.0-ce allows using build-time args (ARG) in FROM (#31352). | ||
# https://github.com/moby/moby/releases/tag/v17.05.0-ce | ||
ARG BASE_IMAGE=fedora | ||
#FROM ${BASE_IMAGE} | ||
FROM multiarch/fedora:30-aarch64 | ||
|
||
# Test with non-root user. | ||
ENV TEST_USER tester | ||
ENV WORK_DIR "/work" | ||
|
||
#RUN uname -a | ||
#RUN echo -e "deltarpm=0\ninstall_weak_deps=0\ntsflags=nodocs" >> /etc/dnf/dnf.conf | ||
# Disable modular repositories to save a running time of "dnf update" | ||
# if they exists. | ||
#RUN ls /etc/yum.repos.d/*.repo | ||
RUN sed -i '/^enabled=1$/ s/1/0/' /etc/yum.repos.d/*-modular.repo || true | ||
# RUN dnf -y update | ||
RUN dnf -y --allowerasing --repo fedora install \ | ||
file gcc git make redhat-rpm-config sudo \ | ||
automake autoconf libtool perl-Text-Diff pkgconf-pkg-config strace gdb | ||
#RUN dnf -y --repo fedora install m4 libtool perl-Text-Diff pkgconf-pkg-config strace gdb | ||
#RUN dnf -y --repo fedora install strace gdb | ||
|
||
# Create test user and the environment | ||
RUN useradd "${TEST_USER}" | ||
WORKDIR "${WORK_DIR}" | ||
COPY . . | ||
RUN chown -R "${TEST_USER}:${TEST_USER}" "${WORK_DIR}" | ||
|
||
# Enable sudo without password for convenience. | ||
RUN echo "${TEST_USER} ALL = NOPASSWD: ALL" >> /etc/sudoers | ||
|
||
USER "${TEST_USER}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
# ./configure --host=aarch64-linux-gnu --disable-shared --enable-debug | ||
# echo to avoid libssp | ||
# sed -i 's,-fstack-protector-strong -fstack-clash-protection,,' Makefile */Makefile | ||
docker build --rm -f Dockerfile-fedora-aarch64 -t aarch64 . | ||
docker run --rm -t aarch64 $@ |