Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gaoyifan/homebrew-bottle-mirror
mirror tool to sync homebrew bottle files
https://github.com/gaoyifan/homebrew-bottle-mirror
homebrew homebrew-bottle-mirror mirror
Last synced: 2 months ago
JSON representation
mirror tool to sync homebrew bottle files
- Host: GitHub
- URL: https://github.com/gaoyifan/homebrew-bottle-mirror
- Owner: gaoyifan
- License: mit
- Created: 2016-01-14T06:26:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-02T09:59:27.000Z (almost 4 years ago)
- Last Synced: 2023-08-06T20:24:11.438Z (over 1 year ago)
- Topics: homebrew, homebrew-bottle-mirror, mirror
- Language: Shell
- Homepage:
- Size: 43.9 KB
- Stars: 36
- Watchers: 3
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Homebrew Bottle Mirror
**Deprecated: the project is not actively maintained, please check [ustclug/ustcmirror-images#homebrew-bottles](https://github.com/ustclug/ustcmirror-images#homebrew-bottles).** Related to [#6](https://github.com/gaoyifan/homebrew-bottle-mirror/issues/6#issuecomment-788774659).[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgaoyifan%2Fhomebrew-bottle-mirror.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgaoyifan%2Fhomebrew-bottle-mirror?ref=badge_shield)
mirror tools for syncing homebrew bottle files.
## Usage
### General way
run the following command on your Mac:
```shell
brew tap gaoyifan/bottle-mirror
brew bottle-mirror mac
# or
brew bottle-mirror linux
```### docker
#### macOS
```shell
# homebrew core repository
docker run -itd \
--name=homebrew-bottles \
-v $YOUR_REPOSITORY_DIR:/srv/data \
gaoyifan/homebrew-bottle-mirror
``````shell
# homebrew tap repository
docker run -itd \
--name=homebrew-bottles \
-e HOMEBREW_TAP=$tap \
-v $YOUR_REPOSITORY_DIR:/srv/data \
gaoyifan/homebrew-bottle-mirror
```#### linux
```bash
docker run -itd \
--name=homebrew-bottles \
-e RUN_LINUXBREW=true \
-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 | \ | 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](https://hub.docker.com/r/gaoyifan/homebrew-bottle-mirror/)
## Public mirror
```
https://mirrors.ustc.edu.cn/homebrew-bottles/
```### How to use?
add the following line to your `~/.bash_profile` (if you use bash)
```shell
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
```then load the new configration
```shell
$ source ~/.bash_profile
```## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgaoyifan%2Fhomebrew-bottle-mirror.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgaoyifan%2Fhomebrew-bottle-mirror?ref=badge_large)