Compare commits

..

No commits in common. "2a6ab88e3459734a6048e5cd39e81571890671bf" and "c4e984a709f799f504e5805843c57c99574a8d3f" have entirely different histories.

3 changed files with 4 additions and 20 deletions

View File

@ -61,18 +61,6 @@ system install, for all users, as `root`:
each user can have its own configuration in `~/.config/runon/runon.conf`. 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 Usage
----- -----

4
runon
View File

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

View File

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