Created
June 27, 2015 23:54
-
-
Save shyiko/528afafd5deb5e53f8d4 to your computer and use it in GitHub Desktop.
docker-armv7-redis-image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
[*.md] | |
trim_trailing_whitespace = false | |
[Makefile] | |
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM shyiko/armv7-archlinux | |
RUN pacman -Syyu --noconfirm && \ | |
pacman-db-upgrade && \ | |
pacman -S --noconfirm redis && \ | |
yes | pacman -Scc && \ | |
mkdir /data | |
WORKDIR /data | |
VOLUME /data | |
CMD ["redis-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TAG = $$(docker run --rm shyiko/armv7-redis redis-server --version | cut -d\ -f3 | cut -d\= -f2) | |
all: build publish | |
build: | |
docker build -t shyiko/armv7-redis . && \ | |
docker tag shyiko/armv7-redis shyiko/armv7-redis:$(TAG) | |
publish: | |
docker push shyiko/armv7-redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment