Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
0ffda5e1
Commit
0ffda5e1
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Update base dockerfile for formatting"
parents
d4213656
53b609df
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/base/Dockerfile.j2
+21
-17
21 additions, 17 deletions
docker/base/Dockerfile.j2
with
21 additions
and
17 deletions
docker/base/Dockerfile.j2
+
21
−
17
View file @
0ffda5e1
...
@@ -38,7 +38,8 @@ COPY kibana.yum.repo /etc/yum.repos.d/kibana.yum.repo
...
@@ -38,7 +38,8 @@ COPY kibana.yum.repo /etc/yum.repos.d/kibana.yum.repo
# Turns on MariaDB repos throughout the RPM build
# Turns on MariaDB repos throughout the RPM build
COPY mariadb.yum.repo /etc/yum.repos.d/MariaDB.repo
COPY mariadb.yum.repo /etc/yum.repos.d/MariaDB.repo
RUN yum -y install http://repo.percona.com/release/7/RPMS/x86_64/percona-release-0.1-3.noarch.rpm
RUN yum -y install \
http://repo.percona.com/release/7/RPMS/x86_64/percona-release-0.1-3.noarch.rpm
RUN rpm --import http://yum.mariadb.org/RPM-GPG-KEY-MariaDB \
RUN rpm --import http://yum.mariadb.org/RPM-GPG-KEY-MariaDB \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Percona \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Percona \
...
@@ -64,11 +65,11 @@ RUN yum-config-manager --enable rhel-7-server-rpms \
...
@@ -64,11 +65,11 @@ RUN yum-config-manager --enable rhel-7-server-rpms \
{% if base_distro == 'centos' %}
{% if base_distro == 'centos' %}
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \
&& yum install
-y
\
&& yum
-y
install \
epel-release \
epel-release \
yum-plugin-priorities \
yum-plugin-priorities \
centos-release-ceph-hammer \
centos-release-ceph-hammer \
centos-release-qemu-ev \
centos-release-qemu-ev \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Storage \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization \
...
@@ -81,10 +82,11 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \
...
@@ -81,10 +82,11 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \
# Enable couple required repositories for all RHEL builds
# Enable couple required repositories for all RHEL builds
# Turn on EPEL throughout the build
# Turn on EPEL throughout the build
RUN yum install
-y
\
RUN yum
-y
install \
https://mirror.centos.org/centos-7/7/extras/x86_64/Packages/epel-release-7-5.noarch.rpm \
https://mirror.centos.org/centos-7/7/extras/x86_64/Packages/epel-release-7-5.noarch.rpm \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 \
&& yum -y install yum-plugin-priorities \
&& yum -y install \
yum-plugin-priorities \
&& yum clean all \
&& yum clean all \
&& yum-config-manager --enable rhel-7-server-optional-rpms \
&& yum-config-manager --enable rhel-7-server-optional-rpms \
&& yum-config-manager --enable rhel-7-server-extras-rpms
&& yum-config-manager --enable rhel-7-server-extras-rpms
...
@@ -95,8 +97,7 @@ RUN yum install -y \
...
@@ -95,8 +97,7 @@ RUN yum install -y \
{% if base_distro == 'oraclelinux' %}
{% if base_distro == 'oraclelinux' %}
COPY oraclelinux-extras.repo /etc/yum.repos.d/oraclelinux-extras.repo
COPY oraclelinux-extras.repo /etc/yum.repos.d/oraclelinux-extras.repo
RUN yum -y install \
RUN yum install -y \
tar \
tar \
yum-utils \
yum-utils \
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/epel-release-7-5.noarch.rpm \
http://mirror.centos.org/centos-7/7/extras/x86_64/Packages/epel-release-7-5.noarch.rpm \
...
@@ -113,7 +114,8 @@ RUN yum install -y \
...
@@ -113,7 +114,8 @@ RUN yum install -y \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization
RUN yum-config-manager --enable ol7_optional_latest ol7_addons
RUN yum-config-manager --enable ol7_optional_latest ol7_addons
RUN yum install -y yum-plugin-priorities \
RUN yum -y install \
yum-plugin-priorities \
&& yum clean all
&& yum clean all
{% endif %}
{% endif %}
...
@@ -122,9 +124,11 @@ RUN yum install -y yum-plugin-priorities \
...
@@ -122,9 +124,11 @@ RUN yum install -y yum-plugin-priorities \
{% if base_distro == 'fedora' %}
{% if base_distro == 'fedora' %}
# Set up repositories
# Set up repositories
RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm \
RUN yum -y install \
&& yum -y install dnf dnf-plugins-core \
https://rdo.fedorapeople.org/rdo-release.rpm \
&& yum -y install yum-plugin-priorities \
dnf \
dnf-plugins-core \
yum-plugin-priorities \
&& yum clean all
&& yum clean all
{% endif %}
{% endif %}
...
@@ -135,11 +139,11 @@ RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm \
...
@@ -135,11 +139,11 @@ RUN yum install -y https://rdo.fedorapeople.org/rdo-release.rpm \
{# We are back to the basic if conditional here which is:
{# We are back to the basic if conditional here which is:
if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] #}
if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] #}
RUN yum update
-y
\
RUN yum
-y
update \
&& yum clean all
&& yum clean all
# Pin package versions
# Pin package versions
RUN yum install
-y
\
RUN yum
-y
install \
yum-plugin-versionlock \
yum-plugin-versionlock \
&& yum clean all
&& yum clean all
COPY versionlock.list /etc/yum/pluginconf.d/
COPY versionlock.list /etc/yum/pluginconf.d/
...
@@ -147,7 +151,7 @@ COPY versionlock.list /etc/yum/pluginconf.d/
...
@@ -147,7 +151,7 @@ COPY versionlock.list /etc/yum/pluginconf.d/
{% if install_type == 'binary' %}
{% if install_type == 'binary' %}
# Install base packages
# Install base packages
RUN yum install
-y
\
RUN yum
-y
install \
sudo \
sudo \
which \
which \
python \
python \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment