Page MenuHomePhabricator

Create developer environment using Docker images from Tool Labs Kubernetes
Closed, ResolvedPublic

Description

This may be dead simple or neigh impossible, but I'm wondering if we can provide a simple way for Tool Labs developers to get a local dev environment bootstrapped that runs the same Docker containers that are used on the k8s cluster.

  1. Are the containers available outside of the WMF networks?
  2. Is that all we need?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
scfc triaged this task as Medium priority.Feb 17 2017, 1:03 AM
scfc moved this task from Backlog to Ready to be worked on on the Toolforge board.
scfc subscribed.

Downloading works:

[tim@passepartout ~/src/operations/puppet]$ sudo docker pull docker-registry.tools.wmflabs.org/toollabs-python-web
Using default tag: latest
Trying to pull repository docker-registry.tools.wmflabs.org/toollabs-python-web ... 
sha256:bcd55716658f533957993beccd6741f4e4744bdaf4e934e4e83863571f9918a7: Pulling from docker-registry.tools.wmflabs.org/toollabs-python-web
220fa2369efa: Pull complete 
5ba79e191907: Pull complete 
b62a1524e624: Pull complete 
abbae114abab: Pull complete 
7fd2368381c5: Pull complete 
bc591d09d25f: Pull complete 
2622e0480f88: Pull complete 
6bb90516ad64: Pull complete 
5b54d6430bca: Pull complete 
b7fd03ef9d69: Pull complete 
f0f0bef84cf7: Pull complete 
6b56003e5469: Pull complete 
476b49ceb311: Pull complete 
Digest: sha256:bcd55716658f533957993beccd6741f4e4744bdaf4e934e4e83863571f9918a7
Status: Downloaded newer image for docker-registry.tools.wmflabs.org/toollabs-python-web:latest
[tim@passepartout ~/src/operations/puppet]$

But for development this probably needs:

  1. Document how to run webservice-runner?
  2. Mount /data/project/TOOL or provide some other way to copy the source code into the container?

Fyi. if you are using the build service (https://wikitech.wikimedia.org/wiki/Help:Toolforge/Build_Service) the images you build locally with pack can be run locally, and the ones built on toolforge can be pulled.

Taking into account that they will not have access to NFS, replicas or ldap and similar.

The Cloud-Services project tag is not intended to have any tasks. Please check the list on https://phabricator.wikimedia.org/project/profile/832/ and replace it with a more specific project tag to this task. Thanks!