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