Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ppc64le updates #59

Open
wants to merge 22 commits into
base: ppc64le
Choose a base branch
from
Open
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: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: c
services: docker
os:
- linux-ppc64le
- linux
arch:
- ppc64le
sudo: false

env:
Expand Down
6 changes: 6 additions & 0 deletions alpine/3.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM alpine:3.11
MAINTAINER Konstantin Nazarov <[email protected]>

RUN set -x \
&& apk add --no-cache su-exec make git tar xz alpine-sdk sudo \
&& sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers
42 changes: 32 additions & 10 deletions centos/7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM centos:7
MAINTAINER Roman Tsisyk <[email protected]>

ARG DEVTOOLSET=devtoolset-8

# Fix missing locales
ENV LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8"

Expand All @@ -15,24 +17,44 @@ RUN yum -y install epel-release centos-release-scl centos-release-scl-rh
# Install base toolset
RUN yum -y groupinstall 'Development Tools'
RUN yum -y install \
devtoolset-6-toolchain devtoolset-6-binutils-devel \
${DEVTOOLSET}-toolchain ${DEVTOOLSET}-binutils-devel \
cmake cmake28 cmake3 \
sudo

# Enable sudo without tty
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers

# Enable devtoolset and ccache system-wide
# See /opt/rh/devtoolset-6/enable
ENV PATH=/usr/lib64/ccache:/opt/rh/devtoolset-6/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/opt/rh/devtoolset-6/root/usr/lib64:/opt/rh/devtoolset-6/root/usr/lib
ENV PERL5LIB=/opt/rh/devtoolset-6/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-6/root/usr/lib/perl5:/opt/rh/devtoolset-6/root//usr/share/perl5/vendor_perl
ENV PYTHONPATH=/opt/rh/devtoolset-6/root/usr/lib64/python2.7/site-packages:/opt/rh/devtoolset-6/root/usr/lib/python2.7/site-packages
ENV XDG_CONFIG_DIRS=/opt/rh/devtoolset-6/root/etc/xdg:/etc/xdg
ENV XDG_DATA_DIRS=/opt/rh/devtoolset-6/root/usr/share:/usr/local/share:/usr/share
# See /opt/rh/${DEVTOOLSET}/enable
ENV PATH=/usr/lib64/ccache:/opt/rh/${DEVTOOLSET}/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH=/opt/rh/${DEVTOOLSET}/root/usr/lib64:/opt/rh/${DEVTOOLSET}/root/usr/lib
ENV PERL5LIB=/opt/rh/${DEVTOOLSET}/root/usr/lib64/perl5/vendor_perl:/opt/rh/${DEVTOOLSET}/root/usr/lib/perl5:/opt/rh/${DEVTOOLSET}/root/usr/share/perl5/vendor_perl
ENV PYTHONPATH=/opt/rh/${DEVTOOLSET}/root/usr/lib64/python2.7/site-packages:/opt/rh/${DEVTOOLSET}/root/usr/lib/python2.7/site-packages
ENV XDG_CONFIG_DIRS=/opt/rh/${DEVTOOLSET}/root/etc/xdg:/etc/xdg
ENV XDG_DATA_DIRS=/opt/rh/${DEVTOOLSET}/root/usr/share:/usr/local/share:/usr/share

# sudo wrapper from devtoolset is buggy, remove it
RUN rm -f /opt/rh/devtoolset-6/root/usr/bin/sudo
RUN rm -f /opt/rh/${DEVTOOLSET}/root/usr/bin/sudo

# A workaround for [Errno 14] HTTP Error 404 - Not Found
# https://bugs.centos.org/view.php?id=12793
RUN rm -rf /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
RUN sed -e '/\[centos-sclo-sclo-source\]/,+6d' -i /etc/yum.repos.d/CentOS-SCLo-scl.repo
RUN sed -e '/\[centos-sclo-rh-source\]/,+6d' -i /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

# extras-source is not present for CentOS 7.8, while
# http://vault.centos.org/centos/7 now points to 7.8.2003.
#
# yum-builddep enables the repository and fetching of
# repomd.xml fails with 404 error.
#
# Don't know whether it is temporary effect or not, but
# it worth to remove the repository until it will be
# available on CentOS mirrors.
#
# How to check:
#
# $ curl -fSs 'http://vault.centos.org/centos/7/extras/Source/repodata/repomd.xml'
# curl: (22) The requested URL returned error: 404 Not Found
#
# The output above means that the problem is there.
RUN sed -e '/\[extras-source\]/,+6d' -i /etc/yum.repos.d/CentOS-Sources.repo
25 changes: 25 additions & 0 deletions centos/8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM centos:8
MAINTAINER Alexander V. Tikhonov <[email protected]>

# Enable extra tools
RUN yum -y install wget yum-utils

# Enable extra repositories
RUN yum -y install epel-release
# added PowerTools as suggested at:
# https://fedoraproject.org/wiki/EPEL
RUN yum config-manager --set-enabled PowerTools

# Repository for building/testing dependencies that are not present in vanilla
# CentOS and PowerTools / EPEL repositories, e.g. some Python 2 packages
# - fix missing locales
ENV LC_ALL="C" LANG="en_US.UTF-8"

# Install base toolset
RUN yum -y groupinstall 'Development Tools'
RUN yum -y install \
cmake \
sudo

# Enable sudo without tty
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers
39 changes: 39 additions & 0 deletions debian/buster/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM debian:buster
MAINTAINER Alexey Kopytov <[email protected]>

# Fix missing locales
ENV LC_ALL="C.UTF-8" LANG="C.UTF-8"

# Skip interactive post-install scripts
ENV DEBIAN_FRONTEND=noninteractive

# Don't install recommends
RUN echo 'apt::install-recommends "false";' > /etc/apt/apt.conf.d/00recommends

RUN apt-get update && apt-get install -y --force-yes \
apt-transport-https \
curl \
wget \
gnupg \
ca-certificates

# Install base toolset
RUN apt-get update && apt-get install -y --force-yes \
sudo \
git \
build-essential \
cmake \
gdb \
ccache \
devscripts \
debhelper \
cdbs \
fakeroot \
lintian \
equivs \
rpm \
alien \
dh-systemd

# Enable sudo without password
RUN echo '%adm ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2 changes: 0 additions & 2 deletions debian/jessie/backports.list

This file was deleted.

7 changes: 0 additions & 7 deletions debian/jessie/preferences

This file was deleted.

2 changes: 2 additions & 0 deletions debian/wheezy/sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deb http://archive.debian.org/debian wheezy main
deb http://archive.debian.org/debian-security wheezy/updates main
18 changes: 18 additions & 0 deletions fedora/29/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM fedora:29
MAINTAINER Alexey Kopytov <[email protected]>

# Fix missing locales
ENV LC_ALL="C.UTF-8" LANG="C.UTF-8"

# Install base toolset
RUN dnf -y group install 'Development Tools'
RUN dnf -y group install 'C Development Tools and Libraries'
RUN dnf -y group install 'RPM Development Tools'
RUN dnf -y install fedora-packager
RUN dnf -y install sudo git ccache cmake

# Enable cache system-wide
ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin

# Enable sudo without tty
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers
18 changes: 18 additions & 0 deletions fedora/30/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM fedora:30
MAINTAINER Alexander Turenko <[email protected]>

# Fix missing locales
ENV LC_ALL="C.UTF-8" LANG="C.UTF-8"

# Install base toolset
RUN dnf -y group install 'Development Tools'
RUN dnf -y group install 'C Development Tools and Libraries'
RUN dnf -y group install 'RPM Development Tools'
RUN dnf -y install fedora-packager
RUN dnf -y install sudo git ccache cmake

# Enable cache system-wide
ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin

# Enable sudo without tty
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers
21 changes: 21 additions & 0 deletions fedora/31/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM fedora:31
MAINTAINER Alexey Kopytov <[email protected]>

# Fix missing locales
ENV LC_ALL="C.UTF-8" LANG="C.UTF-8"

# Install base toolset
RUN dnf -y group install 'Development Tools'
RUN dnf -y group install 'C Development Tools and Libraries'
RUN dnf -y group install 'RPM Development Tools'
RUN dnf -y install fedora-packager
RUN dnf -y install sudo git ccache cmake

