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