Closed marcvanandel closed 1 year ago
Wat bedoel je met "... but building the images is not available"? Bouwt podman-compose
bij jou niet automatisch de images die die nog niet beschikbaar heeft? Heb het zelf net getest en dat werkte namelijk gewoon 🤔
$ podman-compose --version
['podman', '--version', '']
using podman version: 3.4.4
podman-composer version 1.0.3
podman --version
podman version 3.4.4
Als ik podman-compose up
doe, is de image eerst nog niet beschikbaar, maar die gaat die bij mij dus automatisch builden.
['podman', '--version', '']
using podman version: 3.4.4
** excluding: set()
['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'solid-quest_koopovereenkomst-app']
Error: error inspecting object: solid-quest_koopovereenkomst-app: image not known
podman build -t solid-quest_koopovereenkomst-app -f koopovereenkomst-v3-simple/Dockerfile koopovereenkomst-v3-simple
[1/3] STEP 1/5: FROM node:16-alpine AS deps
[1/3] STEP 2/5: RUN apk add --no-cache libc6-compat
--> Using cache 8d21cd13c7debbff53a0b2bf783e654a5fd7b2faee4601b5a4fa3702f36f816c
--> 8d21cd13c7d
[1/3] STEP 3/5: WORKDIR /app
--> Using cache bf8aa23b71df8a7891f565b0d75021e483d45851a505a2fbc040bc0f086b03cd
[...]
Getest op WSL 2, Ubuntu 22.04
Interessant ... nog 's even verder testen en zoeken dan ...
Ah ... als het image al bestaat, dan wordt er niet (altijd?) een nieuw image gebouwd. Daarvoor is de expliciete stap docker compose build
nodig ... maar die wordt door podman-compose
niet goed ondersteund. Vandaar een apart build script ... voor podman 😏
podman system prune
to clean up all pods + podman rmi --all
to clean up all images ... so new ones will be buildIs het noodzakelijk, deze scripts? Nee. Is het gemakkelijk(er)? JA! 😄
Improved this PR and last comments is still valid 😄 (description of the PR is updated to the improved target)
(sorry to proceed, @kad-busses , but during your holidays I would like to use it already 😁 New PR with a delete script commit is always open for suggestion 😆 )
When developing the KoekApp the background services need to be running ... which is quite a long command. This PR enables an easier way to remember this command and start all services. It also supports
podman
besidesdocker
(andpodman-compose
besidesdocker compose
).-b
triggers the 'build flag' for building the images before running the services+x
committed so executable by default