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