Skip to content

Commit

Permalink
Feat: Additional fixes for Github Codespaces support (#3519)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov authored Jan 22, 2024
1 parent 987f346 commit d2e6a56
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions containers/base/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ RUN apt-get update \
&& rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
&& apt-get clean

# set ANSIBLE_CONFIG to ansible.cfg in local directory
# this is required to address Ansible ignoring config in a world writable directory
# on Codespaces, Gitlab Runner, etc.
ENV ANSIBLE_CONFIG="ansible.cfg"

# Add entrypoint script.
COPY ./entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
Expand Down
2 changes: 0 additions & 2 deletions containers/dev/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
"customizations": {
"vscode": {
"extensions": [
// Git essentials.
"github.vscode-pull-request-github",
// Python.
"ms-python.python",
"ms-python.vscode-pylance",
Expand Down
6 changes: 4 additions & 2 deletions containers/dev/.devcontainer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ fi
if ! [ -z "${ANSIBLE_CORE_VERSION}" ]; then
pip3 install "${ANSIBLE_CORE_VERSION}"
if ! [ -z "${AVD_INSTALL_PATH}" ]; then
ansible-galaxy collection install ${AVD_INSTALL_PATH}
ansible-galaxy collection install --force ${AVD_INSTALL_PATH}
else
# if collection was mounted and not installed - add requirements
ansible-galaxy collection install -r ${AVD_COLLECTION_PATH}/collections.yml
fi
ansible-galaxy collection install -r ${AVD_COLLECTION_PATH}/collections.yml
pip3 install -r ${AVD_COLLECTION_PATH}/requirements.txt -r ${AVD_COLLECTION_PATH}/requirements-dev.txt
fi

Expand Down
2 changes: 0 additions & 2 deletions containers/universal/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"customizations": {
"vscode": {
"extensions": [
// Git essentials.
"github.vscode-pull-request-github",
// Python.
"ms-python.python",
"ms-python.vscode-pylance",
Expand Down

0 comments on commit d2e6a56

Please sign in to comment.