Re: [Dhis2-users] [Dhis2-devs] Installation of dhis2 on docker

2018-09-05 Thread Alex Tumwesigye
Hello Gerald,

Look at the exec command
https://docs.docker.com/engine/reference/commandline/exec/#examples
e.g

docker exec -it container_name "psql -U postgres -d template1 -c 'drop
database dhis;create database dhis with owner dhis'"docker exec -it
container_name "psql -U dhis -d dhis -f dumpfile"

Alex

On Wed, Sep 5, 2018 at 10:27 AM Paulo Grácio  wrote:

> Hi Geral, with the current docker setup you can generate your own docker
> image and use that one instead of sierra-leone.
>
> All you need to do is:
>
> 1. comment this line
> https://github.com/pgracio/dhis2-docker/blob/master/database/docker-build.sh#L60
> 2. have a file named *dhis2-db.sql.gz* that contains your database dump.
> 3. run ./docker-build.sh -v 2.30 -d my-database
> 4. update docker-compose do use the nee image.
>
> give it a try.
>
>
> On Tue, Aug 28, 2018 at 12:16 PM gerald thomas 
> wrote:
>
>> Hi all,
>> I got it docker using postgresql is fixed now but i need to drop the
>> current database and import another database. Please can anyone help?
>>
>> On Mon, Aug 27, 2018 at 2:55 PM gerald thomas 
>> wrote:
>>
>>> Dan,
>>> I am using my laptop which is mac pro where i had already installed
>>> docker and now i want to install an Ubuntu DHIS2 instance on it.
>>>
>>> On Mon, Aug 27, 2018 at 2:32 PM Dan Cocos  wrote:
>>>
 Hi Gerald,

 You can also try this for local dev.
 https://github.com/baosystems/dhis2-centos

 Cheers,
 Dan


 Dan Cocos
 Principal, BAO Systems
 dco...@baosystems.com | http://www.baosystems.com |  2900 K Street,
 Suite 507, Washington D.C. 20007
 


 On Aug 27, 2018, at 3:52 AM, Gerald Thomas 
 wrote:

 Dear Paulo,
 Can i only have mysql database for this instance?

 On Aug 27, 2018, at 5:58 AM, Paulo Grácio 
 wrote:

 https://github.com/pgracio/dhis2-docker

 Hasn’t been updated for a while so not sure if there is a better way.

 On 27 Aug 2018, at 00:35, gerald thomas  wrote:

 Dear all,
 I am trying to do a dhis2 instance using docker on my laptop. Please
 can anyone help with the procedures; this is my first time to do it on
 docker

 --
 Regards,

 Gerald

 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-d...@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



>>>
>>> --
>>> Regards,
>>>
>>> Gerald
>>>
>>
>>
>> --
>> Regards,
>>
>> Gerald
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>


-- 
Alex Tumwesigye

Kampala
Uganda
+256 774149 775, + 256 759 800161
Skype ID: talexie

IT Consultant (Servers, Networks and Security, Health Information Systems -
DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant


"I don't want to be anything other than what I have been - one tree hill "
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] [Dhis2-devs] Installation of dhis2 on docker

2018-09-05 Thread Paulo Grácio
Hi Geral, with the current docker setup you can generate your own docker
image and use that one instead of sierra-leone.

All you need to do is:

1. comment this line
https://github.com/pgracio/dhis2-docker/blob/master/database/docker-build.sh#L60
2. have a file named *dhis2-db.sql.gz* that contains your database dump.
3. run ./docker-build.sh -v 2.30 -d my-database
4. update docker-compose do use the nee image.

give it a try.


On Tue, Aug 28, 2018 at 12:16 PM gerald thomas 
wrote:

