You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/02/01 19:37:35 UTC

[GitHub] JBevillC commented on issue #3245: CIAB: Add static subnet

JBevillC commented on issue #3245: CIAB: Add static subnet
URL: https://github.com/apache/trafficcontrol/pull/3245#issuecomment-459842351
 
 
   @rob05c @ocket8888  I've tested this successfully.  The original CiaB static subnets are used if the optional `docker-compose.static-subnets.yml` is specific via an additional `-f` flag to docker-compose.   Tested with the new exposed-ports changes in #3270.  Other than the documentation change that is requested, this PR is ready to be merged.
   
   My testing procedure:
   
   ```
   # From ./infrastructure/cdn-in-a-box
   $ alias mydc="docker-compose "` \
           `"-f $PWD/docker-compose.yml "` \
           `"-f $PWD/docker-compose.expose-ports.yml "` \
           `"-f $PWD/optional/docker-compose.socksproxy.yml "` \
           `"-f $PWD/optional/docker-compose.socksproxy.expose-ports.yml "` \
           `"-f $PWD/optional/docker-compose.vnc.yml "` \
           `"-f $PWD/optional/docker-compose.vnc.expose-ports.yml "` \
           `"-f $PWD/optional/docker-compose.static-subnet.yml "  # Use static subnet 172.16.239.0/16
   $ make very-clean && make -j 7  # Rebuild RPMS
   $ docker network prune -f           # Nuke old stale CiaB networks
   $ mydc build                                  # Rebuild any stale docker containers
   $ mydc kill && mydc rm -fv           # Nuke old CiaB containers
   $ docker volume prune -f             
   $ mydc up -d
   ```
   
   Inspecting the docker network, I observe that the static subnet is indeed being created correctly:
   ```
   $ docker network inspect cdn-in-a-box_default | jq '.[0].IPAM'
   ```
   Output:
   ```
   {
     "Driver": "default",
     "Options": null,
     "Config": [
       {
         "Subnet": "172.16.239.0/24"
       },
       {
         "Subnet": "fc01:9400:1000:8::/64"
       }
     ]
   }
   ```
   Make sure exposed-ports are correct due to changes from PR #3270:
   ```
   $ mydc ps
   ```
   Output:
   ```
   $ mydc ps
                      Name                                  Command               State                                              Ports                                          
   ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   cdn-in-a-box_db_1_60d2d57af8d4                docker-entrypoint.sh postgres    Up       0.0.0.0:5432->5432/tcp                                                                   
   cdn-in-a-box_dns_1_44b696605988               /sbin/entrypoint.sh /usr/s ...   Up       0.0.0.0:9353->53/tcp, 53/udp                                                             
   cdn-in-a-box_edge_1_d834ba5d0d5f              /bin/sh -c /run.sh               Up       0.0.0.0:9000->80/tcp                                                                     
   cdn-in-a-box_enroller_1_38ab16b18eda          /bin/sh -c /run.sh               Up                                                                                                
   cdn-in-a-box_mid_1_508934d3a10e               /bin/sh -c /run.sh               Up       0.0.0.0:9100->80/tcp                                                                     
   cdn-in-a-box_origin_1_d351d0fba750            /bin/sh -c /run.sh               Up       0.0.0.0:9200->80/tcp                                                                     
   cdn-in-a-box_socksproxy_1_3cb68ba771a2        /run.sh                          Up       0.0.0.0:9080->1080/tcp                                                                   
   cdn-in-a-box_tccache_1_9c2444ef8530           /bin/sh -c exit                  Exit 0                                                                                            
   cdn-in-a-box_trafficmonitor_1_935d4f6af9b9    /bin/sh -c /run.sh               Up       0.0.0.0:80->80/tcp                                                                       
   cdn-in-a-box_trafficops-perl_1_f268b5c61e03   /bin/sh -c /run.sh               Up       0.0.0.0:60443->443/tcp                                                                   
   cdn-in-a-box_trafficops_1_2619467f51ed        /bin/sh -c /run-go.sh            Up       0.0.0.0:6443->443/tcp                                                                    
   cdn-in-a-box_trafficportal_1_eedc34486446     /bin/sh -c /run.sh               Up       0.0.0.0:443->443/tcp                                                                     
   cdn-in-a-box_trafficrouter_1_f72b599c1bbc     /bin/sh -c /run.sh               Up       0.0.0.0:3333->3333/tcp, 0.0.0.0:3443->443/tcp, 0.0.0.0:3053->53/tcp, 0.0.0.0:3080->80/tcp
   cdn-in-a-box_trafficvault_1_c0ca89fb3c82      /bin/sh -c /run.sh               Up       0.0.0.0:8087->8087/tcp, 0.0.0.0:8098->8098/tcp                                           
   cdn-in-a-box_vnc_1_cb13fee16337               /bin/sh -c /run.sh               Up       0.0.0.0:5909->5909/tcp
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services