@@ -2,8 +2,9 @@ FROM ghcr.io/queil/image:latest
22
33USER root
44
5+ # bicep language server requries dotnet 8.0
56RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
6- microdnf install -y dotnet-sdk-9 .0 helm --nodocs --setopt install_weak_deps=0 && \
7+ microdnf install -y dotnet-sdk-8 .0 helm --nodocs --setopt install_weak_deps=0 && \
78 microdnf install -y https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm --nodocs --setopt install_weak_deps=0 && \
89 microdnf install -y azure-cli --nodocs --setopt install_weak_deps=0 && \
910 microdnf clean all && rm -rf /var/cache/yum && \
@@ -18,17 +19,22 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT=true
1819ENV DOTNET_NOLOGO=true
1920ENV PATH="${PATH}:${HOME}/.dotnet/tools"
2021
21- RUN code-server --install-extension Ionide.Ionide-fsharp && \
22- code-server --install-extension ms-azuretools.vscode- bicep
22+ ARG BICEP_LSP_VER=0.38.5
23+ ARG BICEP_WRAPPER_PATH=$HOME/.local/bin/ bicep-lsp
2324
24- RUN dotnet tool install --global fsy --version 0.20.0-alpha.2 && \
25+ RUN code-server --accept-server-license-terms --install-extension Ionide.Ionide-fsharp && \
26+ code-server --accept-server-license-terms --install-extension "ms-azuretools.vscode-bicep@${BICEP_LSP_VER}" && \
27+ echo '#!/bin/bash' > $BICEP_WRAPPER_PATH && \
28+ echo "exec dotnet ${HOME}/.vscode-server/extensions/ms-azuretools.vscode-bicep-${BICEP_LSP_VER}/bicepLanguageServer/Bicep.LangServer.dll \" $@\" " >> $BICEP_WRAPPER_PATH && \
29+ chmod +x $BICEP_WRAPPER_PATH
30+
31+ RUN dotnet tool install --global fsy --version 0.20.0 && \
2532 dotnet tool install -g fsautocomplete && \
2633 dotnet tool install -g fantomas && fsy install-fsx-extensions
2734
2835RUN mkdir -p ~/.config/micro/plug/lsp && \
2936 git clone -b fsharp https://github.com/queil/micro-plugin-lsp.git ~/.config/micro/plug/lsp
3037
31-
3238ARG KUSTOMIZE_VER=5.7.1
3339ARG KUBESEAL_VER=0.32.2
3440ARG ARGO_WF_VER=3.7.2
@@ -41,8 +47,5 @@ RUN eget kubernetes-sigs/kustomize --tag="v${KUSTOMIZE_VER}" && \
4147 eget argoproj/argo-cd --tag="${ARGO_CD_VER}" && \
4248 eget stern/stern --tag="${STERN_VER}"
4349
44- ENV USER=queil
45- ENV HOME=/home/$USER
46-
4750RUN echo 'alias k=kubectl' >> $HOME/.image.bashrc && \
4851 echo 'alias kb="kustomize build"' >> $HOME/.image.bashrc
0 commit comments