mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Only install podman in local dev env
This commit is contained in:
parent
065b943870
commit
03c5cc779b
@ -148,7 +148,6 @@ RUN dnf -y install \
|
||||
nss \
|
||||
make \
|
||||
patch \
|
||||
podman \
|
||||
socat \
|
||||
tmux \
|
||||
wget \
|
||||
@ -162,6 +161,11 @@ RUN dnf -y install \
|
||||
RUN dnf --enablerepo=debuginfo -y install python3-debuginfo || :
|
||||
{% endif %}
|
||||
|
||||
{% if build_dev|bool %}
|
||||
RUN dnf install -y podman
|
||||
RUN echo -e 'cgroup_manager = "cgroupfs"\nevents_logger = "file"' > /etc/containers/libpod.conf
|
||||
{% endif %}
|
||||
|
||||
# Copy app from builder
|
||||
COPY --from=builder /var/lib/awx /var/lib/awx
|
||||
|
||||
@ -245,8 +249,6 @@ RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
|
||||
ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
{% endif %}
|
||||
|
||||
RUN echo -e 'cgroup_manager = "cgroupfs"\nevents_logger = "file"' > /etc/containers/libpod.conf
|
||||
|
||||
ENV HOME="/var/lib/awx"
|
||||
ENV PATH="/usr/pgsql-10/bin:${PATH}"
|
||||
|
||||
@ -264,6 +266,5 @@ EXPOSE 8052
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
CMD /usr/bin/launch_awx.sh
|
||||
VOLUME /var/lib/nginx
|
||||
{% endif %}
|
||||
|
||||
VOLUME /var/lib/awx/.local/share/containers/storage
|
||||
{% endif %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user