Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hashworks
archlinux-docker
Commits
fd90632e
Commit
fd90632e
authored
Apr 10, 2017
by
Pierre Schmitz
Browse files
Add task to push local image
parent
4a03bbb5
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
fd90632e
*~
*.orig
/.idea
/archlinux.tar
Dockerfile
View file @
fd90632e
FROM
scratch
ADD
archlinux.tar
.xz
/
ADD
archlinux.tar /
CMD
["/usr/bin/bash"]
Makefile
View file @
fd90632e
DOCKER_USER
:=
'pierres'
DOCKER_IMAGE
:=
'archlinux'
rootfs
:
$(
eval
TMPDIR :
=
$(
shell
mktemp
-d
))
pacstrap
-C
/usr/share/devtools/pacman-extra.conf
-c
-d
-G
-M
$(TMPDIR)
$(
shell
cat
packages
)
cp
-r
v
p
--backup
--suffix
=
.pacnew rootfs/
*
$(TMPDIR)
/
cp
-rp
--backup
--suffix
=
.pacnew rootfs/
*
$(TMPDIR)
/
arch-chroot
$(TMPDIR)
locale-gen
arch-chroot
$(TMPDIR)
pacman-key
--init
arch-chroot
$(TMPDIR)
pacman-key
--populate
archlinux
tar
--numeric-owner
--xattrs
--acls
--exclude-from
=
exclude
-C
$(TMPDIR)
-c
.
-
Jv
f
archlinux.tar
.xz
tar
--numeric-owner
--xattrs
--acls
--exclude-from
=
exclude
-C
$(TMPDIR)
-c
.
-f
archlinux.tar
rm
-rf
$(TMPDIR)
docker-image
:
rootfs
docker build
-t
pierres/archlinux .
docker build
-t
$(DOCKER_USER)
/
$(DOCKER_IMAGE)
.
docker-push
:
docker-image
docker login
-u
$(DOCKER_USER)
docker push
$(DOCKER_USER)
/
$(DOCKER_IMAGE)
.PHONY
:
rootfs docker-image
.PHONY
:
rootfs docker-image
docker-push
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment