Skip to content

Instantly share code, notes, and snippets.

@shyiko
Created June 27, 2015 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shyiko/528afafd5deb5e53f8d4 to your computer and use it in GitHub Desktop.
Save shyiko/528afafd5deb5e53f8d4 to your computer and use it in GitHub Desktop.
docker-armv7-redis-image
# 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
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"]
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