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
e61cc1a2
Commit
e61cc1a2
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Customizations for haproxy"
parents
d1771108
3eb82949
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/haproxy/Dockerfile.j2
+5
-12
5 additions, 12 deletions
docker/haproxy/Dockerfile.j2
with
5 additions
and
12 deletions
docker/haproxy/Dockerfile.j2
+
5
−
12
View file @
e61cc1a2
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
MAINTAINER {{ maintainer }}
{% i
f base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel']
%}
{% i
mport "macros.j2" as macros with context
%}
RUN yum -y install \
haproxy \
&& yum clean all
{% elif base_distro in ['debian', 'ubuntu'] %}
RUN apt-get -y install --no-install-recommends \
haproxy \
&& apt-get clean
{% endif %}
{% set haproxy_packages = ['haproxy'] %}
RUN {{ macros.install_packages(haproxy_packages | customizable("packages")) }}
RUN usermod -a -G kolla haproxy \
&& mkdir -p /var/lib/kolla/haproxy \
...
...
@@ -22,4 +13,6 @@ RUN usermod -a -G kolla haproxy \
COPY ensure_latest_config.sh /usr/local/bin/kolla_ensure_haproxy_latest_config
RUN chmod 755 /usr/local/bin/kolla_ensure_haproxy_latest_config
{% block haproxy_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }}
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