# Setup backport repository for python2 packages
RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash

# Enable cache system-wide
ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin

# Enable sudo without tty
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers
21 changes: 21 additions & 0 deletions fedora/32/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM fedora:32
MAINTAINER Alexander V. Tikhonov <[email protected]>

# Fix missing locales
ENV LC_ALL="C.UTF-8" LANG="C.UTF-8"

# Install base toolset
RUN dnf -y group install 'Development Tools'
RUN dnf -y group install 'C Development Tools and Libraries'
RUN dnf -y group install 'RPM Development Tools'
RUN dnf -y install fedora-packager
RUN dnf -y install sudo git ccache cmake

# Setup backport repository for python2 packages
RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash

# Enable cache system-wide
ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin

# Enable sudo without tty
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers
19 changes: 7 additions & 12 deletions fedora/rawhide/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,20 @@ MAINTAINER Roman Tsisyk <[email protected]>
# Fix missing locales
ENV LC_ALL="C.UTF-8" LANG="C.UTF-8"

# Upgrade Python3, so this does not happen:
# https://bugzilla.redhat.com/show_bug.cgi?id=1435135
RUN dnf -y upgrade python3

# Enable extra repositories
RUN dnf -y install \
wget \
curl \
pygpgme \
yum-utils
#RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash

# Install base toolset
RUN dnf -y group install 'Development Tools'
RUN dnf -y group install 'C Development Tools and Libraries'
RUN dnf -y group install 'RPM Development Tools'
RUN dnf -y install fedora-packager
RUN dnf -y install sudo git ccache cmake

# The script from packagecloud.io detects the OS as fedora/32 and
# reports that it does not support this operating system.
# Commented this out so.
#
# Setup backport repository for python2 packages
# RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.rpm.sh | bash

# Enable cache system-wide
ENV PATH /usr/lib/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin

Expand Down
24 changes: 24 additions & 0 deletions opensuse/leap/15.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM opensuse/leap:15.0
MAINTAINER Alexander V. Tikhonov <[email protected]>

# Install base toolset
RUN zypper install -y \
autoconf \
ccache \
cmake \
curl \
devscripts \
dnf \
fakeroot \
gdb \
git \
lsb-release \
rpm-build \
sudo \
tar \
wget \
xz \
yum-utils

# Enable sudo without password
RUN echo '%users ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
24 changes: 24 additions & 0 deletions opensuse/leap/15.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM opensuse/leap:15.1
MAINTAINER Alexander V. Tikhonov <[email protected]>

# Install base toolset
RUN zypper install -y \
autoconf \
ccache \
cmake \
curl \
devscripts \
dnf \
fakeroot \
gdb \
git \
lsb-release \
rpm-build \
sudo \
tar \
wget \
xz \
yum-utils

# Enable sudo without password
RUN echo '%users ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
24 changes: 24 additions & 0 deletions opensuse/leap/15.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM opensuse/leap:15.2
MAINTAINER Alexander V. Tikhonov <[email protected]>

# Install base toolset
RUN zypper install -y \
autoconf \
ccache \
cmake \
curl \
devscripts \
dnf \
fakeroot \
gdb \
git \
lsb-release \
rpm-build \
sudo \
tar \
wget \
xz \
yum-utils

# Enable sudo without password
RUN echo '%users ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
10 changes: 4 additions & 6 deletions debian/jessie/Dockerfile → ubuntu/eoan/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM debian:jessie
MAINTAINER Roman Tsisyk <[email protected]>
FROM ubuntu:eoan
MAINTAINER Alexey Kopytov <[email protected]>

# Fix missing locales
ENV LC_ALL="C.UTF-8" LANG="C.UTF-8"
Expand All @@ -16,10 +16,8 @@ RUN apt-get update && apt-get install -y --force-yes \
curl \
wget \
gnupg \
ca-certificates
ADD backports.list /etc/apt/sources.list.d/
ADD preferences /etc/apt/preferences.d/
RUN curl -s https://packagecloud.io/install/repositories/packpack/backports/script.deb.sh | bash
ca-certificates \
software-properties-common

# Install base toolset
RUN apt-get update && apt-get install -y --force-yes \
Expand Down
Loading