> Hi all,
> I got it docker using postgresql is fixed now but i need to drop the
> current database and import another database. Please can anyone help?
>
> On Mon, Aug 27, 2018 at 2:55 PM gerald thomas 
> wrote:
>
>> Dan,
>> I am using my laptop which is mac pro where i had already installed
>> docker and now i want to install an Ubuntu DHIS2 instance on it.
>>
>> On Mon, Aug 27, 2018 at 2:32 PM Dan Cocos  wrote:
>>
>>> Hi Gerald,
>>>
>>> You can also try this for local dev.
>>> https://github.com/baosystems/dhis2-centos
>>>
>>> Cheers,
>>> Dan
>>>
>>>
>>> Dan Cocos
>>> Principal, BAO Systems
>>> dco...@baosystems.com | http://www.baosystems.com |  2900 K Street,
>>> Suite 507, Washington D.C. 20007
>>> 
>>>
>>>
>>> On Aug 27, 2018, at 3:52 AM, Gerald Thomas 
>>> wrote:
>>>
>>> Dear Paulo,
>>> Can i only have mysql database for this instance?
>>>
>>> On Aug 27, 2018, at 5:58 AM, Paulo Grácio  wrote:
>>>
>>> https://github.com/pgracio/dhis2-docker
>>>
>>> Hasn’t been updated for a while so not sure if there is a better way.
>>>
>>> On 27 Aug 2018, at 00:35, gerald thomas  wrote:
>>>
>>> Dear all,
>>> I am trying to do a dhis2 instance using docker on my laptop. Please can
>>> anyone help with the procedures; this is my first time to do it on docker
>>>
>>> --
>>> Regards,
>>>
>>> Gerald
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-d...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>>
>>
>> --
>> Regards,
>>
>> Gerald
>>
>
>
> --
> Regards,
>
> Gerald
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] [Dhis2-devs] Installation of dhis2 on docker

2018-08-28 Thread gerald thomas
Hi all,
I got it docker using postgresql is fixed now but i need to drop the
current database and import another database. Please can anyone help?

On Mon, Aug 27, 2018 at 2:55 PM gerald thomas  wrote:

> Dan,
> I am using my laptop which is mac pro where i had already installed docker
> and now i want to install an Ubuntu DHIS2 instance on it.
>
> On Mon, Aug 27, 2018 at 2:32 PM Dan Cocos  wrote:
>
>> Hi Gerald,
>>
>> You can also try this for local dev.
>> https://github.com/baosystems/dhis2-centos
>>
>> Cheers,
>> Dan
>>
>>
>> Dan Cocos
>> Principal, BAO Systems
>> dco...@baosystems.com | http://www.baosystems.com |  2900 K Street,
>> Suite 507, Washington D.C. 20007
>>
>>
>> On Aug 27, 2018, at 3:52 AM, Gerald Thomas  wrote:
>>
>> Dear Paulo,
>> Can i only have mysql database for this instance?
>>
>> On Aug 27, 2018, at 5:58 AM, Paulo Grácio  wrote:
>>
>> https://github.com/pgracio/dhis2-docker
>>
>> Hasn’t been updated for a while so not sure if there is a better way.
>>
>> On 27 Aug 2018, at 00:35, gerald thomas  wrote:
>>
>> Dear all,
>> I am trying to do a dhis2 instance using docker on my laptop. Please can
>> anyone help with the procedures; this is my first time to do it on docker
>>
>> --
>> Regards,
>>
>> Gerald
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-users@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-d...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>>
>
> --
> Regards,
>
> Gerald
>


-- 
Regards,

Gerald
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] [Dhis2-devs] Installation of dhis2 on docker

2018-08-27 Thread gerald thomas
Dan,
I am using my laptop which is mac pro where i had already installed docker
and now i want to install an Ubuntu DHIS2 instance on it.

On Mon, Aug 27, 2018 at 2:32 PM Dan Cocos  wrote:

> Hi Gerald,
>
> You can also try this for local dev.
> https://github.com/baosystems/dhis2-centos
>
> Cheers,
> Dan
>
>
> Dan Cocos
> Principal, BAO Systems
> dco...@baosystems.com | http://www.baosystems.com |  2900 K Street, Suite
> 507, Washington D.C. 20007
>
>
> On Aug 27, 2018, at 3:52 AM, Gerald Thomas  wrote:
>
> Dear Paulo,
> Can i only have mysql database for this instance?
>
> On Aug 27, 2018, at 5:58 AM, Paulo Grácio  wrote:
>
> https://github.com/pgracio/dhis2-docker
>
> Hasn’t been updated for a while so not sure if there is a better way.
>
> On 27 Aug 2018, at 00:35, gerald thomas  wrote:
>
> Dear all,
> I am trying to do a dhis2 instance using docker on my laptop. Please can
> anyone help with the procedures; this is my first time to do it on docker
>
> --
> Regards,
>
> Gerald
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
>

-- 
Regards,

Gerald
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp