Coder Social home page Coder Social logo

brewup's Introduction

Brew for macOS software management

cnbc-dev

We use Homebrew a.k.a. brew to install software on our Cloud Native Base Camp macOS computers.

Introduction

This repository has our Brew, which manages much of the software that we use for projects.

This Brew helps us install:

  • Hundreds of desktop applications, such as browsers, players, editors, etc.
  • Hundreds of system utilities, such as command line interfaces, sysop helpers, etc.
  • Dozens of programming capabilties, such as languages, toolchains, servers, etc.

To learn about brew and Brewfile capabilties, please see:

Using a Brew helps us with our Infrastructure as Code (IaC) initiatives.

Feedback welcome. Pull requests welcome.

Inspired from this repos

brewup your mac with happiness

With the bee42 honeypod brewup installer

tmux

mkdir -p $HOME/.tmux/
cd $HOME/.tmux/
git clone --depth 1 https://github.com/jonmosco/kube-tmux
#curl -sL -o $HOME/.tmux/kube-tmux/kube.tmux \
#  https://raw.githubusercontent.com/jonmosco/kube-tmux/master/kube.tmux
#chmod +x $HOME/.tmux/kube-tmux/kube.tmux
cat >>~/.tmux.conf <<EOF
set -g status-right "#(/bin/bash $HOME/.tmux/kube-tmux/kube.tmux 250 red cyan)"
EOF
tmux source ~/.tmux.conf

SSH key

ssh-keygen -t ed25519 -C "[email protected]" -f ~/.ssh/id_ed25519-github
cat >>~/.ssh/config <<EOF
Host github.com
  User git
  AddKeysToAgent yes
  UseKeychain yes
  IdentityFile ~/.ssh/id_ed25519-github
EOF
ssh-add --apple-use-keychain ~/.ssh/id_ed25519-github
# Add new key to your github account
cat ~/.ssh/id_ed25519-github.pub | pbcopy

Mac Apps

On a fresh mac - make backup with timemachine first!

xcode-select --install
# find dialog and install the developer tools
mkdir -p ~/develop && cd ~develop
git clone --depth 1 https://github.com/rossbachp/brewup
cd brewup
# install brew 
./happiness -b
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# brew full
./happiness -f
./happiness -D
# add defaults
./sync.sh
# start docker services
./happiness -c
# add docker plugins
./happiness -d

Full installation

curl -fsSL -o happiness https://raw.githubusercontent.com/rossbachp/brewup/main/happiness | bash

Features:

Find more options to brewup with happiness ๐Ÿ˜‡

./happiness --help

Other options

  • container image registries and local git server
  • install MAS apps
  • install more krew plugins
  • create CNBC smart kubernetes clusters
  • docker tap support for better access LB and docker network

Planned

docker run -d -p 7474:7474 -p 7687:7687 -e NEO4J_AUTH=neo4j/secret neo4j
# argodb?
kubectl graph pods --field-selector status.phase=Running -n kube-system | dot -T svg -o pods.svg

Mas

mas search Xcode
   497799835  Xcode (15.2)
mas search wireguard 
  1451685025  WireGuard                     (1.0.16)
mas search Whatsapp 
  310633997  WhatsApp Messenger                                       (24.4.4)
mas search BlackMagic
   425264550  Blackmagic Disk Speed Test     (3.4.2)

Docker and Kubernetes Support

  • Support Docker extensions cli
docker extension list --format="json" | jq -r ".[].image"
  • Support containerd immage store

Start a shell at your Docker VM

Sorry is readonly file system.... exit

docker run -it --rm --privileged --pid=host justincormack/nsenter1
cat >>/etc/containerd/config.toml <<EOF

  [plugins."io.containerd.grpc.v1.cri".registry]
    [plugins."io.containerd.grpc.v1.cri".registry.mirrors]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
        endpoint = ["http://host.docker.internal:5001"]
      [plugins."io.containerd.grpc.v1.cri".registry.mirrors."registry.k8s.io"]
        endpoint = ["http://host.docker.internal:5002"]
EOF

Ideas

Prototype Nix

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
nix --version
echo "Hello Nix" | nix run "nixpkgs#ponysay"

Licensing

Copyright (c) 2024 Peter Rossbach [email protected]

MIT License, see LICENSE.txt for more details.

Regards,

|-o-| The pathfinder - Peter

brewup's People

Contributors

stefanscherer avatar rossbachp avatar seal-ss avatar scherermichael avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.