Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
3ad0ce9
Logo recreated as vector. New versions of each added. .sketch source
chadgilloth Aug 27, 2018
398202c
Updated dependency_license added new files, removed deleted files
chadgilloth Aug 29, 2018
d36daea
Fixed paths for png files
chadgilloth Sep 10, 2018
531a2f9
Added .sketch to rat-excludes
chadgilloth Sep 18, 2018
1fa4ac4
Fix TO Go to mask field
rob05c Sep 19, 2018
2ecb029
Change TO level for field mask
rob05c Sep 19, 2018
75f8a9a
ops and above (admin) should not have any server fields masked
mitchell852 Sep 19, 2018
c293557
Prohibit content invalidation requests for no-origin DS types
Sep 21, 2018
9cdb2bc
flip signed flag when signingAlgorithm is changed. fixes #2836
rivasj Sep 21, 2018
7f7ae34
Optimize tenancy check in Origins read query
Sep 26, 2018
2bd7fe7
rename json files
dangogh Aug 28, 2018
2af610e
define httpsPort in enroller
dangogh Aug 28, 2018
65fe34d
no to-enroll for portal
dangogh Aug 29, 2018
3c72ba6
rearrange enroller dockerfile to be more friendly
dangogh Aug 29, 2018
aabf7b7
enrolling trafficvault
dangogh Aug 29, 2018
d34d0d7
enrolling mid/edge/origin; other tweaks
dangogh Aug 30, 2018
818cbe2
enroller watches dir instead of connecting to docker
dangogh Aug 31, 2018
4c8e25d
watching multiple dirs
dangogh Sep 4, 2018
50e2213
share volume for enroller
dangogh Sep 5, 2018
2464303
checkpoint on enroller conversion
dangogh Sep 5, 2018
023c426
use file to wait for enroller
dangogh Sep 5, 2018
c833816
fixes enroller dir scan
dangogh Sep 5, 2018
0459633
fix EOF issue
dangogh Sep 6, 2018
6f4c70f
add cachegroups
dangogh Sep 6, 2018
ecc03ec
fix error checking
dangogh Sep 6, 2018
7ca54ff
better error checking
dangogh Sep 6, 2018
bdcbcfa
more ID retrievals
dangogh Sep 6, 2018
34b7b98
use nullable version of cachegroup func
dangogh Sep 6, 2018
d1c31af
remove Id fields from json data
dangogh Sep 6, 2018
a1ba462
check division in region
dangogh Sep 6, 2018
8d98b8b
fix types in cachegroups
dangogh Sep 6, 2018
04b0109
enroller fixes
dangogh Sep 7, 2018
5a443bd
data cleanup
dangogh Sep 7, 2018
40ee0d6
rename tenants to order properly
dangogh Sep 7, 2018
73a97b9
fix loading of json during initial trafficops startup
dangogh Sep 7, 2018
dbd5487
remove v13 refs
dangogh Sep 7, 2018
e56b9c6
clear files from enroller; work around race reading enroller files
dangogh Sep 7, 2018
915d01a
rename json file if load failed
dangogh Sep 10, 2018
020a0b8
rename json file once processed
dangogh Sep 10, 2018
b793956
create /shared dir for more than just enroller
dangogh Sep 10, 2018
9adfe62
enrollUser; fix enrollDeliveryservice
dangogh Sep 10, 2018
9293f54
staged dockerfile for enroller
dangogh Sep 10, 2018
8975c2e
cleanup deliveryservice json
dangogh Sep 10, 2018
2129761
fix data for user enrolling
dangogh Sep 10, 2018
03e72bb
Added the ORT script from old branch
Aug 29, 2018
14a81f2
fixing bad daemonization
Aug 29, 2018
163b372
Now using ORT script to start ATS
Aug 29, 2018
d608753
ORT script now writes and backs up config files
Aug 30, 2018
50dc283
installing new ORT dependencies in edge container
Aug 31, 2018
5f3bf63
Now restarts ATS when its config files change
Aug 31, 2018
3cd2216
Fixed ATS restart logic
Sep 4, 2018
f37f3f0
Added Ubuntu-specific package handlers and interactive mode prompts
Sep 4, 2018
59b38be
Fixed wrong ATS root in use in ORT and params
Sep 4, 2018
98ef079
Fixed SyntaxError
Sep 4, 2018
2f9342d
Fixed bad directory permissions on stock ATS rpm install paths
Sep 4, 2018
9b77e7c
Fixed error in conditional execution
Sep 4, 2018
9289bb0
Added some descriptions of known bugs to README
Sep 5, 2018
23a91e3
Added Makefile to install rpms
Sep 5, 2018
8c21dfa
Added Makefile to README build instructions
Sep 5, 2018
510df75
Fixed bad quoting, double source of to-access.sh
Sep 6, 2018
aa9a4bb
Fixed error output formatting
Sep 6, 2018
e343de9
Added license header (I swear I've already done this...)
Sep 6, 2018
2d1ceff
Fixed Dockerfile not properly installing python dependencies
Sep 10, 2018
ebc14e0
Now waiting on enrollment
Sep 10, 2018
ee41026
Now using ORT script to start ATS
Aug 29, 2018
b7f4604
installing new ORT dependencies in edge container
Aug 31, 2018
277b4da
Fixed bad directory permissions on stock ATS rpm install paths
Sep 4, 2018
b4e95fa
Add Bindv9 DNS server to assist traffic router
Sep 11, 2018
e9e6e2c
Moving to template-based server construction
Sep 6, 2018
36f3e73
The only way I can do this without a race condition is include it in …
Sep 6, 2018
cece2a5
Waiting for enroller directory
Sep 10, 2018
2516442
CreateUser requires APIUserPost type
dangogh Sep 11, 2018
237eb5a
use longer passwd for tv
dangogh Sep 11, 2018
678df27
misc fixes
dangogh Sep 12, 2018
79b6a23
wait for cdn to be created
dangogh Sep 12, 2018
960b6af
fixed bad pipelines for IP info
Sep 12, 2018
76ea757
removed unneeded 'physlocation' field from server template
Sep 12, 2018
1f7abea
added httpsPort
Sep 12, 2018
d8529bc
fix json keys
dangogh Sep 12, 2018
60de7dd
DNS: Use non-routable ipv4 classC subnet
Sep 12, 2018
1d27bcd
Fix to-enroll for edge, mid, origin, and trafficmonitor
Sep 13, 2018
180a61c
Fix enrollment of db, dns, portal, portal, vault
Sep 13, 2018
5a9799b
Add Traffic Router, partial FQDN support
Sep 13, 2018
e0ce644
Fix yum hang when adding epel repo
Sep 13, 2018
cd42d2c
fix edge/mid cpu issue, origin enroll
dangogh Sep 13, 2018
fe5d97a
fix origin json
dangogh Sep 14, 2018
484a40f
ability to update params and connect profiles
dangogh Sep 14, 2018
fddbc91
add profiles
dangogh Sep 14, 2018
efbb990
Add shared x509 TLS CA support for all container services
Sep 14, 2018
eabc9e5
Add shared CA support for all container services
Sep 14, 2018
8f3db12
add profiles
dangogh Sep 14, 2018
ce810d8
bad profile import
dangogh Sep 15, 2018
f441dda
Misc fixes to param(s), fix trafficmonitor enroll, etc
Sep 17, 2018
e978b96
Make the free GeoLite2 database available locally via trafficops
Sep 17, 2018
57800d8
Fix location of GeoliteCity DB in CCR_CIAB profile
Sep 17, 2018
6d2bf55
specify vars to sub in envsubst; reduce debug from enroller
dangogh Sep 17, 2018
c2c2719
Disable DNSSEC validation in bindv9
Sep 18, 2018
722ad6b
Download/Unpack/Compress the correct GeoList2 Maxmind DB (City)
Sep 18, 2018
b6532fc
switched to ATS 7.1.4
Sep 18, 2018
20574da
Fixed previously unsatisfied requirement for libkyotocabinet
Sep 18, 2018
a31884f
fix to-post
dangogh Sep 18, 2018
60ff30e
Added a base image for caches
Sep 18, 2018
4a577c7
System now builds tccache prior to edge and mids
Sep 18, 2018
c6a3f0d
add long description on ds
dangogh Sep 19, 2018
88ed8d1
Add Traffic Vault with search capbility.
Sep 19, 2018
ef73c85
order data files; add edge->mid parentcachegroupname
dangogh Sep 20, 2018
b8dd6d3
Fixing some bad parameters (also '\t' > ' ')
Sep 20, 2018
563e03b
Update DNS to use ciab.test TLD
Sep 20, 2018
f17871a
Add x509v3 Self-Signed CA and TLS certificates
Sep 21, 2018
2d6a19b
fix ds json
dangogh Sep 21, 2018
3513916
enroller handles deliveryservice_servers
dangogh Sep 21, 2018
7b14fa3
fix localPasswd
dangogh Sep 11, 2018
16ca646
Added the ORT script from old branch
Aug 29, 2018
39d4bf9
Fixed bad directory permissions on stock ATS rpm install paths
Sep 4, 2018
7251226
Fixing some cache issues related to ATS
Sep 19, 2018
2c22193
Will now (occasionally) update TrafficOps after running
Sep 19, 2018
c1e8f60
Switching back to subprocess-based ATS commands
Sep 20, 2018
9d97361
Moved RPM permissions fixes into cache container
Sep 21, 2018
efa919c
Containers now able to restart ATS
Sep 24, 2018
cc9b59c
added cron job to run SYNCDS every minute
Sep 24, 2018
e920f1c
Added crontab file
Sep 24, 2018
91f4487
Only start TM after CDN snapshot
Sep 24, 2018
f139a43
add dscp params to ats profiles
dangogh Sep 25, 2018
78ae76c
remove url_sig from deliveryservice
dangogh Sep 25, 2018
aa54483
use nullable deliveryservice
dangogh Sep 25, 2018
cc58d68
add dnsutils to enroller
dangogh Sep 25, 2018
934b8ae
Fixed profile parameters placing configuration file outside of the co…
Sep 25, 2018
12c811c
Add tcnet subnets to ATS astats.config
Sep 25, 2018
5e6b85a
Add missing reverse ipv4 ptr record
Sep 25, 2018
088ab7c
create cache file on image creation
dangogh Sep 25, 2018
eb61190
strip comments before comparing config files
dangogh Sep 25, 2018
11070fd
Added documentation generation for Python ORT script
Sep 25, 2018
0a53a80
Fixed some false positive diffs in configuration files
Sep 25, 2018
429817d
fix var ref
dangogh Sep 26, 2018
606623a
Change initial default ATS port from 8080 -> 80
Sep 26, 2018
fb617f7
add content: host mounted volume in origin
dangogh Sep 26, 2018
4855906
Demo VNC/proxy container for CIAB
Sep 26, 2018
4ec78a9
no need to enroll origin - gets created w/ deliveryservice
dangogh Sep 26, 2018
97b2854
Persist SSL certificates for future restarts
Sep 26, 2018
154615d
Add CORS to origin, fix dns error with client container
Sep 27, 2018
eda345b
add missing copyright headers
dangogh Sep 28, 2018
0836eef
ensure all conf copied to trafficops-go container
dangogh Sep 28, 2018
908949b
fix python ORT to compare correctly
dangogh Oct 2, 2018
8b54a1e
upgrade setuptools prior to installing sphinx
dangogh Oct 1, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .dependency_license
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ cron\.d/[^/]*$, Apache
^misc/traffic-control-cdn/images/traffic_portal_logo\.png, Apache
^misc/traffic-control-cdn/images/traffic_router_logo\.png, Apache
^misc/traffic-control-cdn/images/traffic_stats_logo\.png, Apache
^misc/logos/Traffic-Control-Logo-FINAL-Black-Text\.png, Apache
^misc/logos/Traffic-Control-Logo-FINAL-White-Text\.png, Apache
^misc/logos/Traffic-Control-Logo-FINALc\.png\.zip, Apache
^misc/logos/atc-final\.svg, Apache
^misc/logos/atc-final\.psd, Apache
^misc/logos/atc-largepng-c-only\.png, Apache
^misc/logos/ATC-PNG\.png, Apache
^misc/logos/ATC-PNG-FULL-BLACK\.png, Apache
^misc/logos/ATC-PNG-FULL-BLACK-LARGE\.png, Apache
^misc/logos/ATC-PNG-FULL-WHITE\.png, Apache
^misc/logos/ATC-PNG-FULL-WHITE-LARGE\.png, Apache
^misc/logos/ATC-PNG-LARGE\.png, Apache
^misc/logos/ATC-SVG\.sketch, Apache
^misc/logos/ATC-SVG-FULL\.sketch, Apache
^misc/logos/page_logos/trafficLogoFactory\.psd, Apache
^misc/logos/page_logos/traffic_monitor_logo\.png, Apache
^misc/logos/page_logos/traffic_operations_logo\.png, Apache
Expand Down
1 change: 1 addition & 0 deletions .rat-excludes
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ testFiles(?: test data that is neither code nor capable
.*\.spec(?: Specifies license, among other things. ){0}
.*\.test(?: test data ){0}
.*\.txt(?: text data files can't handle comments, so their licenses must be documented as part of their project ){0}
.*\.sketch(?: sketch files are binary source image files and don't bear license information ){0}
ssl\.(?:crt|key)(?: demo certificate ){0}
keystore.*(?: keystore ){0}
README.*(?: Readme's don't usually require a separate license. ){0}
Expand Down
6 changes: 3 additions & 3 deletions docs/source/api/v11/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Server
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
| ``iloIpNetmask`` | string | The IPv4 netmask of the lights-out-management port. |
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
| ``iloPassword`` | string | The password of the of the lights-out-management user (displays as ****** unless you are an 'admin' user). |
| ``iloPassword`` | string | The password of the of the lights-out-management user (displays as ****** unless 'ops' / 'admin' user). |
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
| ``iloUsername`` | string | The user name for lights-out-management. |
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
Expand Down Expand Up @@ -228,7 +228,7 @@ Server
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
| ``iloIpNetmask`` | string | The IPv4 netmask of the lights-out-management port. |
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
| ``iloPassword`` | string | The password of the of the lights-out-management user (displays as ****** unless you are an 'admin' user). |
| ``iloPassword`` | string | The password of the of the lights-out-management user (displays as ****** unless 'ops' / 'admin' user). |
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
| ``iloUsername`` | string | The user name for lights-out-management. |
+--------------------+--------+------------------------------------------------------------------------------------------------------------+
Expand Down Expand Up @@ -422,7 +422,7 @@ Server
+----------------------+--------+-------------------------------------------------------------------------------------------------------------+
| ``iloIpNetmask`` | string | The IPv4 netmask of the lights-out-management port. |
+----------------------+--------+-------------------------------------------------------------------------------------------------------------+
| ``iloPassword`` | string | The password of the of the lights-out-management user (displays as ****** unless you are an 'admin' user). |
| ``iloPassword`` | string | The password of the of the lights-out-management user (displays as ****** unless 'ops' / 'admin' user). |
+----------------------+--------+-------------------------------------------------------------------------------------------------------------+
| ``iloUsername`` | string | The user name for lights-out-management. |
+----------------------+--------+-------------------------------------------------------------------------------------------------------------+
Expand Down
43 changes: 24 additions & 19 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import os
import sys
ortPath = os.path.dirname(__file__)
ortPath = os.path.join(ortPath, '..', '..', 'infrastructure', 'cdn-in-a-box', 'edge')
ortPath = os.path.abspath(ortPath)
print("Looking for Python-based ORT in '", ortPath, ",", sep="")
sys.path.insert(0, ortPath)

# -- Project information -----------------------------------------------------

Expand All @@ -52,6 +55,8 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx_autodoc_typehints'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -122,27 +127,27 @@
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
'papersize': 'a4paper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
'pointsize': '12pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'trafficcontrol.tex', 'Apache Traffic Control Documentation',
'Apache Traffic Control', 'manual'),
(master_doc, 'trafficcontrol.tex', 'Apache Traffic Control Documentation',
'Apache Traffic Control', 'manual'),
]


Expand All @@ -151,8 +156,8 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'Apache Traffic Control', 'Apache Traffic Control Documentation',
[author], 1)
(master_doc, 'Apache Traffic Control', 'Apache Traffic Control Documentation',
[author], 1)
]


