Compare commits
3 Commits
c4e984a709
...
2a6ab88e34
Author | SHA1 | Date | |
---|---|---|---|
2a6ab88e34 | |||
01fe246326 | |||
f546ca8817 |
12
README.md
12
README.md
@ -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
8
runon
@ -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
|
||||
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user