-
Notifications
You must be signed in to change notification settings - Fork 7
/
rpi.sh
23 lines (23 loc) · 1.07 KB
/
rpi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -e
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install git
curl -sSL https://get.docker.com | sh
sudo apt-get -y install docker-compose
#git clone https://github.com/docker/compose.git
#cd compose/
#git checkout release
#sudo docker build -t docker-compose:armhf -f Dockerfile.armhf .
#sudo docker run --rm --entrypoint="script/build/linux-entrypoint" -v $(pwd)/dist:/code/dist -v $(pwd)/.git:/code/.git "docker-compose:armhf"
#sudo cp dist/docker-compose-Linux-armv7l /usr/local/bin/docker-compose
#sudo chown root:root /usr/local/bin/docker-compose
#udo chmod 0755 /usr/local/bin/docker-compose
#cd ..
#rm -rf compose/
sudo apt-get install curl libunwind8 gettext
curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/2.0.0/dotnet-runtime-latest-linux-arm.tar.gz
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
rm dotnet.tar.gz
curl -sSL -o docker-compose.yml https://raw.githubusercontent.com/postworthy/ExploitableApp/master/rpi-docker-compose.yml