@@ -37,6 +37,19 @@ RUN bash ./tdnfinstall.sh gh
37
37
RUN mkdir -p /usr/cloudshell
38
38
WORKDIR /usr/cloudshell
39
39
40
+ # Install Office 365 CLI templates
41
+ RUN npm install -q -g @pnp/cli-microsoft365
42
+
43
+ # Install Bicep CLI
44
+ RUN curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64 \
45
+ && chmod +x ./bicep \
46
+ && mv ./bicep /usr/local/bin/bicep \
47
+ && bicep --help
48
+
49
+ # Temp: fix ansible modules. Proper fix is to update base layer to use regular python for Ansible.
50
+ RUN wget -nv -q https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt \
51
+ && /opt/ansible/bin/python -m pip install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
52
+
40
53
# Copy and run script to Install powershell modules and setup Powershell machine profile
41
54
COPY ./linux/powershell/PSCloudShellUtility/ /usr/local/share/powershell/Modules/PSCloudShellUtility/
42
55
COPY ./linux/powershell/ powershell
@@ -45,21 +58,12 @@ RUN /usr/bin/pwsh -File ./powershell/setupPowerShell.ps1 -image Top && rm -rf ./
45
58
# install powershell warmup script
46
59
COPY ./linux/powershell/Invoke-PreparePowerShell.ps1 linux/powershell/Invoke-PreparePowerShell.ps1
47
60
48
- # Install Office 365 CLI templates
49
- RUN npm install -q -g @pnp/cli-microsoft365
50
61
51
- # Install Bicep CLI
52
- RUN curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64 \
53
- && chmod +x ./bicep \
54
- && mv ./bicep /usr/local/bin/bicep \
55
- && bicep --help
56
62
57
63
# Remove su so users don't have su access by default.
58
64
RUN rm -f ./linux/Dockerfile && rm -f /bin/su
59
65
60
- # Temp: fix ansible modules. Proper fix is to update base layer to use regular python for Ansible.
61
- RUN wget -nv -q https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt \
62
- && /opt/ansible/bin/python -m pip install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
66
+
63
67
64
68
# Add soft links
65
69
RUN ln -s /usr/bin/python3 /usr/bin/python
0 commit comments