Sergiusz Bazanski | cb5c321 | 2019-05-19 03:10:17 +0200 | [diff] [blame] | 1 | local factorio = import "factorio.libsonnet"; |
Serge Bazanski | c684ca9 | 2021-06-12 22:02:25 +0000 | [diff] [blame] | 2 | local proxy = import "proxy.libsonnet"; |
Serge Bazanski | e7f4cc1 | 2021-06-12 21:55:40 +0000 | [diff] [blame] | 3 | local kube = import "../../../kube/kube.libsonnet"; |
Sergiusz Bazanski | cb5c321 | 2019-05-19 03:10:17 +0200 | [diff] [blame] | 4 | |
Serge Bazanski | e7f4cc1 | 2021-06-12 21:55:40 +0000 | [diff] [blame] | 5 | // This deploys factorio instances and the modproxy in the `factorio` |
| 6 | // Kubernetes namespace. |
| 7 | // |
| 8 | // Available factorio versions: |
Serge Bazanski | 791ab6d | 2020-08-14 10:34:29 +0000 | [diff] [blame] | 9 | // - 1.0.0-1 |
Dariusz Niemczyk | b3799c8 | 2021-06-12 23:02:58 +0200 | [diff] [blame] | 10 | // - 1.1.34-1 |
Serge Bazanski | f7efc40 | 2021-06-18 19:30:21 +0000 | [diff] [blame] | 11 | // - 1.1.35-1 |
ironbound | e7c8509 | 2021-12-26 00:04:26 +0000 | [diff] [blame] | 12 | // - 1.1.50-1 |
Serge Bazanski | e7f4cc1 | 2021-06-12 21:55:40 +0000 | [diff] [blame] | 13 | // See: //third_party/factorio. |
Sergiusz Bazanski | cb5c321 | 2019-05-19 03:10:17 +0200 | [diff] [blame] | 14 | |
| 15 | { |
| 16 | local prod = self, |
| 17 | |
radex | 99ed6a7 | 2023-11-24 11:42:55 +0100 | [diff] [blame] | 18 | local ns = kube.Namespace("factorio"), |
Serge Bazanski | c684ca9 | 2021-06-12 22:02:25 +0000 | [diff] [blame] | 19 | |
| 20 | // instance makes a factorio server with a given name and at a |
| 21 | // given tag/version. |
Sergiusz Bazanski | cb5c321 | 2019-05-19 03:10:17 +0200 | [diff] [blame] | 22 | instance(name, tag):: factorio { |
| 23 | cfg+: { |
| 24 | namespace: "factorio", |
| 25 | prefix: name + "-", |
| 26 | tag: tag, |
| 27 | } |
| 28 | }, |
| 29 | |
Serge Bazanski | c684ca9 | 2021-06-12 22:02:25 +0000 | [diff] [blame] | 30 | proxy: proxy { |
| 31 | cfg+: { |
| 32 | namespace: "factorio", |
Sergiusz Bazanski | 0581bbf | 2020-05-11 03:21:32 +0200 | [diff] [blame] | 33 | }, |
| 34 | }, |
| 35 | |
| 36 | local mod = function(name, version) { name: name, version: version }, |
ironbound | e7c8509 | 2021-12-26 00:04:26 +0000 | [diff] [blame] | 37 | pymods: prod.instance("pymods", "1.1.50-1") { |
Dariusz Niemczyk | b3799c8 | 2021-06-12 23:02:58 +0200 | [diff] [blame] | 38 | cfg+: { |
Serge Bazanski | 99b10bb | 2021-06-21 14:05:34 +0000 | [diff] [blame] | 39 | // Bump up to 2G/2CPU request/limit. |
| 40 | resources: { |
| 41 | requests: { |
| 42 | cpu: "2", |
| 43 | memory: "2Gi", |
| 44 | }, |
| 45 | limits: self.requests, |
| 46 | }, |
Dariusz Niemczyk | b3799c8 | 2021-06-12 23:02:58 +0200 | [diff] [blame] | 47 | mods: [ |
| 48 | // Stdlib for mods |
| 49 | mod("stdlib", "1.4.6"), |
| 50 | // General QOL |
| 51 | // Better loaders |
| 52 | mod("LoaderRedux", "1.7.1"), |
| 53 | mod("LoaderReduxForFactorioExtendedPlus", "1.1.0"), |
| 54 | // Trains |
| 55 | mod("traintunnels", "0.0.11"), |
| 56 | mod("FARL", "4.1.2"), |
| 57 | // Move between buildings |
| 58 | mod("Squeak Through", "1.8.2"), |
| 59 | // Requirements calculator |
| 60 | mod("helmod", "0.12.5"), |
| 61 | // Compact loaders for easier and faster transportation |
| 62 | mod("deadlock-beltboxes-loaders", "2.4.2"), |
| 63 | // Better inserters |
| 64 | mod("bobinserters", "1.1.0"), |
| 65 | // Teleport to tags for easier movement with huge server |
| 66 | mod("TagToTeleport", "1.1.1"), |
| 67 | // Necessary for PYmods to get proper list of ingredients for the next step |
| 68 | mod("what-is-it-really-used-for", "1.6.0"), |
| 69 | // Resource monitor |
| 70 | mod("YARM", "0.8.203"), |
| 71 | // YEET |
| 72 | mod("RenaiTransportation", "0.8.6"), |
| 73 | |
| 74 | // PYmods |
| 75 | mod("pypetroleumhandling", "2.0.6"), |
| 76 | mod("pyrawores", "2.2.7"), |
| 77 | mod("pyraworesgraphics", "1.0.9"), |
| 78 | mod("pycoalprocessing", "1.9.3"), |
| 79 | mod("pycoalprocessinggraphics", "1.0.9"), |
| 80 | // Resource overhaul |
Dariusz Niemczyk | ba0fd86 | 2021-06-13 23:45:56 +0200 | [diff] [blame] | 81 | mod("rso-mod", "6.2.6"), |
| 82 | // mciancia |
| 83 | mod("Warehousing", "0.5.2"), |
| 84 | mod("AbandonedRuins", "1.1.4"), |
| 85 | mod("Factorissimo2", "2.5.2"), |
Dariusz Niemczyk | b3799c8 | 2021-06-12 23:02:58 +0200 | [diff] [blame] | 86 | ], |
| 87 | }, |
| 88 | }, |
Sergiusz Bazanski | cb5c321 | 2019-05-19 03:10:17 +0200 | [diff] [blame] | 89 | } |