first commit
alpine edge minimal vnc server with openbox and xterm
This commit is contained in:
commit
dece990bc2
10 changed files with 96 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
FROM alpine:edge
|
||||||
|
MAINTAINER Daniel Guerra
|
||||||
|
ADD /apk /apk
|
||||||
|
RUN cp /apk/.abuild/-57cfc5fa.rsa.pub /etc/apk/keys
|
||||||
|
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||||
|
RUN apk --update add /apk/ossp-uuid-1.6.2-r0.apk
|
||||||
|
RUN apk add /apk/ossp-uuid-dev-1.6.2-r0.apk
|
||||||
|
RUN apk add /apk/x11vnc-0.9.13-r0.apk
|
||||||
|
RUN apk add xvfb openbox xterm@testing supervisor sudo \
|
||||||
|
&& addgroup alpine \
|
||||||
|
&& adduser -G alpine -s /bin/sh -D alpine \
|
||||||
|
&& echo "alpine:alpine" | /usr/sbin/chpasswd \
|
||||||
|
&& echo "alpine ALL=(ALL) ALL" >> /etc/sudoers \
|
||||||
|
&& rm -rf /apk /tmp/* /var/cache/apk/*
|
||||||
|
ADD etc /etc
|
||||||
|
EXPOSE 5900
|
||||||
|
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]
|
27
apk/.abuild/-57cfc5fa.rsa
Normal file
27
apk/.abuild/-57cfc5fa.rsa
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
-----BEGIN RSA PRIVATE KEY-----
|
||||||
|
MIIEogIBAAKCAQEAqCHocpIDcnwX3UU9Ove1FuMJgx8BPDiu6xV4qR7GYwuVAEsg
|
||||||
|
XyPKxqcn5h5hiUGZc4DN+IOcO58KBlg2Ib2DbpUxR4uuv/qMi3Xw/kp+GGxdKq2z
|
||||||
|
Co/1vNztf0t6P10ec5Eu0kwORroUrvBHNeaorXZwzGJ8fnNeMTZ/E/4qKFSlxCDR
|
||||||
|
u5ojwNix8qo8Vwv0kAfbrJYiguKLpzdD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z1AA32Gj
|
||||||
|
kTZsgb59W0ZvQAkKH79/TDkSfdCWdtG+2TMr8BGJ5HR5uvijXc2UryUIqo6MP5LL
|
||||||
|
JSfTHwWER2eSQNJwhlmzHwKBgG0wzAfwZUtmbA5js85NwvlY/y4e2UbrA9wJrmoZ
|
||||||
|
9MHDYI24DMMV/q8OCHAyBayluscfI1cyIAXqaG+8UE70FvKQ6I+pHHk0ePCocZzl
|
||||||
|
lcoiXxj0UkWOYSTzz9SV83hQ3ra9jDDoOZGrSCTMmwlRqL7nq87xRtX4Nz28wlXV
|
||||||
|
ArlJAoGAKh/KLjSsrznPw1RoZZ3tQTStOTtljjR2DMvM+pZ8TboREfZuMb4r0fm3
|
||||||
|
auvjx2x06/nIns3OuCqwwINI91qpQwaJpwXzESgunV2eC84Y66eIMRy1XaN390Oj
|
||||||
|
mJz3ZlfiunQ32UnaOFAs2NRxCVsuWEtl7Zb17ZxBASF0RqgrZ5E=
|
||||||
|
-----END RSA PRIVATE KEY-----
|
9
apk/.abuild/-57cfc5fa.rsa.pub
Normal file
9
apk/.abuild/-57cfc5fa.rsa.pub
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
-----BEGIN PUBLIC KEY-----
|
||||||
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqCHocpIDcnwX3UU9Ove1
|
||||||
|
FuMJgx8BPDiu6xV4qR7GYwuVAEsgXyPKxqcn5h5hiUGZc4DN+IOcO58KBlg2Ib2D
|
||||||
|
bpUxR4uuv/qMi3Xw/kp+GGxdKq2zCo/1vNztf0t6P10ec5Eu0kwORroUrvBHNeao
|
||||||
|
rXZwzGJ8fnNeMTZ/E/4qKFSlxCDRu5ojwNix8qo8Vwv0kAfbrJYiguKLpzdD1wm1
|
||||||
|
hSGIDnvD+SIoO5w3aEiopWiArixusmnS8hoTqlSUxiPpy7x1ZF8Ti+cIUOxvp1iE
|
||||||
|
FkMHNMhPYE65KZ/vHHQTDCambiJqj8SkHTCHo1CvgKQ61zVKgizH+3ImNzcLBVzN
|
||||||
|
gQIDAQAB
|
||||||
|
-----END PUBLIC KEY-----
|
1
apk/.abuild/abuild.conf
Normal file
1
apk/.abuild/abuild.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
PACKAGER_PRIVKEY="/home/sdk/.abuild/-57cfc5fa.rsa"
|
BIN
apk/ossp-uuid-1.6.2-r0.apk
Normal file
BIN
apk/ossp-uuid-1.6.2-r0.apk
Normal file
Binary file not shown.
BIN
apk/ossp-uuid-dev-1.6.2-r0.apk
Normal file
BIN
apk/ossp-uuid-dev-1.6.2-r0.apk
Normal file
Binary file not shown.
BIN
apk/x11vnc-0.9.13-r0.apk
Normal file
BIN
apk/x11vnc-0.9.13-r0.apk
Normal file
Binary file not shown.
BIN
apk/x11vnc-dev-0.9.13-r0.apk
Normal file
BIN
apk/x11vnc-dev-0.9.13-r0.apk
Normal file
Binary file not shown.
21
etc/supervisord.conf
Normal file
21
etc/supervisord.conf
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
|
||||||
|
[program:xvfb]
|
||||||
|
command=/usr/bin/Xvfb :1 -screen 0 1920x1080x24
|
||||||
|
autorestart=true
|
||||||
|
user=alpine
|
||||||
|
priority=100
|
||||||
|
|
||||||
|
[program:x11vnc]
|
||||||
|
command=/usr/bin/x11vnc -display :1 -nopw -wait 5 -shared -permitfiletransfer -tightfilexfer
|
||||||
|
user=alpine
|
||||||
|
autorestart=true
|
||||||
|
priority=200
|
||||||
|
|
||||||
|
[program:openbox]
|
||||||
|
environment=HOME="/home/alpine",DISPLAY=":1",USER="alpine"
|
||||||
|
command=/usr/bin/openbox
|
||||||
|
user=alpine
|
||||||
|
autorestart=true
|
||||||
|
priority=300
|
21
etc/xdg/openbox/menu.xml
Normal file
21
etc/xdg/openbox/menu.xml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<openbox_menu xmlns="http://openbox.org/"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://openbox.org/
|
||||||
|
file:///usr/share/openbox/menu.xsd">
|
||||||
|
|
||||||
|
<menu id="root-menu" label="Openbox 3">
|
||||||
|
<!-- This requires the presence of the 'menu' package to work -->
|
||||||
|
<menu id="/Debian" />
|
||||||
|
<separator />
|
||||||
|
<menu id="client-list-menu" />
|
||||||
|
<separator />
|
||||||
|
|
||||||
|
<item label="xterm">
|
||||||
|
<action name="Execute"><execute>/usr/bin/xterm</execute></action>
|
||||||
|
</item>
|
||||||
|
<separator />
|
||||||
|
</menu>
|
||||||
|
|
||||||
|
</openbox_menu>
|
Loading…
Reference in a new issue