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 <paulogra...@gmail.com> 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 <gerald17...@gmail.com>
> 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 <gerald17...@gmail.com>
>> 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 <dco...@gmail.com> 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
>>>> <https://maps.google.com/?q=2900+K+Street,+Suite+507,+Washington+D.C.+20007&entry=gmail&source=g>
>>>>
>>>>
>>>> On Aug 27, 2018, at 3:52 AM, Gerald Thomas <gerald17...@gmail.com>
>>>> wrote:
>>>>
>>>> Dear Paulo,
>>>> Can i only have mysql database for this instance?
>>>>
>>>> On Aug 27, 2018, at 5:58 AM, Paulo Grácio <paulogra...@gmail.com>
>>>> 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 <gerald17...@gmail.com> 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

Reply via email to