Last active
January 4, 2023 23:26
-
-
Save niradler/f25dc4e08c41d0a17add2e94a5482878 to your computer and use it in GitHub Desktop.
arm_setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chsh -s $(which zsh) | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
curl -sSL https://install.pi-hole.net | bash | |
curl -L https://install.pivpn.io | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y zsh curl wget exa fd-find jq zsh build-essential file git git-core fonts-powerline gcc g++ make | |
curl -sSL https://get.docker.com | sh | |
sudo usermod -aG docker ${USER} | |
sudo usermod -aG docker ${USER} | |
sudo apt-get install -y libffi-dev libssl-dev | |
sudo apt-get install -y python3-dev | |
sudo apt-get install -y python3 python3-pip | |
sudo pip3 install docker-compose | |
sudo systemctl to enable Docker | |
sudo apt install libpam-google-authenticator -y | |
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - | |
sudo apt-get install -y nodejs |
sh -c "$(curl -fsSL https://gist.githubusercontent.com/niradler/f25dc4e08c41d0a17add2e94a5482878/raw/267ebd9482a6bba53a97c1ad40cff14316ac25c7/bootstrap.sh)"
sudo chown -R $USER /usr/lib/node_modules
sudo chown -R $(whoami) ~/.npm
mkdir ~/.npm-global
export NPM_CONFIG_PREFIX=~/.npm-global
export PATH=$PATH:~/.npm-global/bin
echo -e "export NPM_CONFIG_PREFIX=~/.npm-global\nexport PATH=\$PATH:~/.npm-global/bin" >> ~/.bashrc
zsh-autosuggestions
plugins=(git kubectl history emoji zsh-autosuggestions jsontools)
https://octopus.com/blog/jenkins-docker-install-guide
https://www.cloudbees.com/blog/how-to-install-and-run-jenkins-with-docker-compose
https://plugins.jenkins.io/gitea/
https://plugins.jenkins.io/github-oauth/
https://plugins.jenkins.io/blueocean/
FROM jenkins/jenkins:lts-jdk11
USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends gnupg curl ca-certificates apt-transport-https
RUN jenkins-plugin-cli --plugins "github github-oauth gitea blueocean blueocean-github-pipeline"
USER jenkins
version: '3.8'
services:
jenkins:
image: niradler/hosted-jenkins:arm
container_name: jenkins
privileged: true
user: root
ports:
- 8087:8080
- 50007:50000
volumes:
- ./jenkins/jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
labels:
- homepage.show=true
- homepage.description=CI/CD
- homepage.title=jenkins
- homepage.domain=https://ci.domain.com
- cloudflaresync.name=ci
networks:
- internal
networks:
internal:
name: internal
external: true
ssh port forwarding exposes remote 3111 on local 3001
ssh -L 3001:localhost:3111 [email protected]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bash <(curl -sL https://gist.githubusercontent.com/niradler/f25dc4e08c41d0a17add2e94a5482878/raw/bd19f310e14866011a22bba15992ff49e326120b/arm_setup.sh)