Skip to Content

Contributors

[odoo16 ce] deploy doodba instance on portainer

Hi, 

few days ago I managed to set up a basic doodba instance. We're running this as "prod env" but we're actually just testing it at the moment. The instance is running well, but I've been asked to run this configuration from Portainer if possible.

I'm trying to make some adaptations in order to make it work on portainer, I merged the `common.yaml` and `prod.yaml` in a single compose, added the result in the stack web editor, with some additional adjustments. However I am not sure how to solve this. 

```
build:
      context: ./odoo
      args:
        DB_VERSION: "15"
        ODOO_VERSION: "16.0"
        UID: "${UID:-1000}"
        GID: "${GID:-1000}"
```

when I try to deploy it says that "build" is an unsupported option. Is there any way to adapt this? 
I would also like to ask if someone has to link an example on github or any other platform, I havent find any yet.

Thank you
--Francesco



by Francesco Ballerini - 10:01 - 17 Nov 2024

Follow-Ups

  • Re: [odoo16 ce] deploy doodba instance on portainer
    Thank you Enric, I didn't customize the image yet as I'm still exploring the Doodba environment in my spare time and thus progressing gradually with this task :-) 
    I’ll definitely keep your suggestion in mind. Once again, thank you all for the support.

    Cheers

    --Francesco

    Il giorno lun 18 nov 2024 alle ore 00:02 Enric Tobella Alomar <notifications@odoo-community.org> ha scritto:
    On the creation of the doodba, you were able to set where to store the image.

    Just use copier update to reset the values and set it to a registry of your own choice.

    Kind regards,

    El dom, 17 nov 2024 a las 23:22, Francesco Ballerini (<notifications@odoo-community.org>) escribió:
    Oh.. right, after I read your answer I feel like I made a dumb question, well, it is neither the first nor the last time ; ) 

    As a developer who is starting to explore the world of deployment, I find your advice very helpful, thanks Graeme. 

    --Francesco

    Il giorno dom 17 nov 2024 alle ore 22:27 Graeme Gellatly <notifications@odoo-community.org> ha scritto:
    It makes no sense to build in a production compose file (note, this is not to say Doodba is wrong, as it needs instructions to make a production build, but that in a real prod environment you wouldn't). You are just pulling an image. Provided you link to your already built image you don't need any of that. Your CI will have the build instructions, tag the image etc, and then you are just pulling it.

    On Mon, Nov 18, 2024 at 10:02 AM Francesco Ballerini <notifications@odoo-community.org> wrote:
    Hi, 

    few days ago I managed to set up a basic doodba instance. We're running this as "prod env" but we're actually just testing it at the moment. The instance is running well, but I've been asked to run this configuration from Portainer if possible.

    I'm trying to make some adaptations in order to make it work on portainer, I merged the `common.yaml` and `prod.yaml` in a single compose, added the result in the stack web editor, with some additional adjustments. However I am not sure how to solve this. 

    ```
    build:
          context: ./odoo
          args:
            DB_VERSION: "15"
            ODOO_VERSION: "16.0"
            UID: "${UID:-1000}"
            GID: "${GID:-1000}"
    ```

    when I try to deploy it says that "build" is an unsupported option. Is there any way to adapt this? 
    I would also like to ask if someone has to link an example on github or any other platform, I havent find any yet.

    Thank you
    --Francesco


    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --
    Enric Tobella Alomar
    CEO & Founder

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Francesco Ballerini - 09:46 - 21 Nov 2024
  • Re: [odoo16 ce] deploy doodba instance on portainer
    On the creation of the doodba, you were able to set where to store the image.

    Just use copier update to reset the values and set it to a registry of your own choice.

    Kind regards,

    El dom, 17 nov 2024 a las 23:22, Francesco Ballerini (<notifications@odoo-community.org>) escribió:
    Oh.. right, after I read your answer I feel like I made a dumb question, well, it is neither the first nor the last time ; ) 

    As a developer who is starting to explore the world of deployment, I find your advice very helpful, thanks Graeme. 

    --Francesco

    Il giorno dom 17 nov 2024 alle ore 22:27 Graeme Gellatly <notifications@odoo-community.org> ha scritto:
    It makes no sense to build in a production compose file (note, this is not to say Doodba is wrong, as it needs instructions to make a production build, but that in a real prod environment you wouldn't). You are just pulling an image. Provided you link to your already built image you don't need any of that. Your CI will have the build instructions, tag the image etc, and then you are just pulling it.

    On Mon, Nov 18, 2024 at 10:02 AM Francesco Ballerini <notifications@odoo-community.org> wrote:
    Hi, 

    few days ago I managed to set up a basic doodba instance. We're running this as "prod env" but we're actually just testing it at the moment. The instance is running well, but I've been asked to run this configuration from Portainer if possible.

    I'm trying to make some adaptations in order to make it work on portainer, I merged the `common.yaml` and `prod.yaml` in a single compose, added the result in the stack web editor, with some additional adjustments. However I am not sure how to solve this. 

    ```
    build:
          context: ./odoo
          args:
            DB_VERSION: "15"
            ODOO_VERSION: "16.0"
            UID: "${UID:-1000}"
            GID: "${GID:-1000}"
    ```

    when I try to deploy it says that "build" is an unsupported option. Is there any way to adapt this? 
    I would also like to ask if someone has to link an example on github or any other platform, I havent find any yet.

    Thank you
    --Francesco


    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --
    Enric Tobella Alomar
    CEO & Founder


    by Enric Tobella Alomar - 12:01 - 18 Nov 2024
  • Re: [odoo16 ce] deploy doodba instance on portainer
    Oh.. right, after I read your answer I feel like I made a dumb question, well, it is neither the first nor the last time ; ) 

    As a developer who is starting to explore the world of deployment, I find your advice very helpful, thanks Graeme. 

    --Francesco

    Il giorno dom 17 nov 2024 alle ore 22:27 Graeme Gellatly <notifications@odoo-community.org> ha scritto:
    It makes no sense to build in a production compose file (note, this is not to say Doodba is wrong, as it needs instructions to make a production build, but that in a real prod environment you wouldn't). You are just pulling an image. Provided you link to your already built image you don't need any of that. Your CI will have the build instructions, tag the image etc, and then you are just pulling it.

    On Mon, Nov 18, 2024 at 10:02 AM Francesco Ballerini <notifications@odoo-community.org> wrote:
    Hi, 

    few days ago I managed to set up a basic doodba instance. We're running this as "prod env" but we're actually just testing it at the moment. The instance is running well, but I've been asked to run this configuration from Portainer if possible.

    I'm trying to make some adaptations in order to make it work on portainer, I merged the `common.yaml` and `prod.yaml` in a single compose, added the result in the stack web editor, with some additional adjustments. However I am not sure how to solve this. 

    ```
    build:
          context: ./odoo
          args:
            DB_VERSION: "15"
            ODOO_VERSION: "16.0"
            UID: "${UID:-1000}"
            GID: "${GID:-1000}"
    ```

    when I try to deploy it says that "build" is an unsupported option. Is there any way to adapt this? 
    I would also like to ask if someone has to link an example on github or any other platform, I havent find any yet.

    Thank you
    --Francesco


    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Francesco Ballerini - 11:21 - 17 Nov 2024
  • Re: [odoo16 ce] deploy doodba instance on portainer
    It makes no sense to build in a production compose file (note, this is not to say Doodba is wrong, as it needs instructions to make a production build, but that in a real prod environment you wouldn't). You are just pulling an image. Provided you link to your already built image you don't need any of that. Your CI will have the build instructions, tag the image etc, and then you are just pulling it.

    On Mon, Nov 18, 2024 at 10:02 AM Francesco Ballerini <notifications@odoo-community.org> wrote:
    Hi, 

    few days ago I managed to set up a basic doodba instance. We're running this as "prod env" but we're actually just testing it at the moment. The instance is running well, but I've been asked to run this configuration from Portainer if possible.

    I'm trying to make some adaptations in order to make it work on portainer, I merged the `common.yaml` and `prod.yaml` in a single compose, added the result in the stack web editor, with some additional adjustments. However I am not sure how to solve this. 

    ```
    build:
          context: ./odoo
          args:
            DB_VERSION: "15"
            ODOO_VERSION: "16.0"
            UID: "${UID:-1000}"
            GID: "${GID:-1000}"
    ```

    when I try to deploy it says that "build" is an unsupported option. Is there any way to adapt this? 
    I would also like to ask if someone has to link an example on github or any other platform, I havent find any yet.

    Thank you
    --Francesco


    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Graeme Gellatly - 10:26 - 17 Nov 2024