Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tools #33

Closed
nicholasjackson opened this issue Feb 15, 2020 · 1 comment
Closed

Tools #33

nicholasjackson opened this issue Feb 15, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@nicholasjackson
Copy link
Contributor

The bash version of shipyard used to have a tools command which ran an interactive terminal containing common tools such as HashiCorp command line tools and KubeCtl.

We need to bring this feature to Shipyard. The tools container should be run as follows.

shipyard tools

If an existing tools container is running then a shell to this container will be attached

If the tools container is not running then it will be started.

In addition we need to improve the user experience for the tools container.

At present you define the tools container as follows:

container "tools" {
  image   {
    name = "shipyardrun/tools:latest"
  }

  command = ["tail", "-f", "/dev/null"]

  # Nomad files
  volume {
    source      = "./nomad_config"
    destination = "/files/nomad"
  }

  network = "network.cloud"
  
  env {
    key = "NOMAD_ADDR"
    value = "http://nomad-http.cloud.shipyard:4646"
  }
}

Tools should be rolled into a custom resource called tools and many of the following options should be automatically set:

  • Kube config files for running Kubernetes clusters should be automatically be mounted
  • Environment variables for Nomad and Kubernetes clusters should be automatically set
  • Should be possible to specify a custom tools container
  • Networks are automatically attached
  • As a stretch goal there should be a feature where the networks/variables on a tools container are automatically updated as the state changes.
@nicholasjackson nicholasjackson self-assigned this Feb 15, 2020
@nicholasjackson nicholasjackson added the enhancement New feature or request label Feb 15, 2020
@nicholasjackson nicholasjackson added this to To do in Backlog via automation Feb 15, 2020
@nicholasjackson nicholasjackson added this to the v0.0.1 milestone Feb 15, 2020
@nicholasjackson nicholasjackson modified the milestones: v0.1.0, v0.2.0 Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Backlog
  
To do
Development

No branches or pull requests

2 participants