Skip to content

Commit

Permalink
bug: dev container remains not working
Browse files Browse the repository at this point in the history
  • Loading branch information
loekd authored Oct 2, 2024
1 parent 08b45b4 commit 3b106fa
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 16 deletions.
24 changes: 22 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
FROM ubuntu:24.10
RUN apt-get update && apt-get install curl -y
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 servicefabric -y
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"github.vscode-github-actions"
]
}
},
"postCreateCommand": "bash ./.devcontainer/install_sf.sh"
}
// "postCreateCommand": "bash ./.devcontainer/install_sf.sh"
}
56 changes: 44 additions & 12 deletions .devcontainer/install_sf.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,53 @@
#!/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
echo "servicefabric servicefabric/accepted-eula-ga select true" | debconf-set-selections
echo "servicefabricsdkcommon servicefabricsdkcommon/accepted-eula-ga select true" | 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 -
DEBIAN_FRONTEND=noninteractive
LD_LIBRARY_PATH=/opt/microsoft/servicefabric/bin/Fabric/Fabric.Code

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"
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm -f packages-microsoft-prod.deb

sudo apt-get update
wget -q https://packages.microsoft.com/keys/msopentech.asc msopentech.asc
apt-key add ./msopentech.asc
rm -f msopentech.asc

sudo apt-get install servicefabricsdkcommon


wget -q https://download.docker.com/linux/ubuntu/gpg gpg
apt-key add ./gpg
rm -f gpg

add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" -y
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
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
rm -f zulu-repo_1.0.0-2_all.deb

# apt-get install apt-transport-https -y
# wget -q https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb
# dpkg -i packages-microsoft-prod.deb
# rm -f packages-microsoft-prod.deb

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

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

# apt-get install software-properties-common -y
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu oracular stable" -y


# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9
# apt install gnupg ca-certificates curl -y
# curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg
# echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list
# rm -f azul.gpg

apt-get update

apt-get install servicefabricsdkcommon -y

0 comments on commit 3b106fa

Please sign in to comment.