Skip to content

Commit

Permalink
fix: new way of installing sf
Browse files Browse the repository at this point in the history
  • Loading branch information
loekd authored Oct 2, 2024
1 parent e4fefdd commit 08b45b4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 24 deletions.
24 changes: 2 additions & 22 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,2 @@
FROM ubuntu:20.04

RUN echo "servicefabric servicefabric/accepted-eula-ga select true" | debconf-set-selections
RUN echo "servicefabricsdkcommon servicefabricsdkcommon/accepted-eula-ga select true" | debconf-set-selections
ENV LD_LIBRARY_PATH=/opt/microsoft/servicefabric/bin/Fabric/Fabric.Code

RUN apt-get update && apt-get install apt-utils apt-transport-https ca-certificates gnupg2 software-properties-common curl -y

ADD https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb

ADD https://packages.microsoft.com/keys/msopentech.asc msopentech.asc
RUN apt-key add ./msopentech.asc

ADD https://download.docker.com/linux/ubuntu/gpg gpg
RUN apt-key add ./gpg

RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
#RUN apt-add-repository "deb http://repos.azul.com/azure-only/zulu/apt stable main"
RUN curl -O https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-2_all.deb && apt-get install ./zulu-repo_1.0.0-2_all.deb
RUN apt-get update && apt-get install zulu11-jdk servicefabricsdkcommon dotnet-sdk-6.0 dotnet-sdk-7.0 dotnet-sdk-8.0 servicefabric -y
FROM ubuntu:24.10
RUN apt-get update && apt-get install curl -y
6 changes: 4 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
"ms-dotnettools.csharp",
"ms-azuretools.vscode-docker",
"github.copilot",
"ms-dotnettools.csdevkit"
"ms-dotnettools.csdevkit",
"github.vscode-github-actions"
]
}
}
},
"postCreateCommand": "bash ./.devcontainer/install_sf.sh"
}
21 changes: 21 additions & 0 deletions .devcontainer/install_sf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

echo "servicefabric servicefabric/accepted-eula-ga select true" | sudo debconf-set-selections
echo "servicefabricsdkcommon servicefabricsdkcommon/accepted-eula-ga select true" | sudo debconf-set-selections

apt-get install apt-transport-https -y
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

sudo curl -fsSL https://packages.microsoft.com/keys/msopentech.asc | sudo apt-key add -

sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
sudo apt-add-repository "deb http://repos.azul.com/azure-only/zulu/apt stable main"

sudo apt-get update

sudo apt-get install servicefabricsdkcommon

0 comments on commit 08b45b4

Please sign in to comment.