https://github.com/victorb/alpine-mirror
Scripts for mirroring the APKs archives for Alpine-linux and testing it
https://github.com/victorb/alpine-mirror
Last synced: about 1 year ago
JSON representation
Scripts for mirroring the APKs archives for Alpine-linux and testing it
- Host: GitHub
- URL: https://github.com/victorb/alpine-mirror
- Owner: victorb
- Created: 2017-01-11T11:55:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-11T11:56:25.000Z (over 9 years ago)
- Last Synced: 2025-06-21T15:05:59.153Z (about 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## alpine-mirror
> Provides mirrors for packages in 3.4 version of Alpine-linux
## Usage
### Mirror
To update the mirror, use the `./mirror.sh` script.
It'll do the following steps:
* Create lock file
* Create a `downloads/` directory relative to `mirror.sh`
* Add that directory to IPFS
### Use with Alpine-linux
Once you have a hash, you can use it by executing the following command:
```
export HASH=QmRsvEpJggeu4HhoafzRFobV4sbwVVTXMrdb2p8XWv7bCS
RUN sed -i -- "s/http:\/\/dl-cdn.alpinelinux.org\/alpine/https:\/\/ipfs.io\/ipfs\/$HASH/g" /etc/apk/repositories
```
That'll use the public gateways. If you have an IPFS daemon running, you can change ipfs.io to localhost:8000
### Test
To make sure you mirror is working, you can use the `./test.sh` script
It'll do the following steps:
* Create docker image based on the `Dockerfile`
* Run the installed bash program with echo
* If you see `Everything is working just fine` in the bottom, everything is working just fine
* Otherwise, you should open up an issue here: github.com/victorbjelkholm/alpine-mirror/issues/new
## License
MIT 2017 Victor Bjelkholm