Giter Site home page Giter Site logo

ansible-role-kepler's Issues

Including init.sh in the execution of the role

The file docker-kepler/Dockerfile includes the following last line:
CMD /etc/init.d/vmcontext start; /home/ubuntu/init.sh
Therefore, the script init.sh, which starts up the VNC server, is only executed when a Docker container is started.

If this role is executed on a Virtual Machine, then the script is never executed and the VNC server is not started.

Is it possible to introduce the actions of the init.sh script inside the Ansible Role so that feature parity is matched between Docker containers and VMs?

Also, the execution of the init.sh inside a vanilla Ubuntu 14.04 Virtual Machine Image results in the following error
:...
/root/.vnc/xstartup: 25: /root/.vnc/xstartup: twm: not found
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 113 requests (113 known processed) with 0 events remaining.
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s
root@vnode-0:/home/ubuntu#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.