Skip to content

DvEyZ/DoVEs-backend

Repository files navigation

DoVEs backend

What is DoVEs?

DoVEs - Docker Virtual Environments is a software for creating virtual environments, and seamlessly linking them to remote access providers, such as Apache Guacamole.

Environment variables

  • MONGO_URI - MongoDB database connection URI.
  • DOCKER_VIA - method of Docker daemon access. Either local for Docker daemon on host, or ssh for remote access via SSH.
  • DOCKER_SOCKET_PATH - path to Docker socket. Required if DOCKER_VIA is local.
  • DOCKER_SSH_HOST - remote Docker host address. Required if DOCKER_VIA is ssh.
  • DOCKER_SSH_PORT - remote Docker host SSH port, if DOCKER_VIA is ssh. Defaults to 22.
  • DOCKER_SSH_USERNAME - username for remote Docker host. Required if DOCKER_VIA is ssh.
  • DOCKER_SSH_KEY - path to private key used to connect to remote Docker host. Required if DOCKER_VIA is ssh.
  • LAB_PATH - absolute path to directory containing lab data on Docker host. Required.
  • DOCKER_COMPOSE_CREATE_SCRIPT - script used to set up a lab. It will operate in newly created directory in LAB_PATH, with docker-compose.yml present. Usually docker-compose up -d will be enough.
  • DOCKER_COMPOSE_TEAR_DOWN_SCRIPT - script used to tear down a lab. It will operate in lab directory in LAB_PATH, with docker-compose.yml present. Usually docker-compose down will be enough.
  • DOCKER_COMPOSE_REBUILD_MACHINE_SCRIPT - script used to rebuild a single machine. It will operate in lab directory in LAB_PATH, provided with one argument, namely the name of the machine to be rebuilt. Usually docker-compose up -d --build $1 will be enough.
  • LP_DEFAULT_PASSWORD - default password for newly created login provider users. Defaults to password.

Known issues

  • If the Docker host is down or otherwise inaccessible, and a request involving node-docker-api is made, the app will crash. There is nothing I can do about that.

About

Back-end of DoVEs service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published