1
1
# IMAGE_LOCATION refers to a Microsoft-internal container registry which stores a cached version
2
- # of the image built from base.Dockerfile. If you are building this file outside Microsoft, you
2
+ # of the image built from base.Dockerfile. If you are building this file outside Microsoft, you
3
3
# won't be able to reach this location, but don't worry!
4
4
5
5
# To build yourself locally, override this location with a local image tag. See README.md for more detail
@@ -33,6 +33,15 @@ RUN az aks install-cli \
33
33
&& chmod +x /usr/local/bin/kubectl \
34
34
&& chmod +x /usr/local/bin/kubelogin
35
35
36
+ # Install kubectl-ai
37
+ RUN curl -LO https://github.com/sozercan/kubectl-ai/releases/latest/download/kubectl-ai_linux_amd64.tar.gz && \
38
+ curl -LO https://github.com/sozercan/kubectl-ai/releases/latest/download/kubectl-ai_checksums.txt && \
39
+ CHECKSUM=$(grep kubectl-ai_linux_amd64.tar.gz kubectl-ai_checksums.txt | awk '{print $1}' ) && \
40
+ echo "$CHECKSUM kubectl-ai_linux_amd64.tar.gz" | sha256sum -c - && \
41
+ tar xzf kubectl-ai_linux_amd64.tar.gz && \
42
+ mv kubectl-ai /usr/local/bin/kubectl-ai && \
43
+ rm -rf kubectl-ai_linux_amd64.tar.gz kubectl-ai_checksums.txt
44
+
36
45
# Remove after base image gets updated
37
46
RUN bash ./tdnfinstall.sh postgresql-devel
38
47
RUN bash ./tdnfinstall.sh terraform
@@ -52,8 +61,8 @@ RUN curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep
52
61
53
62
# Temp: fix ansible modules. Proper fix is to update base layer to use regular python for Ansible.
54
63
RUN wget -nv -q https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt \
55
- && /opt/ansible/bin/python -m pip install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
56
-
64
+ && /opt/ansible/bin/python -m pip install -r /usr/share/ansible/collections/ansible_collections/azure/azcollection/requirements-azure.txt
65
+
57
66
# Copy and run script to Install powershell modules and setup Powershell machine profile
58
67
COPY ./linux/powershell/PSCloudShellUtility/ /usr/local/share/powershell/Modules/PSCloudShellUtility/
59
68
COPY ./linux/powershell/ powershell
@@ -62,13 +71,9 @@ RUN /usr/bin/pwsh -File ./powershell/setupPowerShell.ps1 -image Top && rm -rf ./
62
71
# install powershell warmup script
63
72
COPY ./linux/powershell/Invoke-PreparePowerShell.ps1 linux/powershell/Invoke-PreparePowerShell.ps1
64
73
65
-
66
-
67
- # Remove su so users don't have su access by default.
74
+ # Remove su so users don't have su access by default.
68
75
RUN rm -f ./linux/Dockerfile && rm -f /bin/su
69
76
70
-
71
-
72
77
# Add soft links
73
78
RUN ln -s /usr/bin/python3 /usr/bin/python
74
79
RUN ln -s /usr/bin/node /usr/bin/nodejs
@@ -78,5 +83,5 @@ RUN ln -s /usr/bin/node /usr/bin/nodejs
78
83
# Add dotnet tools to PATH so users can install a tool using dotnet tools and can execute that command from any directory
79
84
ENV PATH ~/.local/bin:~/bin:~/.dotnet/tools:$PATH
80
85
81
- # Set AZUREPS_HOST_ENVIRONMENT
86
+ # Set AZUREPS_HOST_ENVIRONMENT
82
87
ENV AZUREPS_HOST_ENVIRONMENT cloud-shell/1.0
0 commit comments