Expand All @@ -162,7 +167,7 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'trafficcontrol', 'trafficcontrol Documentation',
author, 'trafficcontrol', 'Traffic Control is an Open Source implementation of a Content Delivery Network.',
'Miscellaneous'),
(master_doc, 'trafficcontrol', 'trafficcontrol Documentation',
author, 'trafficcontrol', 'Traffic Control is an Open Source implementation of a Content Delivery Network.',
'Miscellaneous'),
]
11 changes: 6 additions & 5 deletions docs/source/development/index.rst
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
..
..
..
..
.. Licensed under the Apache License, Version 2.0 (the "License");
.. you may not use this file except in compliance with the License.
.. You may obtain a copy of the License at
..
..
.. http://www.apache.org/licenses/LICENSE-2.0
..
..
.. Unless required by applicable law or agreed to in writing, software
.. distributed under the License is distributed on an "AS IS" BASIS,
.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
.. See the License for the specific language governing permissions and
.. limitations under the License.
..
..

Developer's Guide
*****************
Expand All @@ -22,6 +22,7 @@ Use this guide to start developing applications that consume the Traffic Control

building
traffic_ops
ort/modules
traffic_portal
traffic_router
traffic_monitor
Expand Down
22 changes: 22 additions & 0 deletions docs/source/development/ort/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
..
..
.. Licensed under the Apache License, Version 2.0 (the "License");
.. you may not use this file except in compliance with the License.
.. You may obtain a copy of the License at
..
.. http://www.apache.org/licenses/LICENSE-2.0
..
.. Unless required by applicable law or agreed to in writing, software
.. distributed under the License is distributed on an "AS IS" BASIS,
.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
.. See the License for the specific language governing permissions and
.. limitations under the License.
..

