Submit

Back to the channels

#primate

  1. * jreicher joined #primate
  2. * phaleth joined #primate
  3. blue hi phaleth
  4. blue primate 0.40 will be out today, god willing :P
  5. phaleth hi blue
  6. blue hi
  7. phaleth ok, anything useful for repopack there?
  8. blue yes. almost all of it is for repopack. async schemas, collocated route pages, and a few other small things
  9. blue most of the things will allow us to reduce repetition and code in repopack
  10. blue btw, I did some speed tests yesterday on primate-web.repopack.app
  11. blue so in frankfurt the load time is 100ms, london 300ms, but it gets higher to around 1s in washington d.c. and highest is sydney, 3s
  12. blue we need to start things of regions at some point
  13. blue start thinking*
  14. phaleth nice
  15. phaleth heh, yeah, thinking big
  16. phaleth freebsd should make things faster, the interwebz will be like "oh, I communicate with a freebsd server, huh, I better go fast"
  17. blue exactly
  18. blue no more this linux nonsense
  19. phaleth freebsd images seem to be quite large
  20. blue yeah, they pack a lot of stuff inside
  21. blue superarch is supposed to reduce that
  22. phaleth yeah, luckily image layers are re-usable
  23. blue true
  24. phaleth yo big error
  25. phaleth blue: I've tried to deploy the repopack site on freebsd https://upaste.de/raw/9ib
  26. phaleth postgres also looks problematic
  27. * nevet joined #primate
  28. * blue!~blue@user/blue changed the topic to: https://primate.run | this channel is mirrored to the Primate discord, channel #irc
  29. blue phaleth: wow
  30. phaleth heh
  31. phaleth gotta try linux containers
  32. blue heh
  33. blue anyway, I'm preparing the 0.40 release
  34. blue it's almost done, then I can update RP
  35. phaleth ok
  36. phaleth I'm building podman from source in a VBox VM, it's taking forever
  37. blue why are you doing that?
  38. phaleth just to see what I get
  39. blue k
  40. phaleth the pkg for podman on freebsd is little bit dated, but not too bad
  41. blue we'll fix that in superarch
  42. blue no more dated nonsense, just rollin' all the way to the bank
  43. blue oh man we really need to move the primate website to repopack finally. doing it manually kills me
  44. blue this is the first thing I'm gonna do when RP goes beta
  45. blue I just wanna hit a button, or better, do it automatically on commits
  46. phaleth it's like 3 commands?
  47. blue yes but it's 3 commands I have to remember and/or write somewhere
  48. blue I don't do it that often so it's just opening a new tab in tmux and just hitting the up arrow
  49. blue probably should put it into a script and be done with it
  50. blue oh great, it's not in the history anymore :(
  51. blue I guess it's time to look at the irc logs
  52. phaleth heh, no
  53. blue ah, found it
  54. phaleth curl --silent -X POST \
  55. phaleth "http://127.0.0.1:8080/v1.0/libpod/local/build?t=localhost/primate-site-runtime&localcontextdir=/opt/podman/primate-site/runtime&nocache=true"
  56. phaleth sudo podman stop 000000-primate-site-runtime && sudo podman rm 000000-primate-site-runtime
  57. phaleth sudo podman run --detach --name=000000-primate-site-runtime --runtime=runsc --network=000000-primate-site \
  58. phaleth --publish=127.0.0.1:24430:6161 --cpus 1 --oom-score-adj -1000 --restart=always localhost/primate-site-runtime
  59. blue thanks
  60. phaleth ok, it started building golang from source, when is it gonna build podman
  61. blue next week
  62. phaleth prolly never
  63. blue yeah, I think I messed up something
  64. phaleth let me check
  65. blue I ran the commands you provided, now it's 503 service unavailable
  66. phaleth ok
  67. blue fyi the script is website.sh, I put it under /tmp/website.sh for reference
  68. phaleth it's a deno error
  69. blue deno error?
  70. blue oh
  71. blue I did remove something from the primate config
  72. blue nvm
  73. blue I'll fix it
  74. phaleth ok, so primate website is configured to listen on localhost instead of 0.0.0.0
  75. blue the problem is, our manual deploy doesn't inject HOST=0.0.0.0
  76. phaleth yeah
  77. blue repopack does that, maybe I'll just see how it does that and see if I can backport it
  78. phaleth repopack website has env file
  79. blue no no
  80. blue I mean
  81. blue when repopack deploys stuff, it injects HOST=0.0.0.0
  82. blue so on repopack, when I deploy the primate web, it just works
  83. blue I removed that code from primate website too early
  84. blue I'll put it back, the explicit { http: { host: "0.0.0.0" } }, for now
  85. blue done, redeploying wiht website.sh
  86. phaleth no hurry https://primate.run/
  87. phaleth I deployed old image
  88. blue https://primate.run/blog/primate-040
  89. blue here we go
  90. skillnews 12Primate 0.40: Route pages, store enums, async schemas and events - https://primate.run/blog/primate-040
  91. blue dreamreal: ^
  92. bot [Primate Blog] Primate 0.40: Route pages, store enums, async schemas and events - https://primate.run/blog/primate-040
  93. phaleth looks like I can combine freebsd and linux images in one Containerfile
  94. blue LOL
  95. phaleth node gets stuck in infinite loop when container is running from linux image
  96. phaleth same for bun
  97. phaleth ok, so the thing is that repopack website only runs on bun
  98. phaleth the huge error I posted earlier was node specific, not freebsd specific
  99. blue oh ok, interesting
  100. blue but yeah, repopack itself runs on bun currently
  101. phaleth I've redeployed the repopack website to the rust based bun and it seems to work fine
  102. phaleth the date on the blogpost for primate 0.40 should be today's 12th July
  103. * jreicher joined #primate
  104. * skillbot1 joined #primate
  105. * skillbot1 joined #primate
  106. * skillnews joined #primate
  107. * skillbot joined #primate

Search posts