Fix yum package conflict in Docker image
When running the CLI builds on the new build agents, the CentOS build failed with the following error: 2017-01-26T20:39:30.0800810Z Step 4 : RUN yum -q -y install unzip libunwind gettext libcurl-devel openssl-devel zlib libicu-devel 2017-01-26T20:39:30.3020500Z ---> Running in 97affb106685 2017-01-26T20:39:40.3872390Z [91mError: libselinux conflicts with fakesystemd-1-17.el7.centos.noarch Swapping the the "fakesystemd" package with the real "systemd" package fixed the issue, which was recommended in http://stackoverflow.com/a/36632668. This issue hasn't been seen on the official builds because the build agents in that pool have the Docker image cached, and they are using an older version of the centos:7.1.1503 image which appears not to have this issue.
This commit is contained in:
parent
cb34818237
commit
c3e6994728
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,10 @@
|
|||
# Dockerfile that creates a container suitable to build dotnet-cli
|
||||
FROM centos:7.1.1503
|
||||
|
||||
# Swap the "fakesystemd" package with the real "systemd" package, because fakesystemd conflicts with openssl-devel.
|
||||
# The CentOS Docker image uses fakesystemd instead of systemd to reduce disk space.
|
||||
RUN yum -q -y swap -- remove fakesystemd -- install systemd systemd-libs
|
||||
|
||||
RUN yum -q -y install deltarpm
|
||||
RUN yum -q -y install epel-release
|
||||
# RUN yum -y update
|
||||
|
|
Loading…
Reference in a new issue