19 Jan 2021 |
justdave | seems like the localconfig file is something that you would want to persist, too | 23:43:26 |
CyberShadow | For development it's also common to bind-mount the source directory into the container, instead of copying the source code during the build, which is what this does currently. | 23:43:41 |
justdave | I'm trying to figure out what the purpose is of having "FROM perl:5.32-slim" in there twice, without any other FROM in between | 23:47:12 |
CyberShadow | It's the staged build | 23:47:36 |
CyberShadow | "FROM perl:5.32-slim AS builder" means everything until the next "FROM" goes into a container called internally "builder" | 23:47:52 |
CyberShadow | and then you can do "COPY --from=builder" to just copy the result of the build, instead of carrying around all the build dependencies | 23:48:16 |
justdave | oh, so the second FROM without the AS builder on it is targeting the result image instead | 23:48:53 |
justdave | so the AS is conceptually a TO? :) | 23:49:21 |
CyberShadow | Yeah :) | 23:50:59 |
CyberShadow | (But "TO" makes more sense in a mutability-oriented way, whereas Docker is more like a functional thing) | 23:51:38 |
20 Jan 2021 |
justdave | how do I identify which volumes those are in docker's volume list? | 00:01:29 |
justdave | all the volumes are just hex strings it looks like | 00:01:51 |
CyberShadow | "docker inspect" will have that info | 00:03:02 |
CyberShadow | docker inspect b997c5855221 | jq '.[].Mounts' | 00:03:43 |
CyberShadow | Maybe there's a command more suitable for humans | 00:04:02 |
justdave | which object do I point that at, the container? | 00:07:29 |
CyberShadow | Yes, from docker ps | 00:07:52 |
justdave | gotta pick up my daughter from work, back in a bit | 00:15:34 |
| jfearn left the room. | 10:56:58 |
| @freenode_user4839:matrix.org joined the room. | 14:23:50 |
| @freenode_user4839:matrix.org left the room. | 14:31:15 |
| Sasi Olin changed their display name from LCP to Sasi Olin. | 15:29:12 |
| @freenode_JoBbZ:matrix.org joined the room. | 16:01:15 |
| @freenode_JoBbZ:matrix.org left the room. | 16:01:15 |
| jhedlund left the room. | 16:09:05 |
| jhedlund joined the room. | 16:21:55 |
| JoBbZ_ joined the room. | 20:40:27 |
| jfearn joined the room. | 21:42:04 |
| @freenode_JoBbZ:matrix.org joined the room. | 23:14:07 |
| @freenode_JoBbZ:matrix.org left the room. | 23:14:07 |