Page MenuHomeDevCentral

Listen Docker registry port on internal network
ClosedPublic

Authored by dereckson on Nov 10 2018, 19:19.
Tags
None
Referenced Files
F3797931: D2001.id5051.diff
Thu, Nov 28, 15:43
F3797836: D2001.id5050.diff
Thu, Nov 28, 14:51
F3797605: D2001.diff
Thu, Nov 28, 12:43
Unknown Object (File)
Wed, Nov 27, 04:23
Unknown Object (File)
Tue, Nov 26, 18:34
Unknown Object (File)
Fri, Nov 22, 16:45
Unknown Object (File)
Wed, Nov 13, 07:00
Unknown Object (File)
Wed, Nov 13, 06:01
Subscribers
None

Details

Summary

Docker custom images are built on Dwellers,
but registry is hosted on Equatower.

Plan is to use IntraNought secondary NIC between the servers
for internal communication. Meanwhile, a GRE tunnel has
been prepared between the two servers.

The registry container is reconfigured to listen this IP.

Test Plan

Access to the registry from Dwellers

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
open-registry (branched from master)
Build Status
Buildable 3115
Build 3363: arc lint + arc unit

Event Timeline

dereckson created this revision.

Looks good to me:

Salt master
$ deploy-container registry
...
----------
          ID: registry
    Function: docker_container.running
      Result: True
     Comment: Replaced container 'registry'
     Started: 19:17:41.896864
    Duration: 10514.657 ms
     Changes:   
              ----------
              container:
                  ----------
                  HostConfig:
                      ----------
                      PortBindings:
                          ----------
                          new:
                              ----------
                              5000/tcp:
                                  |_
                                    ----------
                                    HostIp:
                                        10.0.1.1
                                    HostPort:
                                        5000
                          old:
                              ----------
                              5000/tcp:
                                  |_
                                    ----------
                                    HostIp:
                                        127.0.0.1
                                    HostPort:
                                        5000
              container_id:
                  ----------
                  added:
                      3c20a0c589a397ca8c10060b4e97f6984edfa7871f0d9478ca487dfe4cd0f6f5                                                                        
                  removed:
                      - 4a2cd5e1d2a9109bf01ec31f319a9e3a0a033690fc6210dbb1314f9c0c3d2603
...
Dwellers
$ nc 10.0.1.1 5000                                                                                                                                       
GET /
HTTP/1.1 400 Bad Request
Content-Type: text/plain
Connection: close

400 Bad Request
This revision is now accepted and ready to land.Nov 10 2018, 19:23
This revision was automatically updated to reflect the committed changes.