Skip to content

Commit

Permalink
Fix: Minor container fixes (#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov authored Jan 8, 2024
1 parent 434331e commit c7a9105
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions containers/base/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends \
make \
git \
# xz-utils required for docker import to work
xz-utils \
&& rm -rf /var/lib/apt/lists/* \
&& rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
&& apt-get clean
Expand Down
2 changes: 2 additions & 0 deletions containers/dev/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ ENTRYPOINT [ "/bin/entrypoint.sh" ]
# Switch user to given USERNAME otherwise Ansible will be installed as root.
USER ${USERNAME}
ENV PATH=$PATH:/home/${USERNAME}/.local/bin
# make sure that path required to mount Ansible collection exists
RUN mkdir -p /home/${USERNAME}/.ansible/collections/ansible_collections/arista/avd
4 changes: 3 additions & 1 deletion containers/universal/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ ENV PATH=$PATH:/home/${USERNAME}/.local/bin
# Install Ansible AVD collection.
RUN pip3 install "${ANSIBLE_CORE_VERSION}" \
&& ansible-galaxy collection install ${ANSIBLE_INSTALL_LOCATION} \
&& pip3 install -r /home/${USERNAME}/.ansible/collections/ansible_collections/arista/avd/requirements.txt
&& pip3 install -r /home/${USERNAME}/.ansible/collections/ansible_collections/arista/avd/requirements.txt \
# install community.general to support callback plugins in ansible.cfg, etc.
&& ansible-galaxy collection install community.general

0 comments on commit c7a9105

Please sign in to comment.