Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wayofthepie/mini-redis-image
https://github.com/wayofthepie/mini-redis-image
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wayofthepie/mini-redis-image
- Owner: wayofthepie
- Created: 2018-02-26T22:44:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T23:07:57.000Z (almost 7 years ago)
- Last Synced: 2024-11-06T03:44:37.479Z (about 2 months ago)
- Language: Nix
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mini Redis Image
WIP to create a docker image for redis < 1MB in size, uncompressed.So far the image is 1.01MB...
```
$ docker images|grep redis
redis latest ba6b64638b73 48 years ago 1.01MB
```Dont mind the age...
Requirements:
* Non-root user called `redis`
* Fully working redisRight now redis is statically linked against glibc. Linking against
musl should bring the size of the exe down to less than 1MB, it
doesn't seem straightforward to do this with nix though, see
https://github.com/NixOS/nixpkgs/issues/25178.## Building
You'll need [nix](https://nixos.org/nix/) installed. Once installed run:```
$ nix-build
```If everything was successful:
```
$ docker load < result
```
The image should be loaded with the name `redis`.