Skip to content

Instantly share code, notes, and snippets.

@shyiko
Created June 27, 2015 23:59
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/65fd5504af837ad8eff3 to your computer and use it in GitHub Desktop.
Save shyiko/65fd5504af837ad8eff3 to your computer and use it in GitHub Desktop.
docker-armv7-archlinux-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 hominidae/armhf-archlinux
RUN pacman -Syyu --noconfirm && pacman-db-upgrade && yes | pacman -Scc
all: build publish
build:
docker build -t shyiko/armv7-archlinux . && \
export CONTAINER_ID=$$(docker run -d shyiko/armv7-archlinux /bin/bash) && \
docker export $$CONTAINER_ID | docker import - shyiko/armv7-archlinux:$$(date +%Y-%m-%d) && \
docker rm $$CONTAINER_ID && \
docker rmi shyiko/armv7-archlinux && \
docker tag shyiko/armv7-archlinux:$(date +%Y-%m-%d) shyiko/armv7-archlinux:latest
publish:
docker push shyiko/armv7-archlinux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment