Commit Graph

252 Commits (feature/docker)

Author SHA1 Message Date
Icedream 64c1083008 Update TS3Bot to 59bdee9229. 2015-11-03 10:15:57 +01:00
Icedream 59bdee9229 Fix update routine in ts3settings.iced. Fixes #30.
Signed-off-by: icedream <icedream2k9@die-optimisten.net>
2015-11-03 09:38:23 +01:00
Icedream 01eee239b1 Update TS3Bot to 655659e254. 2015-11-03 04:03:31 +01:00
Icedream 655659e254 Prevent crash on shutdown caused by VLC stop.
The code tried to send a "Stopped." message to TeamSpeak3 when VLC shut down. However VLC gets shut down after TeamSpeak3 which causes a null reference on the query interface.
2015-11-03 03:59:35 +01:00
Icedream cbb6204b52 Fix process exiting before all services shut down.
Fixes #24 and potentially #25.
2015-11-03 03:55:08 +01:00
Carl Kittelberger d5c302a1f7 Merge pull request #5 from icedream/migration
Migration to newer "node" base image. Closes #4 and #6.

This will provide a newer version of node along with a newer base OS that allows us to make use of new libvlc binaries as well that have OPUS support. This is important to get YouTube support back working as youtube-dl -f bestaudio tends to select OPUS streams for newer videos.
2015-11-03 01:50:16 +01:00
Icedream a881ee4924 Update TS3Bot to 4d7550865e. 2015-11-03 01:29:09 +01:00
Icedream 4d7550865e Store wanted volume in a variable and set on VLC when playback starts.
This gets rid of a configuration issue in the Docker image where VLC would reset the volume to 100% on each new track.
2015-11-03 01:28:30 +01:00
Icedream 5e85a9ef7a PulseAudio: Load module-device-restore and module-stream-restore. 2015-11-03 01:20:05 +01:00
Icedream 62cb121a03 Revert "Load module-volume-restore in pulseaudio, fixes #6."
This reverts commit 3f837421cd.

Conflicts:
	etc/pulse/default.pa
2015-11-03 01:14:34 +01:00
Icedream dbb77b4310 PulseAudio: Move module-x11-publish up into the .fail section. 2015-11-03 01:05:18 +01:00
Icedream 3f837421cd Load module-volume-restore in pulseaudio, fixes #6. 2015-11-03 01:04:36 +01:00
Icedream 27cda8f7f4 Update TS3Bot to 2ee4dc32c3. 2015-11-02 16:12:49 +01:00
Icedream 2ee4dc32c3 Quick fix for the no-metadata crash, closes #23. 2015-11-02 16:06:34 +01:00
Icedream b1cc9f6255 Fix pipes from TS3 query not being decoded, fixes #22. 2015-11-02 15:42:37 +01:00
Icedream bf6f1ce081 Update TS3Bot to 02e6f0c489. 2015-11-02 13:38:40 +01:00
Icedream 02e6f0c489 Boot Xvfb via app.iced. 2015-11-02 13:38:09 +01:00
Icedream baa6796896 Update TS3Bot to 8afc967796. 2015-11-02 13:27:44 +01:00
Icedream 8afc967796 Print more details on service startup failures. 2015-11-02 13:26:49 +01:00
Icedream a1f28dab10 Try to fix module-null-sink. 2015-11-02 13:21:27 +01:00
Icedream 811c9e3f52 Add /etc/pulse/default.pa to only load null sinks. 2015-11-02 13:15:40 +01:00
Icedream Jenkins 7849a8dcf0 Update TS3Bot to 2e246a1a98. 2015-11-02 12:48:57 +01:00
Icedream 2e246a1a98 Do not require an isolated GUI anymore.
This commit allows the TS3Bot to boot in an environment where
there is no way to boot an isolated graphical environment. In that case
TS3Bot will try to use the already existing display and the desktop
manager that runs on it already.

