Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Execute commands at start #97

Closed
bryanjhv opened this issue Dec 30, 2018 · 4 comments
Closed

[Question] Execute commands at start #97

bryanjhv opened this issue Dec 30, 2018 · 4 comments

Comments

@bryanjhv
Copy link

bryanjhv commented Dec 30, 2018

Hi! I'm liking this docker image and working on a sound project with it. For this to work, I need to run two commands at the start (either the container or the session):

modprobe snd-dummy
pulseaudio --start --log-target=syslog

I can't find a way to make it work without having to open LXTerminal (which will read .bashrc).
What I tried doing:

  • Adding a program to supervisord (setting startsecs=0 autorestart=false) which works but the health-check interferes with it making me wait for about 40 seconds.
  • Using XDG/LXDE/Openbox Autostart but they don't work because no session is started at all.
  • Setting the commands on login files (.profile, .bashrc) which are not read on startup, .profile is completely ignored and .bashrc is only read when opening LXTerminal.
  • Adding a Docker CMD instruction with the shell form, doesn't execute at all.

Is there a way to make running those commands (which are instant) at start?
Thanks in advance for your response.

@fcwu
Copy link
Owner

fcwu commented Jan 1, 2019 via email

@bryanjhv
Copy link
Author

bryanjhv commented Jan 2, 2019

I have seen that issue on the README (and also read it), but isn't there a way to do it without modifying your image? Because if, at some point, you update that file, it will probably break many things, or miss out some improvements you make.

@fcwu
Copy link
Owner

fcwu commented Jan 2, 2019 via email

fcwu pushed a commit that referenced this issue Feb 24, 2019
@fcwu
Copy link
Owner

fcwu commented Feb 24, 2019

Support OPENBOX_ARGS for appending "--startup /etc/..." without modifying image

@fcwu fcwu closed this as completed Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants