jdev - 2022-04-11


  1. lovetox has left

  2. wurstsalat has left

  3. Sam has left

  4. Sam has joined

  5. al has joined

  6. Sam has left

  7. jgart has left

  8. jgart has joined

  9. lovetox has joined

  10. qwestion has left

  11. jgart has left

  12. jgart has joined

  13. jgart has left

  14. Maranda has left

  15. Mjolnir Archon has left

  16. jgart has joined

  17. jgart has left

  18. jgart has joined

  19. Sam has joined

  20. xnamed has left

  21. Matrix Traveler (bot) has left

  22. homebeach has left

  23. homebeach has joined

  24. Matrix Traveler (bot) has joined

  25. xnamed has joined

  26. Mjolnir Archon has joined

  27. Maranda has joined

  28. marc0s has left

  29. jgart has left

  30. marc0s has joined

  31. jgart has joined

  32. jgart has left

  33. Kev has left

  34. Kev has joined

  35. jgart has joined

  36. jgart has left

  37. jgart has joined

  38. al has left

  39. oxtyped has joined

  40. jgart has left

  41. jgart has joined

  42. jgart has left

  43. jgart has joined

  44. qwestion has joined

  45. selurvedu has joined

  46. jgart has left

  47. jgart has joined

  48. jgart has left

  49. raghavgururajan has joined

  50. xnamed has left

  51. Ingolf has joined

  52. raghavgururajan has left

  53. lovetox has left

  54. suohua has joined

  55. Yagizа has joined

  56. suohua has left

  57. marc0s has left

  58. marc0s has joined

  59. jgart has joined

  60. jgart has left

  61. jgart has joined

  62. jgart has left

  63. jgart has joined

  64. jgart has left

  65. jgart has joined

  66. jgart has left

  67. jgart has joined

  68. suohua has joined

  69. jgart has left

  70. SouL has joined

  71. suohua has left

  72. suohua has joined

  73. marc0s has left

  74. marc0s has joined

  75. atomicwatch has left

  76. suohua has left

  77. suohua has joined

  78. lovetox has joined

  79. goffi has joined

  80. marc0s has left

  81. marc0s has joined

  82. suohua has left

  83. msavoritias has joined

  84. msavoritias has left

  85. msavoritias has joined

  86. suohua has joined

  87. pasdesushi has joined

  88. emus has joined

  89. atomicwatch has joined

  90. COM8 has joined

  91. COM8 has left

  92. suohua has left

  93. wurstsalat has joined

  94. antranigv has joined

  95. Laura has joined

  96. antranigv has left

  97. Apollo has joined

  98. Apollo has left

  99. antranigv has joined

  100. marc has joined

  101. Ingolf has left

  102. suohua has joined

  103. atomicwatch has left

  104. atomicwatch has joined

  105. Laura has left

  106. marc has left

  107. debacle has joined

  108. lovetox has left

  109. Ingolf has joined

  110. larma has joined

  111. pulkomandy has left

  112. nephele has joined

  113. marc has joined

  114. nephele has left

  115. nephele has joined

  116. suohua has left

  117. nephele has left

  118. lovetox has joined

  119. marc has left

  120. marc has joined

  121. wop001@no-bullchat.net has joined

  122. goffi has left

  123. marc has left

  124. norayr has left

  125. atomicwatch has left

  126. atomicwatch has joined

  127. Matrix Traveler (bot) has left

  128. homebeach has left

  129. homebeach has joined

  130. Matrix Traveler (bot) has joined

  131. debacle has left

  132. wop001@no-bullchat.net has left

  133. Apollo has joined

  134. marc has joined

  135. qwestion has left

  136. debacle has joined

  137. atomicwatch has left

  138. atomicwatch has joined

  139. qwestion has joined

  140. nephele has joined

  141. debacle has left

  142. qwestion has left

  143. nephele has left

  144. debacle has joined

  145. emus has left

  146. antranigv has left

  147. antranigv has joined

  148. suohua has joined

  149. antranigv has left

  150. emus has joined

  151. Sam has left

  152. Sam has joined

  153. wop001@no-bullchat.net has joined

  154. PapaTutuWawa has joined

  155. Sam has left

  156. Apollo has left

  157. Sam has joined

  158. antranigv has joined

  159. debacle has left

  160. kikuchiyo has left

  161. kikuchiyo has joined

  162. Sam has left

  163. abdullahi has left

  164. antranigv has left

  165. antranigv has joined

  166. kfv has left

  167. kfv has joined

  168. Link Mauve has left

  169. nephele has joined

  170. nephele has left

  171. nephele has joined

  172. xnamed has joined

  173. Yagizа has left

  174. Yagizа has joined

  175. larma has left

  176. kikuchiyo has left

  177. mh has left

  178. mh has joined

  179. nephele has left

  180. nephele has joined

  181. nephele has left

  182. nephele has joined

  183. nephele has left

  184. nephele has joined

  185. wop001@no-bullchat.net has left

  186. antranigv has left

  187. Laura has joined

  188. nephele has left

  189. inky has left

  190. inky has joined

  191. kikuchiyo has joined

  192. antranigv has joined

  193. antranigv has left

  194. oxtyped has left

  195. oxtyped has joined

  196. oxtyped has left

  197. oxtyped has joined

  198. marc has left

  199. marc has joined

  200. dcsc has joined

  201. xnamed has left

  202. dcsc

    dss

  203. dcsc has left

  204. inky has left

  205. Apollo has joined

  206. Link Mauve has joined

  207. Link Mauve has left

  208. inky has joined

  209. Sam has joined

  210. Link Mauve has joined

  211. antranigv has joined

  212. Sam has left

  213. suohua has left

  214. rafasaurus has left

  215. Apollo has left

  216. Sam has joined

  217. oxtyped has left

  218. xnamed has joined

  219. Sam has left

  220. Sam has joined

  221. Sam has left

  222. Sam has joined

  223. kikuchiyo has left

  224. Wojtek has joined

  225. marc0s has left

  226. marc0s has joined

  227. Sam has left

  228. wop001@no-bullchat.net has joined

  229. PapaTutuWawa has left

  230. Sam has joined

  231. wop001@no-bullchat.net has left

  232. marc0s has left

  233. marc0s has joined

  234. goffi has joined

  235. wop001@no-bullchat.net has joined

  236. atomicwatch has left

  237. atomicwatch has joined

  238. nephele has joined

  239. nephele has left

  240. nephele has joined

  241. Apollo has joined

  242. xnamed has left

  243. larma has joined

  244. nephele has left

  245. emus has left

  246. emus has joined

  247. nephele has joined

  248. nephele has left

  249. nephele has joined

  250. Sam has left

  251. nephele has left

  252. nephele has joined

  253. wop001@no-bullchat.net has left

  254. Sam has joined

  255. antranigv has left

  256. nephele has left

  257. nephele has joined

  258. Ingolf has left

  259. nephele has left

  260. nephele has joined

  261. antranigv has joined

  262. nephele has left

  263. nephele has joined

  264. nephele has left

  265. abdullahi has joined

  266. nephele has joined

  267. nephele has left

  268. nephele has joined

  269. nephele has left

  270. nephele has joined

  271. xnamed has joined

  272. nephele has left

  273. nephele has joined

  274. antranigv has left

  275. antranigv has joined

  276. Laura has left

  277. Apollo has left

  278. thomaslewis has joined

  279. nephele has left

  280. thomaslewis has left

  281. suohua has joined

  282. rafasaurus has joined

  283. Ingolf has joined

  284. nephele has joined

  285. nephele has left

  286. Matrix Traveler (bot) has left

  287. homebeach has left

  288. homebeach has joined

  289. Matrix Traveler (bot) has joined

  290. antranigv has left

  291. jgart has joined

  292. oxtyped has joined

  293. jgart has left

  294. jgart has joined

  295. jgart has left

  296. jgart has joined

  297. jgart has left

  298. jgart has joined

  299. antranigv has joined

  300. Matrix Traveler (bot) has left

  301. homebeach has left

  302. homebeach has joined

  303. Matrix Traveler (bot) has joined

  304. oxtyped has left

  305. thomaslewis has joined

  306. PapaTutuWawa has joined

  307. thomaslewis has left

  308. thomaslewis has joined

  309. thomaslewis has left

  310. nephele has joined

  311. Ingolf has left

  312. xnamed has left

  313. junaid has joined

  314. antranigv has left

  315. antranigv has joined

  316. nephele has left

  317. thomaslewis has joined

  318. thomaslewis has left

  319. kfv has left

  320. Sam has left

  321. Sam has joined

  322. COM8 has joined

  323. COM8 has left

  324. SouL has left

  325. Ingolf has joined

  326. kfv has joined

  327. atomicwatch has left

  328. kikuchiyo has joined

  329. Ingolf has left

  330. wop001@no-bullchat.net has joined

  331. SouL has joined

  332. suohua has left

  333. wop001@no-bullchat.net has left

  334. kikuchiyo has left

  335. nephele has joined

  336. kikuchiyo has joined

  337. wop001@no-bullchat.net has joined

  338. suohua has joined

  339. pulkomandy has joined

  340. Ingolf has joined

  341. wop001@no-bullchat.net has left

  342. qwestion has joined

  343. suohua has left

  344. atomicwatch has joined

  345. raghavgururajan has joined

  346. atomicwatch has left

  347. jgart has left

  348. atomicwatch has joined

  349. jgart has joined

  350. jgart has left

  351. jgart has joined

  352. nephele has left

  353. jgart has left

  354. jgart has joined

  355. Laura has joined

  356. jgart has left

  357. jgart has joined

  358. jgart has left

  359. jgart has joined

  360. jgart has left

  361. jgart has joined

  362. jgart has left

  363. jgart has joined

  364. jgart has left

  365. jgart has joined

  366. jgart has left

  367. jgart has joined

  368. qwestion has left

  369. kfv has left

  370. syrupthinker has joined

  371. kfv has joined

  372. antranigv has left

  373. antranigv has joined

  374. jgart has left

  375. Laura has left

  376. lovetox has left

  377. PapaTutuWawa has left

  378. qwestion has joined

  379. al has joined

  380. Ingolf has left

  381. lovetox has joined

  382. qy has left

  383. qy has joined

  384. qy has left

  385. qy has joined

  386. qy has left

  387. qy has joined

  388. goffi has left

  389. larma has left

  390. Laura has joined

  391. lovetox has left

  392. selurvedu has left

  393. qy has left

  394. qy has joined

  395. Laura has left

  396. Sam has left

  397. Sam has joined

  398. qy has left

  399. qy has joined

  400. qwestion has left

  401. Laura has joined

  402. jgart has joined

  403. lovetox has joined

  404. A has joined

  405. goffi has joined

  406. A has left

  407. larma has joined

  408. Laura has left

  409. Laura has joined

  410. Ingolf has joined

  411. marc has left

  412. marc has joined

  413. goffi has left

  414. xnamed has joined

  415. marc has left

  416. marc has joined

  417. Beherit has joined

  418. debacle has joined

  419. emus has left

  420. emus has joined

  421. lovetox

    can anybody give me a clue, what i need to google to find out how people deploy their webapps to production?

  422. Zash

    "how to become potato farmer"

  423. lovetox

    as it seems "How to deploy to production" does yield a million articles not one of them going into detail how the code gets transfered to the server

  424. Zash

    The standard IT answer applies, "It Depends™"

  425. lovetox

    like my ideas are - have cron job the does git pull every minute - triggering a webhook that does then trigger some script on the server

  426. lovetox

    but i dont want to write that webhook myself so ..

  427. Zash

    Like, on what kind of stack it is. Stack html pages? Just copy over with some file transfer mechanism. More complex? More "it depends"

  428. lovetox

    - sshing into the server and triggering a script there, comes also to mind

  429. Zash

    Oh, so you want a thing that makes a docker container in a docker container and triggers a docker container manager manger to docker the docker docker into production docker? Well then

  430. lovetox

    Zash i need to execute a script on the server

  431. lovetox

    i simply want my CI call something that triggers a script on the server

  432. Zash

    `@hourly cd /path/to/app; docker-compose up -d` in a cronjob?

  433. al has left

  434. lovetox

    yes as i said that one idea, but sounds not like a good idea

  435. Zash

    > does yield a million articles because there are probably more methods invented than there are IT people

  436. marc has left

  437. lovetox

    ok Zash, lets start with how you do it with prosody website :)

  438. Zash

    I've been wanting to make a thing that runs things based on hooks (web- or xmpp-/pubsub-) but I've yet to NIH that

  439. Zash

    The prosody website doesn't involve CI

  440. marc has joined

  441. Zash

    It's a hook in the repo that prods a port with netcat which starts a systemd job that runs `hg pull -u && make` in /var/www

  442. Zash

    so, `netcat localhost someport` -> systemd socket activation -> build the site.service, a one-off job that does that

  443. Zash

    Elsewhere I just a post-receive hook that runs `make` when you push to the repo

  444. Zash

    So many variants!

  445. Zash

    The socket activation thing enables running the build as a different user than the vcs repo user

  446. PapaTutuWawa has joined

  447. Zash

    So I guess architectually, that's pretty close to a webhook thing that runs commands

  448. Zash

    except without the web, which is nice

  449. jonas’

    why netcat localhost and not socat UNIX:foobar, to avoid this being at the mercy of a iptables rule to protect from external abuse?

  450. Zash

    do I look like I want to figure out how to systemd socket activation UNIX sockets?

  451. jonas’

    (also, unix sockets are *even less* web than bare TCP)

  452. jonas’

    Zash, just use SocketStream=/path/to/somewhere instead of a port number?

  453. Zash

    It listens on ::1 anyway, good luck reaching it

  454. jonas’

    ah, ListenStream= it is

  455. jonas’

    > If the address starts with a slash ("/"), it is read as file system socket in the AF_UNIX socket family.

  456. jonas’

    and then you get the added benefits of posix permission control

  457. Zash

    I've mentally categorized the whole thing under "it works, don't """fix""" it"

  458. marc has left

  459. lovetox

    ok i think i write my own webhook thingy

  460. lovetox

    seems to be a 30 line flask script

  461. Zash

    and now you have a million lines of python running with _what_ privileges?

  462. Zash

    the socket activation thing means only systemd, which is already there, is involved

  463. marc has joined

  464. atomicwatch has left

  465. lovetox

    sorry i dont know a single thing about all the things you have written

  466. lovetox

    so your method is probably better, but im not inclined to read me into linux system socket systemd things

  467. lovetox

    when i can write 30 lines of python

  468. jonas’

    it's probably fewer lines of systemd unit files.

  469. Zash

    depends on what you value

  470. jonas’

    but eh, you do you

  471. Zash

    I tried to minimize extra stuff running while sending signals across privilege barriers and arrived at that

  472. jgart has left

  473. jgart has joined

  474. lovetox

    its a web api, and it supports a single get request

  475. Zash

    I like the pages.sr.ht method, where the CI job uploads a tarball of the website somewhere with curl

  476. lovetox

    if that is suddenly insecure, i think we have big problems :)

  477. Zash

    In the ENTERPRISE world it'll probably be webhooks triggering kubernetes something something I wanna live in the woods and grow potatoes between the firs

  478. nephele has joined

  479. nephele

    I love docker, it creates jobs out of nothing ;)

  480. nephele has left

  481. nephele has joined

  482. syrupthinker has left

  483. abdullahi has left

  484. xecks has left

  485. xecks has joined

  486. antranigv has left

  487. syrupthinker has joined

  488. nephele has left

  489. Wojtek has left

  490. nephele has joined

  491. nephele has left

  492. nephele has joined

  493. nephele has left

  494. Yagizа has left

  495. selurvedu has joined

  496. xnamed has left

  497. msavoritias has left

  498. xnamed has joined

  499. pasdesushi has left

  500. pasdesushi has joined

  501. antranigv has joined

  502. nephele has joined

  503. Millesimus has left

  504. nephele has left

  505. antranigv has left

  506. Millesimus has joined

  507. junaid has left

  508. antranigv has joined

  509. xnamed has left

  510. Alex has left

  511. xnamed has joined

  512. antranigv has left

  513. PapaTutuWawa has left

  514. rq77 has joined

  515. marc0s has left

  516. marc0s has joined

  517. Alex has joined

  518. Syndace has left

  519. xnamed has left

  520. larma has left

  521. abdullahi has joined

  522. Syndace has joined

  523. marc0s has left

  524. Beherit has left

  525. syrupthinker has left

  526. syrupthinker has joined

  527. marc0s has joined

  528. rq77 has left

  529. syrupthinker has left

  530. suohua has joined

  531. suohua has left

  532. suohua has joined

  533. norayr has joined

  534. antranigv has joined

  535. pasdesushi has left

  536. marc has left

  537. wurstsalat has left

  538. suohua has left

  539. SouL has left

  540. sonny has left

  541. jgart has left

  542. jgart has joined

  543. jgart has left

  544. emus has left

  545. jgart has joined

  546. jgart has left