Skip to content

NJUPT-Mirrors-Group/homebrew-bottle-mirror

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homebrew Bottle Mirror

mirror tools for syncing homebrew bottle files.

Usage

General way

run the following command on your Mac:

brew tap gaoyifan/bottle-mirror
brew bottle-mirror

docker

# homebrew core repository
docker run -itd \
  --name=homebrew-bottles \
  -v $YOUR_REPOSITORY_DIR:/srv/data \
  gaoyifan/homebrew-bottle-mirror
# homebrew tap repository
docker run -itd \
  --name=homebrew-bottles \
  -e HOMEBREW_TAP=$tap \
  -v $YOUR_REPOSITORY_DIR:/srv/data \
  gaoyifan/homebrew-bottle-mirror

Some useful environment variables:

Parameter Default value Description
DOCKER_UID 1000 program uid inside docker container
HOMEBREW_TAP           <null>                     sync a specific tap  repository          
HOMEBREW_BOTTLE_DOMAIN http://homebrew.bintray.com upstream repository
HOMEBREW_CACHE /srv/data where the repository store inside the docker container

available HOMEBREW_TAP value:

  • dupes
  • games
  • gui
  • python
  • php
  • science
  • versions
  • x11

more information for docker

Public mirror

https://mirrors.ustc.edu.cn/homebrew-bottles/

How to use?

add the following line to your ~/.bash_profile (if you use bash)

export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles

then load the new configration

$ source ~/.bash_profile

About

mirror tools to sync homebrew bottle files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 79.2%
  • Ruby 20.8%