edge
====

.. toctree::
:maxdepth: 4

traffic_ops_ort
24 changes: 24 additions & 0 deletions docs/source/development/ort/traffic_ops_ort.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
..
..
.. Licensed under the Apache License, Version 2.0 (the "License");
.. you may not use this file except in compliance with the License.
.. You may obtain a copy of the License at
..
.. http://www.apache.org/licenses/LICENSE-2.0
..
.. Unless required by applicable law or agreed to in writing, software
.. distributed under the License is distributed on an "AS IS" BASIS,
.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
.. See the License for the specific language governing permissions and
.. limitations under the License.
..

traffic\_ops\_ort module
========================

.. autodata:: traffic_ops_ort

.. automodule:: traffic_ops_ort
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
#
Sphinx>=1.4.3
sphinx_rtd_theme>=0.4.0
sphinx_autodoc_typehints>=1.3.0
1 change: 1 addition & 0 deletions infrastructure/cdn-in-a-box/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.rpm
traffic_ops/ca
95 changes: 95 additions & 0 deletions infrastructure/cdn-in-a-box/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

############################################################
# Dockerfile to build Edge-Tier Cache container images for
# Apache Traffic Control
# Based on CentOS 7.2
############################################################

# Check for proper invocation
PWD := $(strip $(lastword $(patsubst %/,%,$(notdir $(shell pwd)))))
makefile_dir := $(strip $(notdir $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))))

