Community mailing list archives

community@mail.odoo.com

Re: Howto upgrade database in Docker

by
Mario Gielissen | Openworx
- 10/25/2016 14:56:04
I found some helpful info (below): 
https://hub.docker.com/r/adhoc/odoo-adhoc/


Op 24-10-2016 om 17:42 schreef robert rottermann:
> On 24.10.2016 17:15, Mario Gielissen wrote:> Updating odoo docker image does not update the database itself, so 
> we > need using the -u option afterwards.
> I *believe* (but did not yet try) , all options that you pass to docker
> start are passed to the containers startup script:
> #!/bin/bash
>
> set -e
>
> # set odoo database host, port, user and password
> : ${PGHOST:=$DB_PORT_5432_TCP_ADDR}
> : ${PGPORT:=$DB_PORT_5432_TCP_PORT}
> : ${PGUSER:=${DB_ENV_POSTGRES_USER:='postgres'}}
> : ${PGPASSWORD:=$DB_ENV_POSTGRES_PASSWORD}
> export PGHOST PGPORT PGUSER PGPASSWORD
>
> case "$1" in
>           --)
>                   shift
>                   exec openerp-server "$@"
>                   ;;
>           -*)
>                   exec openerp-server "$@"
>                   ;;
>           *)
>                   exec "$@"
> esac
>
> exit 1
>
> robert> > > Op 24-10-2016 om 16:59 schreef Dominique Chabord:> 2016-10-24 
> 16:01 GMT+02:00 robert rottermann <robert@redcor.ch>:> > > > On 
> 24.10.2016 14:42, Mario Gielissen wrote: > > Odoo docker > image > can 
> be upgraded with 'docker run --volumes-from old-odoo > -p > > 
> 8070:8069 --name new-odoo --link db:db -t odoo', but howto deal with > 
> > > database upgrade? > > since the databse is not in the docker odoo 
> > > container but in the one called > db, there is nothing to upgrade 
> > > > I thought the question was about the -u option of odoo. Correct 
> ? > > > _______________________________________________ > 
> Mailing-List: > https://www.odoo.com/groups/community-59 > Post to: > 
> mailto:community@mail.odoo.com > Unsubscribe: > 
> https://www.odoo.com/groups?unsubscribe > > > 
> _______________________________________________ > Mailing-List: 
> https://www.odoo.com/groups/community-59 > Post to: 
> mailto:community@mail.odoo.com > Unsubscribe: 
> https://www.odoo.com/groups?unsubscribe >
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>