Skip to content

Commit

Permalink
Merge pull request #731 from KBVE/dev
Browse files Browse the repository at this point in the history
Pulling refs/heads/dev into Main
  • Loading branch information
h0lybyte authored Jul 25, 2023
2 parents f6883c3 + ac308bd commit 6c1bbee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/portainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
username: ${{ secrets.PORTAINER_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
whoami
ls -al
mkdir -p ~/appleboy/portainer
cd ~/appleboy/portainer
wget -q https://kbve.com/data/portainer/portainer.sh -O portainer.sh
20 changes: 19 additions & 1 deletion public/data/portainer/portainer.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#!/bin/sh
set -e
sudo docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
# sudo docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
# Based off of DanielBene's Docker_Install.sh https://gist.github.com/danielbene/98d7a5b08fd5c2c18d4883f250e4b6c6

DIST_BASE="ubuntu"

apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common

curl -fsSL https://download.docker.com/linux/$DIST_BASE/gpg | sudo apt-key add -
apt-key fingerprint 0EBFCD88

add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$DIST_BASE $(lsb_release -cs) stable"
apt-get install -y docker-ce docker-ce-cli containerd.io

docker run hello-world
docker volume create portainer_data
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

apt-get install -y docker-compose

0 comments on commit 6c1bbee

Please sign in to comment.