ifneq ($(PWD),$(makefile_dir))
$(error This makefile MUST be run from within its directory)
endif

BUILD_NUMBER := $(shell git rev-list HEAD 2>/dev/null | wc -l).$(shell git rev-parse --short=8 HEAD)
TC_VERSION := $(shell cat "../../VERSION")
TOMCAT_VERSION := $(shell grep 'export TOMCAT_VERSION=' ../../traffic_router/build/build_rpm.sh | cut -d '=' -f 2)
TOMCAT_RELEASE := $(shell grep 'export TOMCAT_RELEASE=' ../../traffic_router/build/build_rpm.sh | cut -d '=' -f 2)

ifeq ($(shell which rpm 2>/dev/null),)
RHEL_VERSION :=el7
$(info Couldn't find 'rpm' binary, building for RHEL version $(RHEL_VERSION))
else
RHEL_VERSION :=el$(shell rpm -q --qf "%{VERSION}" $(shell rpm -q --whatprovides redhat-release))
endif

SPECIAL_SAUCE := $(TC_VERSION)-$(BUILD_NUMBER).$(RHEL_VERSION).x86_64.rpm
SPECIAL_SEASONING := $(TOMCAT_VERSION).$(TOMCAT_RELEASE)-$(BUILD_NUMBER).$(RHEL_VERSION).x86_64.rpm

TO_SOURCE := $(wildcard ../../traffic_ops/**/*)
ORT_SOURCE:= $(wildcard ../../traffic_ops/bin/*)
TO_SOURCE += $(wildcard ../../traffic_ops_db/**/*)
TM_SOURCE := $(wildcard ../../traffic_monitor/**/*)
TP_SOURCE := $(wildcard ../../traffic_portal/**/*)
TR_SOURCE := $(wildcard ../../traffic_router/**/*)

.PHONY: clean very-clean all nearly-all

# Default target; builds all pre-requisite rpms from source trees
all: traffic_monitor/traffic_monitor.rpm traffic_portal/traffic_portal.rpm traffic_ops/traffic_ops.rpm mid/traffic_ops_ort.rpm edge/traffic_ops_ort.rpm traffic_router/traffic_router.rpm traffic_router/tomcat.rpm

# Actual output rpm recipies
traffic_monitor/traffic_monitor.rpm: ../../dist/traffic_monitor-$(SPECIAL_SAUCE)
cp -f $? $@
traffic_ops/traffic_ops.rpm: ../../dist/traffic_ops-$(SPECIAL_SAUCE)
cp -f $? $@
mid/traffic_ops_ort.rpm edge/traffic_ops_ort.rpm: ../../dist/traffic_ops_ort-$(SPECIAL_SAUCE)
cp -f $? $@
traffic_portal/traffic_portal.rpm: ../../dist/traffic_portal-$(SPECIAL_SAUCE)
cp -f $? $@
traffic_router/traffic_router.rpm: ../../dist/traffic_router-$(SPECIAL_SAUCE)
cp -f $? $@
traffic_router/tomcat.rpm: ../../dist/tomcat-$(SPECIAL_SEASONING)
cp -f $? $@

# Dist rpms
../../dist/traffic_monitor-$(SPECIAL_SAUCE): $(TM_SOURCE)
sudo ../../pkg -v traffic_monitor_build

../../dist/traffic_ops-$(SPECIAL_SAUCE): $(TO_SOURCE)
sudo ../../pkg -v traffic_ops_build

../../dist/traffic_ops_ort-$(SPECIAL_SAUCE): $(ORT_SOURCE)
sudo ../../pkg -v traffic_ops_build

../../dist/traffic_portal-$(SPECIAL_SAUCE): $(TP_SOURCE)
sudo ../../pkg -v traffic_portal_build

../../dist/traffic_router-$(SPECIAL_SAUCE): $(TR_SOURCE)
sudo ../../pkg -v traffic_router_build

clean:
$(RM) traffic_ops/traffic_ops.rpm traffic_monitor/traffic_monitor.rpm traffic_portal/traffic_portal.rpm traffic_router/traffic_router.rpm traffic_router/tomcat.rpm edge/traffic_ops_ort.rpm mid/traffic_ops_ort.rpm

very-clean: clean
$(warning This will destroy ALL OUTPUT RPMS IN 'dist'. Please be sure this is what you want)
sleep 2 # Give users a sceond to cancel
$(RM) ../../dist/*
19 changes: 15 additions & 4 deletions infrastructure/cdn-in-a-box/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ via the distribution's package manager under the names `docker-ce` and
`docker-compose`, respectively (e.g. `sudo yum install docker-ce`).

Each container (except the origin) requires an `.rpm` file to install the Traffic Control
component for which it is responsible. You can either download these `*.rpm` files or
create them yourself by using the [`pkg`](../../pkg) script at the root of the
repository. Copy the `*.rpm`s without any version/architecture information to their
respective component directories, such that their filenames are as follows:
component for which it is responsible. You can download these `*.rpm` files from an archive
(e.g. under "Releases"), use the provided [Makefile](./Makefile) to generate them (simply
type `make` while in the `cdn-in-a-box` directory) or create them yourself by using the
[`pkg`](../../pkg) script at the root of the repository. If you choose the latter, copy
the `*.rpm`s without any version/architecture information to their respective component
directories, such that their filenames are as follows:

* `edge/traffic_ops_ort.rpm`
* `mid/traffic_ops_ort.rpm`
Expand Down Expand Up @@ -137,3 +139,12 @@ a very simple page sporting the Traffic Control logo.

The process creates containers for each component with ports exposed on the host. The
following should be available once the system is running:


## Common Pitfalls

> Everything's "waiting for Traffic Ops" forever and nothing seems to be working - what do?
> If you scroll back through the output ( or use `docker compose logs trafficops-perl | grep "User defined signal 2"` ) and see a line that says something like `/run.sh: line 79: 118 User defined signal 2 $TO_DIR/local/bin/hypnotoad script/cdn` then you've hit a mysterious known error. We don't know what this is or why it happens, but your best bet is to send up a quick prayer and restart the stack.

> I'm seeing a failure to open a socket and/or set a socket option
> Try disabling SELinux or setting it to 'permissive'. SELinux hates letting containers bind to certain ports. You can also try re-labeling the `docker` executable if you feel comfortable.
Loading