Page MenuHomeDevCentral

Listen Docker registry port on internal network
ClosedPublic

Authored by dereckson on Nov 10 2018, 19:19.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 06:44
Unknown Object (File)
Thu, Apr 11, 08:16
Unknown Object (File)
Mon, Apr 8, 04:11
Unknown Object (File)
Mon, Apr 8, 02:19
Unknown Object (File)
Fri, Apr 5, 11:32
Unknown Object (File)
Wed, Apr 3, 18:44
Unknown Object (File)
Mon, Apr 1, 18:52
Unknown Object (File)
Sun, Mar 31, 05:25
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.