Created
December 8, 2016 23:46
-
-
Save nemesiscodex/9414209fe9e3febded4e7d2ed5ada7e6 to your computer and use it in GitHub Desktop.
Fedora 23 Dockerfile and docker-compose to run sugar-build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# USAGE: | |
# - Build and run the container: | |
# docker-compose up -d | |
# _ Execute commands: | |
# docker-compose exec sugarbuild <command> | |
# e.g: | |
# docker-compose exec sugarbuild ./osbuild pull | |
# docker-compose exec sugarbuild ./osbuild run | |
# | |
sugarbuild: | |
build: . | |
volumes: | |
- ./:/code/ | |
- /tmp/:/tmp/ # Required to run GUI | |
- /dev/snd:/dev/snd # Required to run GUI | |
privileged: true | |
entrypoint: # no-op to keep container up | |
- tail | |
- -f | |
- /dev/null | |
# Allow tty and stdin input | |
stdin_open: true | |
tty: true | |
# Use current display | |
environment: | |
- DISPLAY=$DISPLAY | |
net: "host" | |
pid: "host" | |
ipc: "host" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fedora:23 | |
RUN mkdir /code/ | |
# Install sugar-build dependencies | |
RUN dnf install -y \ | |
python \ | |
python-devel \ | |
python-virtualenv \ | |
python-gobject \ | |
libXrandr \ | |
tar \ | |
xz \ | |
npm \ | |
sudo && \ | |
dnf clean all --enablerepo=\* | |
WORKDIR /code/ | |
# Add sugar as user and sudoer | |
RUN useradd -ms /bin/bash sugar && echo ' sugar ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
USER sugar | |
VOLUME ["/code/"] | |
ENTRYPOINT ["tail -f /dev/null"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Type Shift-Alt-Q inside sugar to close. | |
Command failed: sugar-runner | |
/code/build/out/install/bin/sugar-runner:28: PyGIWarning: SugarRunner was imported without specifying a version first. Use gi.require_version('SugarRunner', '1.0') before import to ensure that the right version gets loaded. | |
from gi.repository import SugarRunner | |
/code/build/out/install/libexec/sugar-runner/xephyr-window:21: PyGIWarning: SugarRunner was imported without specifying a version first. Use gi.require_version('SugarRunner', '1.0') before import to ensure that the right version gets loaded. | |
from gi.repository import SugarRunner | |
/code/build/out/install/bin/sugar-runner:46: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. | |
from gi.repository import Gtk | |
xinit: XFree86_VT property unexpectedly has 0 items instead of 1 | |
/code/build/out/install/libexec/sugar-runner/xinitrc:25: PyGIWarning: SugarRunner was imported without specifying a version first. Use gi.require_version('SugarRunner', '1.0') before import to ensure that the right version gets loaded. | |
from gi.repository import SugarRunner | |
Warning: Key <OUTP> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <KITG> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <KIDN> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <KIUP> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <RO> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <I192> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <I193> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <I194> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <I195> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <I196> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: Key <I255> not found in evdev+aliases(qwerty) keycodes | |
Symbols ignored | |
Warning: No symbols defined for <AB11> (keycode 97) | |
Warning: No symbols defined for <JPCM> (keycode 103) | |
Warning: No symbols defined for <I120> (keycode 120) | |
Warning: No symbols defined for <AE13> (keycode 132) | |
Warning: No symbols defined for <I149> (keycode 149) | |
Warning: No symbols defined for <I154> (keycode 154) | |
Warning: No symbols defined for <I168> (keycode 168) | |
Warning: No symbols defined for <I178> (keycode 178) | |
Warning: No symbols defined for <I183> (keycode 183) | |
Warning: No symbols defined for <I184> (keycode 184) | |
Warning: No symbols defined for <FK19> (keycode 197) | |
Warning: No symbols defined for <FK24> (keycode 202) | |
Warning: No symbols defined for <I217> (keycode 217) | |
Warning: No symbols defined for <I219> (keycode 219) | |
Warning: No symbols defined for <I221> (keycode 221) | |
Warning: No symbols defined for <I222> (keycode 222) | |
Warning: No symbols defined for <I230> (keycode 230) | |
Warning: No symbols defined for <I247> (keycode 247) | |
Warning: No symbols defined for <I248> (keycode 248) | |
Warning: No symbols defined for <I249> (keycode 249) | |
Warning: No symbols defined for <I250> (keycode 250) | |
Warning: No symbols defined for <I251> (keycode 251) | |
Warning: No symbols defined for <I252> (keycode 252) | |
Warning: No symbols defined for <I253> (keycode 253) | |
xinit: connection to X server lost | |
! Failed to run command run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO:root:Running command sugar-runner | |
INFO:root:Running: sugar-runner | |
INFO:root:/code/build/out/install/bin/sugar-runner:28: PyGIWarning: SugarRunner was imported without specifying a version first. Use gi.require_version('SugarRunner', '1.0') before import to ensure that the right version gets loaded. | |
INFO:root: from gi.repository import SugarRunner | |
INFO:root:/code/build/out/install/libexec/sugar-runner/xephyr-window:21: PyGIWarning: SugarRunner was imported without specifying a version first. Use gi.require_version('SugarRunner', '1.0') before import to ensure that the right version gets loaded. | |
INFO:root: from gi.repository import SugarRunner | |
INFO:root:/code/build/out/install/bin/sugar-runner:46: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. | |
INFO:root: from gi.repository import Gtk | |
INFO:root: | |
INFO:root:xinit: XFree86_VT property unexpectedly has 0 items instead of 1 | |
INFO:root:/code/build/out/install/libexec/sugar-runner/xinitrc:25: PyGIWarning: SugarRunner was imported without specifying a version first. Use gi.require_version('SugarRunner', '1.0') before import to ensure that the right version gets loaded. | |
INFO:root: from gi.repository import SugarRunner | |
INFO:root:Warning: Key <OUTP> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <KITG> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <KIDN> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <KIUP> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <RO> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <I192> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <I193> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <I194> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <I195> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <I196> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: Key <I255> not found in evdev+aliases(qwerty) keycodes | |
INFO:root: Symbols ignored | |
INFO:root:Warning: No symbols defined for <AB11> (keycode 97) | |
INFO:root:Warning: No symbols defined for <JPCM> (keycode 103) | |
INFO:root:Warning: No symbols defined for <I120> (keycode 120) | |
INFO:root:Warning: No symbols defined for <AE13> (keycode 132) | |
INFO:root:Warning: No symbols defined for <I149> (keycode 149) | |
INFO:root:Warning: No symbols defined for <I154> (keycode 154) | |
INFO:root:Warning: No symbols defined for <I168> (keycode 168) | |
INFO:root:Warning: No symbols defined for <I178> (keycode 178) | |
INFO:root:Warning: No symbols defined for <I183> (keycode 183) | |
INFO:root:Warning: No symbols defined for <I184> (keycode 184) | |
INFO:root:Warning: No symbols defined for <FK19> (keycode 197) | |
INFO:root:Warning: No symbols defined for <FK24> (keycode 202) | |
INFO:root:Warning: No symbols defined for <I217> (keycode 217) | |
INFO:root:Warning: No symbols defined for <I219> (keycode 219) | |
INFO:root:Warning: No symbols defined for <I221> (keycode 221) | |
INFO:root:Warning: No symbols defined for <I222> (keycode 222) | |
INFO:root:Warning: No symbols defined for <I230> (keycode 230) | |
INFO:root:Warning: No symbols defined for <I247> (keycode 247) | |
INFO:root:Warning: No symbols defined for <I248> (keycode 248) | |
INFO:root:Warning: No symbols defined for <I249> (keycode 249) | |
INFO:root:Warning: No symbols defined for <I250> (keycode 250) | |
INFO:root:Warning: No symbols defined for <I251> (keycode 251) | |
INFO:root:Warning: No symbols defined for <I252> (keycode 252) | |
INFO:root:Warning: No symbols defined for <I253> (keycode 253) | |
INFO:root:xinit: connection to X server lost | |
INFO:root: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment