Code Monkey home page Code Monkey logo

guacamole_ext_docker-manager's Introduction

Guacamole Docker On-Demand Manager

Java CI with Maven

A Guacamole Extention, which listens for authentications and provides docker containers on demand.

Abstract

Guacamole Docker Manager derived from the use case to provide container, such as rdesktop, to users on-demand. However, managing containers on the terminalserver is a bit tricky, so that is why we implemented this extension. The sequence diagramm below shows the intended workflow:

sequenceDiagram
  actor User
  User->>+Guacamole: Authenticate
  Guacamole->>Guacamole: Get configuration
	Guacamole->>+Docker Host: Request running containers
  Docker Host-->>-Guacamole: Response running containers
  alt not exists
  Guacamole->>Docker Host: Create container
  end
  Guacamole->>-Docker Host: Connect

Getting Started

cd guacamole-docker-manager
mvn clean compile assembly:single
---
- name: Deploy Docker extension
  hosts: guacamole
  become: true
  gather_facts: false
  tasks:
    - name: upload jar
      ansible.builtin.copy:
        src: ./guacamole_ext_docker-manager/guacamole-docker-manager/target/guacamole-docker-manager-1.0-SNAPSHOT-jar-with-dependencies-and-exclude-classes.jar
        dest: /etc/guacamole/extensions/guacamole-docker-manager.jar

    - name: Restart Tomcat
      ansible.builtin.service:
        name: tomcat9
        state: restarted

Variables

  • docker-extension-image: Docker image that is started during connection (IMPORTANT: The image has to available, an auto-pull feature has not been implemented so far).
  • docker-extension-exposed-port: The exposed port of the image. Default: 3389
  • docker-extension-cert: Certification path to connect to Docker host, see Docker remote configuration for more information.
  • docker-extension-additional-env: Additional environment variables to pass to Docker container, format VAR_NAME=VAR_VALUE,VAR_NAME=VAR_VALUE,...

Connection setup

Each user needs a created connection in Guacamole, so that our extension can provide the container during connection.

  • hostname=1.1.1.1
  • password=...
  • port=....
  • username=...

Requirements

  • Maven 3.8.6
  • Jave 1.8
  • Guacamole 1.4.0

guacamole_ext_docker-manager's People

Contributors

mschoeneberger avatar stefandeveloper avatar

Stargazers

 avatar

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.