Skip to content

Commit

Permalink
2.x: Fixed composer-2.yml file in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DionisioFG committed Mar 7, 2024
1 parent 4ef9f07 commit 89c0f3c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions docker-images/controller-devel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,30 @@ RUN \
# Set up provision 2.x, and we keep 1.x for compatibility.
RUN su - ce-dev -c "git clone --branch 1.x https://github.com/codeenigma/ce-provision.git /home/ce-dev/ce-provision"

COPY ./provision.yml /home/ce-dev/ce-provision/provision.yml

RUN \
set -x && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
su - ce-dev -c "/home/ce-dev/ansible/bin/ansible-playbook --extra-vars=\"{ansible_common_remote_group: ce-dev}\" /home/ce-dev/ce-provision/provision.yml" && \
rm /home/ce-dev/ce-provision/provision.yml && \
apt-get clean && \
rm -rf \
/var/lib/apt/lists/* \
/var/log/* \
/tmp/*

RUN su - ce-dev -c "git clone --branch 2.x https://github.com/codeenigma/ce-provision.git /home/ce-dev/ce-provision-2"

COPY ./provision.yml /home/ce-dev/ce-provision-2/provision.yml
COPY ./provision-2.yml /home/ce-dev/ce-provision-2/provision-2.yml

RUN \
set -x && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
su - ce-dev -c "/home/ce-dev/ansible/bin/ansible-playbook --extra-vars=\"{ansible_common_remote_group: ce-dev}\" /home/ce-dev/ce-provision-2/provision.yml" && \
rm /home/ce-dev/ce-provision-2/provision.yml && \
su - ce-dev -c "/home/ce-dev/ansible/bin/ansible-playbook --extra-vars=\"{ansible_common_remote_group: ce-dev}\" /home/ce-dev/ce-provision-2/provision-2.yml" && \
rm /home/ce-dev/ce-provision-2/provision-2.yml && \
apt-get clean && \
rm -rf \
/var/lib/apt/lists/* \
Expand Down

0 comments on commit 89c0f3c

Please sign in to comment.