You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it reasonable to use pyinfra to build docker images as a replacement for a Dockerfile?
(I'm a new to both, so I may be missing something obvious.)
I tried the getting started example, removing my-server.net from the inventory. I also had to remove the _sudo=True line and add apt.update() into the deploy.py file.
But docker image ls doesn't show an image with that ID!
% docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
<none><none> fc3d129d459f 27 seconds ago 58.9 MB
docker.io/library/ubuntu 18.04 d1a528908992 11 months ago 58.9 MB
(I was also expecting to be able to tag the image, as I would in the first line in a Dockerfile.)
It does appear that if I run the fc3d129d459f image that it is what I'm looking for.
I'm probably missing some basic concepts, but if someone has a moment to point me in the right direction, I'd appreciate it!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it reasonable to use
pyinfra
to build docker images as a replacement for aDockerfile
?(I'm a new to both, so I may be missing something obvious.)
I tried the getting started example, removing
my-server.net
from the inventory. I also had to remove the_sudo=True
line and addapt.update()
into thedeploy.py
file.pyinfra
finishes with the line:But
docker image ls
doesn't show an image with that ID!(I was also expecting to be able to tag the image, as I would in the first line in a
Dockerfile
.)It does appear that if I run the
fc3d129d459f
image that it is what I'm looking for.I'm probably missing some basic concepts, but if someone has a moment to point me in the right direction, I'd appreciate it!
Beta Was this translation helpful? Give feedback.
All reactions