Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hashworks
archlinux-docker
Commits
3e3b44b6
Verified
Commit
3e3b44b6
authored
Dec 09, 2020
by
hashworks
Browse files
Move sysusers call back to Dockerfile
Resolves
#52
. Added small tests for user/group counts.
parent
65afb6ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3e3b44b6
...
...
@@ -151,6 +151,8 @@ image:publish:secure:
-
tags
.test-script
:
&test-script
-
test "$(cat /etc/group | wc -l)" -gt
10
-
test "$(cat /etc/passwd | wc -l)" -gt
10
-
pacman -Sy
-
pacman -Qqk
-
pacman -Syu --noconfirm docker grep
...
...
Dockerfile.template
View file @
3e3b44b6
...
...
@@ -22,6 +22,7 @@ FROM scratch AS root
COPY --from=verify /rootfs/ /
RUN ldconfig
RUN sh -c 'ls usr/lib/sysusers.d/*.conf | /usr/share/libalpm/scripts/systemd-hook sysusers '
ENV LANG=en_US.UTF-8
CMD ["/usr/bin/bash"]
Makefile
View file @
3e3b44b6
...
...
@@ -19,7 +19,6 @@ define rootfs
fakechroot
--
fakeroot
--
chroot
$(BUILDDIR)
update-ca-trust
fakechroot
--
fakeroot
--
chroot
$(BUILDDIR)
locale-gen
fakechroot
--
fakeroot
--
chroot
$(BUILDDIR)
sh
-c
'ls usr/lib/sysusers.d/*.conf | /usr/share/libalpm/scripts/systemd-hook sysusers'
fakechroot
--
fakeroot
--
chroot
$(BUILDDIR)
sh
-c
'pacman-key --init && pacman-key --populate archlinux && bash -c "rm -rf etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pubring.gpg~,gnupg.S.}*"'
ln
-fs
/usr/lib/os-release
$(BUILDDIR)/etc/os-release
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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