Compare commits

...

3 Commits

Author SHA1 Message Date
Gilles Grandou 2a6ab88e34 update README 2021-04-30 11:39:10 +02:00
Gilles Grandou 01fe246326 more packages in centos 2021-04-30 11:39:05 +02:00
Gilles Grandou f546ca8817 catch run errors 2021-04-30 11:38:58 +02:00
3 changed files with 20 additions and 4 deletions

View File

@ -61,6 +61,18 @@ system install, for all users, as `root`:
each user can have its own configuration in `~/.config/runon/runon.conf`.
## some convenient links
you can create soft links to `runos` to simplify calls:
cd /usr/local/bin
ln -s runon centos7
now calling `centos7 ...` is equivalent to call `runos centos7 ...`:
centos7 xclock
Usage
-----

8
runon
View File

@ -125,8 +125,12 @@ def create_container(client, image, conf, command, verbose):
def run_container(client, container):
dockerpty.start(client.api, container.id)
container.reload() # to update attrs fields
try:
dockerpty.start(client.api, container.id)
container.reload() # to update attrs fields
except docker.errors.APIError as e:
print('ERROR: {}'.format(e))
sys.exit(1)
ret = container.attrs['State']['ExitCode']
return ret

View File

@ -20,7 +20,7 @@ dockerfile =
RUN echo "Defaults lecture = never" >> /etc/sudoers
RUN echo "ALL ALL=(ALL) ALL" >> /etc/sudoers
pkginstall = RUN yum install {} -y
packages = ksh csh xterm xorg-x11-apps xkeyboard-config git
packages = ksh csh xterm xorg-x11-apps xkeyboard-config git glibc-devel gdk-pixbuf2 gtk2 gtk3 alsa-lib
[centos8]
dockerfile =
@ -31,7 +31,7 @@ dockerfile =
RUN echo "Defaults lecture = never" >> /etc/sudoers
RUN echo "ALL ALL=(ALL) ALL" >> /etc/sudoers
pkginstall = RUN yum install {} -y
packages = ksh csh xterm xorg-x11-apps xkeyboard-config git
packages = ksh csh xterm xorg-x11-apps xkeyboard-config git glibc-devel
[debian9]
dockerfile =