Sign inSign up

gaoyifan/homebrew-bottle-mirror

By gaoyifan

Updated over 5 years ago

homebrew bottle mirror

Image
0

2.5K

gaoyifan/homebrew-bottle-mirror repository overview

Homebrew Bottle Mirror

Deprecated: the project is not actively maintained, please check ustclug/ustcmirror-images#homebrew-bottles. Related to #6.

FOSSA Status

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 mac
# or
brew bottle-mirror linux
docker
macOS
# 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
linux
docker run -itd \
  --name=homebrew-bottles \
  -e RUN_LINUXBREW=true \
  -v $YOUR_REPOSITORY_DIR:/srv/data \
  gaoyifan/homebrew-bottle-mirror

Some useful environment variables:

ParameterDefault valueDescription
DOCKER_UID1000program uid inside docker container
HOMEBREW_TAP          <null>                    sync a specific tap  repository          
HOMEBREW_BOTTLE_DOMAINhttp://homebrew.bintray.comupstream repository
HOMEBREW_CACHE/srv/datawhere 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

License

FOSSA Status

Tag summary

Content type

Image

Digest

Size

27.2 MB

Last updated

over 5 years ago

docker pull gaoyifan/homebrew-bottle-mirror