I got this one ... look for something in the coming weeks
On Mon, 2021-02-01 at 13:09 -0500, Scott McCarty wrote:
Bobes,
I found the upstream build project. It's called
Shipwright: https://github.com/shipwright-io/build
This might be a good interface to support builds on Podman. Not sure
yet.
Best Regards
Scott M
On Mon, Feb 1, 2021 at 1:05 PM Scott McCarty <smccarty(a)redhat.com>
wrote:
> Bobes,
> This is an extremely interesting use case, and not one I was
> familiar with. Could you share an example docker-compose file that
> you would like to convert to Kube YAML? I know you've made a
> recommendation on the Kube YAML you'd like to see, but that feels
> like specifying an interface without completely verifying the use
> case.
>
> If we could see the source/origin docker-compose YAML, that would
> really help the engineering team validate the design of the
> interface in the Kube YAML. AFAIK, there is not native Build
> directive in Kube, so we would need something like BuildConfig in
> OpenShift.
>
> There's also a new upstream project that Red Hat is sponsoring
> which be Kubernetes neutral (aka not OpenShift only). That might be
> something we could target as well, but I'll need to go chase down
> the project upstream. A quick google search did not turn anything
> up.
>
> Best Regards
> Scott M
>
> On Fri, Jan 29, 2021 at 3:01 PM <bobtruhla(a)seznam.cz> wrote:
> > Hi Everybody,
> >
> > I'm switching from Docker to Podman on my VPS and I'm trying to
> > convert all docker-compose to Pod Yaml.
> >
> > I know that Podman is supposed to use for `podman play kube` only
> > Yaml generated by `podman generate kube` and not user generated
> > Yaml. But it works just fine like for example demonstrated here:
> >
https://www.redhat.com/sysadmin/compose-podman-pods
> >
> > I found project `Kompose` and I know that Podman 3.0 is supposed
> > to support actual docker-compose but it's very clear to me that
> > Pod Yaml is the right way to go.
> >
> > The only thing I can't reproduce in Pod Yaml is `build: .` like
> > this:
> >
> > --------------------------
> > version: '3'
> > services:
> > web:
> > build: .
> > ...
> > db:
> > image: mariadb
> > ...
> > --------------------------
> >
> > In other words this will not work:
> >
> > --------------------------
> > apiVersion: v1
> > kind: Pod
> > metadata:
> > labels:
> > app: my-pod
> > name: my-pod
> > status: {}
> > spec:
> > restartPolicy: Always
> > containers:
> > - name: web
> > build: .
> > ...
> > - name: db
> > image: mariadb
> > ...
> > --------------------------
> >
> > So the only way is to create `Containerfile`, `podman build .`
> > and then define Yaml like this:
> >
> > --------------------------
> > apiVersion: v1
> > kind: Pod
> > metadata:
> > labels:
> > app: my-pod
> > name: my-pod
> > status: {}
> > spec:
> > restartPolicy: Always
> > containers:
> > - name: web
> > image:
> > sha256:307e5ce57d57472b6392f5027e0aa69c1090cd312e3429afdbd950d0d1
> > fbae15
> > ...
> > - name: db
> > image: mariadb
> > ...
> > --------------------------
> >
> > Could you please tell me is there a way how to build image from
> > Pod Yaml like you can do with docker-compose?
> >
> > Thank you.
> >
> > Kind regards,
> >
> > Bobes T.
> > _______________________________________________
> > Podman mailing list -- podman(a)lists.podman.io
> > To unsubscribe send an email to podman-leave(a)lists.podman.io
>
>
> --
> --
> The Delicate Art of Product Management with Open Source:
>
http://crunchtools.com/open-source-in-business-2020/
> --
> Scott McCarty
> Product Management - Containers, Red Hat Enterprise Linux &
> OpenShift
> Email: smccarty(a)redhat.com
> Phone: 312-660-3535
> Cell: 330-807-1043
> Web:
http://crunchtools.com
_______________________________________________
Podman mailing list -- podman(a)lists.podman.io
To unsubscribe send an email to podman-leave(a)lists.podman.io