Hey all! I'm having a heck of a time finding a sin...
# fleet
f
Hey all! I'm having a heck of a time finding a single (or simple) docker compose file that I can quickly spin up for testing out fleet...I've found several different projects, but most are in various states of non-maintenance. Closest I got to working was https://github.com/ksatter/fleet-docker/tree/defcon30?tab=readme-ov-file#file-access-denied-issues-with-fleet-and-filebeat-containers, but I'm getting some error about nanomdm? Happy to share way more details as-needed - just wasn't sure which specific channel to ask the question in (brand new to Slack)
One more data point - I tried following the Hetzner setup guide, but there's several issues there as well - mostly due to missing information or incorrect syntax (looks like it's about 4 years old based on the image versions/comments)
Specific errors include: May 08 200132 server_hostname docker[64742]: 2024/05/09 000132 FAIL 20220915165115_AppleMDMTables.go (failed to apply nanomdm schema: Error 1050 (42S01): Table 'nano_devices' already exists), quitting migration. fleet-1 | 2024-05-08T231833.328501387Z 2024/05/08 231833 FAIL 20220915165115_AppleMDMTables.go (failed to apply nanomdm schema: Error 6125 (HY000): Failed to add the foreign key constraint. Missing unique key for constraint 'nano_enrollments_ibfk_2' in the referenced table 'nano_users'), quitting migration. And now that I did those side-by-side, I'm realizing the error is the same. 1st is trying to follow the steps from the Hetzner deployment guide, the second is using the above-linked repo on my desktop to see if there's a difference....same error in both locations
g
Another contributor has put together https://github.com/spokanemac/fleet-docker-traefik that you might get further with @forralmm.
f
Thanks Grant. I was hoping to find something drafted directly by Fleet - do you know if something exists?
g
Priority has been using Terraform for the scale and growth along with Fleet Premium client size. The Docker linked above, I believe is the same one Fleet uses at conventions/conferences/labs. Another option is deploying on Render for a quick p_roof of concept_, recently brought into the Fleet repository. It might not be free, but it is a very low-cost deployment to test.
w
@forralmm, it's likely the issue is caused by unsupported MySQL version. Make sure you tagged mysql on version 8.0