Submit

Back to the channels

#primate

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

Search posts