Skip to content

Commit 7b7f333

Browse files
author
sam#gemmi-win10
committed
dockerfile.x11base: sortMerge; only apt.sh tzdata locales
1 parent 44a69bb commit 7b7f333

File tree

1 file changed

+50
-48
lines changed

1 file changed

+50
-48
lines changed

build/Dockerfile.x11base

Lines changed: 50 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@ FROM registry.cn-shenzhen.aliyuncs.com/infrastlabs/x11-base:core-ubuntu-${VER}
44
ARG TARGETPLATFORM
55
ARG VER=20.04
66

7-
# qemu,libvirt
8-
RUN apt.sh \
9-
qemu-system-x86 qemu-system-arm qemu-system-ppc qemu-utils ipxe-qemu \
10-
libvirt-daemon-system libvirt-clients virtinst \
11-
bridge-utils seabios vgabios dnsmasq \
12-
supervisor dropbear git;
13-
# ubt24-none: qemu-efi gconf2
14-
RUN \
15-
test "24.04" != "${VER}" && apt.sh gconf2 qemu-efi; \
16-
exit 0
17-
# RUN \
18-
# # xz-utils vim wget openssh-server
19-
# apt.sh \
20-
# # fonts-noto fonts-noto-core fonts-noto-mono \
21-
# supervisor dropbear git
22-
23-
247
# tini,gosu
258
# https://github.com/krallin/tini/releases/download/v0.19.0/tini-static-muslc-amd64
269
# https://github.com/tianon/gosu/releases/download/1.11/gosu-$arch
@@ -40,29 +23,6 @@ RUN \
4023
chmod +x $file; mv $file /bin/virter;
4124

4225

43-
RUN \
44-
sed -i 's/#user = "root"/user = "root"/' /etc/libvirt/qemu.conf; \
45-
sed -i 's/#group = "root"/group = "root"/' /etc/libvirt/qemu.conf; \
46-
exit 0;
47-
48-
49-
##virt-manager#############
50-
RUN \
51-
# gobject-introspection: for dev-run ./virt-manager
52-
apt.sh virt-manager gobject-introspection; \
53-
cd /usr/local; \
54-
git clone https://gitee.com/g-system/fk-virt-manager;
55-
56-
# LOC 87.4 MB
57-
# strip: binutils
58-
RUN \
59-
# test "app" != "$TYPE" && exit 0 || echo appInstall;\
60-
# LOCALE 15.0 MB
61-
apt.sh tzdata locales binutils dconf-cli \
62-
dbus-x11 at-spi2-core gtk2-engines-pixbuf \
63-
# 343 kB
64-
apt-utils x11-xkb-utils xdg-utils; \
65-
exit 0
6626
# ICON
6727
RUN \
6828
# test "app" != "$TYPE" && exit 0 || echo appInstall;\
@@ -103,14 +63,11 @@ RUN \
10363
# COPY --from=rootfs /rootfs/res_ubt_share /
10464
# COPY --from=rootfs /rootfs/files1 /
10565
# COPY --from=rootfs /rootfs/files2 /
106-
RUN \
107-
# [librsvg2-common]>> OK有效:免icons配置不生效<flux/openbox,xfce4>
108-
apt.sh librsvg2-common; \
109-
\
110-
# curl -o /xconf.sh -k -fSL https://gitee.com/infrastlabs/docker-x11base/raw/dev/rootfs/src/xconf.sh; \
111-
# bash /xconf.sh core; \
112-
# export TYPE=app; bash /xconf.sh app; \
113-
exit 0;
66+
# RUN \
67+
# curl -o /xconf.sh -k -fSL https://gitee.com/infrastlabs/docker-x11base/raw/dev/rootfs/src/xconf.sh; \
68+
# bash /xconf.sh core; \
69+
# export TYPE=app; bash /xconf.sh app; \
70+
# exit 0;
11471

11572
# EXPOSE 10089/tcp 10081/tcp 10022/tcp
11673
# CMD ["bash", "-c", "exec /entry.sh"]
@@ -148,6 +105,51 @@ RUN \
148105
# sed -i "s^/bin/ash^/bin/bash^g" /etc/passwd; \
149106
# echo "root:root" |chpasswd;
150107

108+
109+
110+
# qemu,libvirt
111+
RUN apt.sh \
112+
qemu-system-x86 qemu-system-arm qemu-system-ppc qemu-utils ipxe-qemu \
113+
libvirt-daemon-system libvirt-clients virtinst \
114+
bridge-utils seabios vgabios dnsmasq \
115+
supervisor dropbear git;
116+
# ubt24-none: qemu-efi gconf2
117+
RUN \
118+
test "24.04" != "${VER}" && apt.sh gconf2 qemu-efi; \
119+
exit 0
120+
# RUN \
121+
# # xz-utils vim wget openssh-server
122+
# apt.sh \
123+
# # fonts-noto fonts-noto-core fonts-noto-mono \
124+
# supervisor dropbear git
125+
RUN \
126+
sed -i 's/#user = "root"/user = "root"/' /etc/libvirt/qemu.conf; \
127+
sed -i 's/#group = "root"/group = "root"/' /etc/libvirt/qemu.conf; \
128+
exit 0;
129+
130+
131+
##virt-manager#############
132+
RUN \
133+
# gobject-introspection: for dev-run ./virt-manager
134+
apt.sh virt-manager gobject-introspection; \
135+
cd /usr/local; \
136+
git clone https://gitee.com/g-system/fk-virt-manager;
137+
138+
# LOC 87.4 MB
139+
# strip: binutils
140+
RUN \
141+
# test "app" != "$TYPE" && exit 0 || echo appInstall;\
142+
# LOCALE 15.0 MB
143+
apt.sh tzdata locales \
144+
# dbus-x11 at-spi2-core gtk2-engines-pixbuf \
145+
# 343 kB
146+
# apt-utils x11-xkb-utils xdg-utils \
147+
# binutils dconf-cli \
148+
; \
149+
# [librsvg2-common]>> OK有效:免icons配置不生效<flux/openbox,xfce4>
150+
apt.sh librsvg2-common; \
151+
exit 0
152+
151153
ENV \
152154
TERM=xterm \
153155
SHELL=/bin/bash \

0 commit comments

Comments
 (0)