edsu / anon

tweet about anonymous Wikipedia edits from particular IP address ranges
Creative Commons Zero v1.0 Universal
973 stars 152 forks source link

Kubernetes on Wikimedia Labs #154

Closed edsu closed 6 years ago

edsu commented 6 years ago

I've been trying to get Wikimedia Labs to upgrade their ancient version of Node (v0.10.31) so it can run the latest version of anon. The anon that is running in Wikimedia Labs is a shared instance that people can use so they don't have to keep their own bots running.

According to the Wikimedia Labs folks it looks like GridEngine is being phased out to be replaced by Kubernetes. A more modern version of Node is available to containers running under Kubernetes. So this ticket is a place holder to figure out how to switch things over.

edsu commented 6 years ago

Well, it seems that anon is currently dependent on node 7+ because of the use of the async/await keywords that were introduced in es7. The Wikimedia Labs is only able to deploy Node v6 at the moment. So either anon will need to be refactored to not rely on async/await or the latest version of anon cannot be deployed at Wikimedia. I'm in favor of removing async/await usage for now if possible.

edsu commented 6 years ago

This has been deployed! The kubernetes configuration isn't stored in this github repository, but it could be if someone else finds it useful.