Whats the best way to go about making something like this?

So I'm mostly interested in knowing how to make that repeating geometric pattern in a circle like that. I could easily make it straight but to curve and link up seamlessly like that seems near impossible to me.

What tools or tricks could accomplish something like this?