This adds some undefined error cases which still need to be found and
fixed, so be warned: This commit is very, VERY experimental!
2015-11-02 12:46:30 +01:00
Icedream ce801fecbb Use custom XDG runtime dirs for better isolation. 2015-11-02 12:45:27 +01:00
Icedream ee9bd9c0fc Delay Blackbox availability handling.
Allow the main code to handle this case instead.
2015-11-02 12:44:12 +01:00
Icedream ae4288d44a Remove left-over explicit API shutdown code.
The code removed in this commit was not removed in the process of
migrating to the new HTTP-server-less code. It causes additional errors
and is generally useless now.
2015-11-02 12:42:37 +01:00
Icedream Jenkins b6a70ebdc5 Delay error that Xvfb is not available so main code can handle it instead. 2015-11-02 12:20:40 +01:00
Icedream Jenkins f650c3296b Make xdotool optional. 2015-11-02 12:18:36 +01:00
Icedream 32608dcc97 Fix wrong command for detecting Node.js version to build correct native addon version for WebChimera.js. 2015-11-02 10:25:49 +01:00
Icedream d50400a1dd Fix faulty startup command. 2015-11-02 09:57:27 +01:00
Icedream e459d1cdc2 Get rid of DBus setup in setup.sh.
See previous commits for detailed information.
2015-11-01 16:54:41 +01:00
Icedream 06b662c12b Removed command to empty /etc/apt/sources.list.d.
Emptying the sources.list.d folder is no longer necessary.
2015-11-01 16:08:43 +01:00
Icedream 12b4c02492 Delete the /tmp/empty folder after useradd. 2015-11-01 16:05:56 +01:00
Icedream 930b7c5bd1 Fix skeleton flag on useradd. 2015-11-01 16:05:33 +01:00
Icedream c0ce150858 Fix "useradd: group 'app' does not exist". 2015-11-01 14:57:03 +01:00
Icedream 0c16608f9c Typo: This is actually node:4.2, not nodejs:4.2. 2015-11-01 01:39:54 +01:00
Icedream dd5cd05de9 Remove sudo call for installing TeamSpeak3.
Installing the files on root will have the same effect as for other calls. All installed files will no longer be writable by the "app" user, however can still be used and, if the +x flag is set, can be executed.
2015-11-01 00:49:37 +01:00
Icedream 755d0d4752 Migrating to base image nodejs:4.2.
- Remove dbus, it's unnecessary and we can no longer run it in the background without the phusion-baseimage's init process.
- Remove setuser calls since that script no longer exists without phusion-baseimage, instead do all as root (will make files read-only for the app user which is more secure anyways).
2015-11-01 00:45:06 +01:00
Icedream 82b38e214c Increasing Docker Hub Network Fail counter. 2015-10-30 00:02:15 +01:00
Icedream 839e176381 Update TS3Bot to 82c19a2196. 2015-10-29 03:09:14 +01:00
Icedream 82c19a2196 Added explicit process.exit after app shutdown.
Since introducing WebChimera.js the bot is no longer shutting down by itself after all services are shut down since the instances that WebChimera.js generates would still be alive after deletion. There is no way to get around this except if WebChimera.js reveals an explicit release function which it doesn't. The only release function gets called before the VM gets killed.
2015-10-29 03:08:44 +01:00
Icedream 6672e0d319 Update TS3Bot to c20462272f. 2015-10-29 02:31:48 +01:00
Icedream c20462272f Stop audio playback when shutting down TS3Bot. 2015-10-29 02:24:11 +01:00
Icedream adeccf6d57 Allow "vol" to display current volume if no arguments were given. 2015-10-29 02:23:53 +01:00
Icedream def8092fa1 Introducing the Docker Hub Network Fails counter for retriggering build of current branch! 2015-10-29 00:25:49 +01:00
Icedream 6469a50f00 Remove ffmpeg and rtmpdump from dependencies. 2015-10-29 00:00:57 +01:00
Icedream 5909ca3cbb Downgrade vlc to 2.1.x from official repositories.
There is currently no APT repository out there that provides an easy way to install a newer version of VLC as library (libvlc) which is needed for WebChimera.js. Since we already have youtube-dl integrated, we no longer need to rely on VLC's functionality to resolve YouTube links, so in this case we can safely downgrade back to 2.1.x to get the library back.
2015-10-28 23:41:36 +01:00
Icedream ca79736310 Revert to old npm_config_wcjs_runtime_version fix and install dependencies as root instead of as app user. 2015-10-28 23:02:59 +01:00
Icedream de8e9274d3 Fix npm_config_wcjs environment variables. 2015-10-28 16:56:08 +01:00
Icedream bd3846dcc9 Allow WebChimera.js native module to build properly. 2015-10-28 00:54:36 +01:00