contrib/docker/ubuntu.template
author Jun Wu <quark@fb.com>
Mon, 19 Dec 2016 22:07:41 +0000
changeset 30624 88efb4fb1975
parent 29031 e63dfbbdbd07
child 32148 e02bae37af30
permissions -rw-r--r--
chgserver: truncate base address at "." for hash address Previously, the hash address is just appending "-$HASH" to base address. This patch makes it truncate the basename address at "." before appending "-$HASH". This makes it possible to spawn new servers in a racy situation and the client could be sure the server it connects is the new server just spawned. This is a step towards removing the lock. One of the functionalities of the lock is to make sure the connect will connect to a server it just created: 1. start server --address foo 2. connect to foo # wish "foo" is the server just started With this change, the client could do: 1. start server --address foo.tmp$PID 2. connect to foo.tmp$PID # is the server just started (note: if it is not, it does not affect correctness - linux pid namespace is not a concern here) 3. rename foo.tmp$PID to foo Another functionality of the lock is to avoid starting multiple servers with a same confighash in parallel. But that also prevents starting multiple servers with different confighashes in parallel.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29031
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     1
FROM ubuntu:__CODENAME__
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     2
RUN apt-get update && apt-get install -y \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     3
  build-essential \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     4
  debhelper \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     5
  dh-python \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     6
  devscripts \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     7
  python \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     8
  python-all-dev \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
     9
  python-docutils \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    10
  zip \
e63dfbbdbd07 make: turn ubuntu docker into template
Sean Farley <sean@farley.io>
parents:
diff changeset
    11
  unzip