You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@fineract.apache.org by Steve Conrad <sc...@gmail.com> on 2019/07/01 00:44:55 UTC

Re: Deploying with Docker and docker-compose

Hi Tonio -

Not sure why you are seeing this. A couple of questions: are you able to
build Fineract locally (using ./gradlew clean war)? What versions of docker
and docker-compose do you have installed? I just built again from scratch
on my environment using Docker version 18.09 and docker-compose version
1.23.2.

Steve


On Sun, Jun 30, 2019 at 6:15 PM Tonio O <tc...@gmail.com> wrote:

> I get the following exception when using the docker-compose build option:
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Script '/fineract/fineract-provider/dependencies.gradle' line: 30
>
> * What went wrong:
> A problem occurred evaluating script.
> > Could not find method providedCompile() for arguments [] on object of
> type
> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
>
> Steve: Do you have an idea why this is happening
>
>
> On Thu, Jun 20, 2019 at 8:46 AM Steve Conrad <sc...@gmail.com> wrote:
>
>> Hi Devs -
>>
>> I have been working on a 'one-touch' deploy process for Fineract using
>> Docker and docker-compose. I just submitted a PR with this new
>> functionality. It allows you to easily create a brand new Fineract instance
>> on your local machine. You can also use it to run your development
>> environment in docker. There is a README with instructions, which I will
>> also post here. If you have any questions, please let me know.
>>
>> Thanks,
>> Steve
>>
>> Prerequisites
>>
>>    - docker and docker-compose installed on your machine
>>
>>
>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#installing-a-new-fineract-instance>Installing
>> a new Fineract instance
>>
>>    - Clone the Fineract Github repository
>>    - Navigate to the docker directory
>>    - Run the following commands:
>>       - docker-compose build
>>       - docker-compose up -d
>>    - Fineract will run at https://localhost:8443/fineract-provider
>>
>>
>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#using-docker-compose-for-development>Using
>> docker-compose for development
>>
>>    - Copy Dockerfile, docker-compose.yml, and the initdb directory to
>>    the root of your project (/fineract)
>>    - Edit Dockerfile in /fineract - comment out the 2 lines (RUN git
>>    clone and COPY build.gradle)
>>    - Uncomment the 2 lines in Dockerfile (RUN mkdir fineract, COPY .
>>    fineract)
>>    - Update your local copy of build.gradle and replace all references
>>    to localhost with fineractmysql
>>
>>

Re: Deploying with Docker and docker-compose

Posted by Steve Conrad <sc...@gmail.com>.
Thanks Michael -

I ran the docker-compose on a different machine - and installed the latest
version of gradle first to make sure that docker was not somehow picking up
the local gradle version when building the image. This new machine had
never run FIneract at all...

I ran the following commands and it built and ran successfully:

  git clone https://github.com/apache/fineract.git
  cd fineract
  docker-compose build
  docker-compose up -d

@Tonio O <tc...@gmail.com>, what environment are you running on?

Thanks,
Steve



On Mon, Jul 1, 2019 at 4:17 AM Michael Vorburger <mi...@vorburger.ch> wrote:

> > I get the following exception when using the docker-compose build option:
>
> Tonio, just to avoid any confusion, could you confirm that you are using
> today's master (I merged Steve' contribution on Saturday; thanks again!),
> and that you are just following
> https://github.com/apache/fineract/#instructions-to-run-using-docker-and-docker-compose,
> exactly? I would be interested in seeing your full output, from the start -
> would you mind to copy/paste it to some place, like a
> https://gist.github.com or https://paste.fedoraproject.org or wherever?
>
> It's (very) curious that you get this weird Gradle failure - the whole
> point of containers to create an isolated environment... it does not matter
> what (or even if) Gradle version you have locally. I'm puzzled.
>
> Would someone else have a minute to try this out and let us know if it
> works for others?
>
>
> On Mon, 1 Jul 2019, 04:26 Tonio O, <tc...@gmail.com> wrote:
>
>> *are you able to build Fineract locally (using ./gradlew clean war)?* No.
>>
>> docker version: Docker version 19.03.0-rc2, build f97efcc
>> docker-compose version: docker-compose version 1.24.0, build 0aa59064
>>
>> On Sun, Jun 30, 2019 at 7:45 PM Steve Conrad <sc...@gmail.com> wrote:
>>
>>> Hi Tonio -
>>>
>>> Not sure why you are seeing this. A couple of questions: are you able to
>>> build Fineract locally (using ./gradlew clean war)? What versions of docker
>>> and docker-compose do you have installed? I just built again from scratch
>>> on my environment using Docker version 18.09 and docker-compose version
>>> 1.23.2.
>>>
>>> Steve
>>>
>>>
>>> On Sun, Jun 30, 2019 at 6:15 PM Tonio O <tc...@gmail.com> wrote:
>>>
>>>> I get the following exception when using the docker-compose build
>>>> option:
>>>>
>>>> FAILURE: Build failed with an exception.
>>>>
>>>> * Where:
>>>> Script '/fineract/fineract-provider/dependencies.gradle' line: 30
>>>>
>>>> * What went wrong:
>>>> A problem occurred evaluating script.
>>>> > Could not find method providedCompile() for arguments [] on object of
>>>> type
>>>> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
>>>>
>>>> * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info or
>>>> --debug option to get more log output. Run with --scan to get full insights.
>>>>
>>>> Steve: Do you have an idea why this is happening
>>>>
>>>>
>>>> On Thu, Jun 20, 2019 at 8:46 AM Steve Conrad <sc...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Devs -
>>>>>
>>>>> I have been working on a 'one-touch' deploy process for Fineract using
>>>>> Docker and docker-compose. I just submitted a PR with this new
>>>>> functionality. It allows you to easily create a brand new Fineract instance
>>>>> on your local machine. You can also use it to run your development
>>>>> environment in docker. There is a README with instructions, which I will
>>>>> also post here. If you have any questions, please let me know.
>>>>>
>>>>> Thanks,
>>>>> Steve
>>>>>
>>>>> Prerequisites
>>>>>
>>>>>    - docker and docker-compose installed on your machine
>>>>>
>>>>>
>>>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#installing-a-new-fineract-instance>Installing
>>>>> a new Fineract instance
>>>>>
>>>>>    - Clone the Fineract Github repository
>>>>>    - Navigate to the docker directory
>>>>>    - Run the following commands:
>>>>>       - docker-compose build
>>>>>       - docker-compose up -d
>>>>>    - Fineract will run at https://localhost:8443/fineract-provider
>>>>>
>>>>>
>>>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#using-docker-compose-for-development>Using
>>>>> docker-compose for development
>>>>>
>>>>>    - Copy Dockerfile, docker-compose.yml, and the initdb directory to
>>>>>    the root of your project (/fineract)
>>>>>    - Edit Dockerfile in /fineract - comment out the 2 lines (RUN git
>>>>>    clone and COPY build.gradle)
>>>>>    - Uncomment the 2 lines in Dockerfile (RUN mkdir fineract, COPY .
>>>>>    fineract)
>>>>>    - Update your local copy of build.gradle and replace all
>>>>>    references to localhost with fineractmysql
>>>>>
>>>>>

Re: Deploying with Docker and docker-compose

Posted by Michael Vorburger <mi...@vorburger.ch>.
> I get the following exception when using the docker-compose build option:

Tonio, just to avoid any confusion, could you confirm that you are using
today's master (I merged Steve' contribution on Saturday; thanks again!),
and that you are just following
https://github.com/apache/fineract/#instructions-to-run-using-docker-and-docker-compose,
exactly? I would be interested in seeing your full output, from the start -
would you mind to copy/paste it to some place, like a
https://gist.github.com or https://paste.fedoraproject.org or wherever?

It's (very) curious that you get this weird Gradle failure - the whole
point of containers to create an isolated environment... it does not matter
what (or even if) Gradle version you have locally. I'm puzzled.

Would someone else have a minute to try this out and let us know if it
works for others?


On Mon, 1 Jul 2019, 04:26 Tonio O, <tc...@gmail.com> wrote:

> *are you able to build Fineract locally (using ./gradlew clean war)?* No.
>
> docker version: Docker version 19.03.0-rc2, build f97efcc
> docker-compose version: docker-compose version 1.24.0, build 0aa59064
>
> On Sun, Jun 30, 2019 at 7:45 PM Steve Conrad <sc...@gmail.com> wrote:
>
>> Hi Tonio -
>>
>> Not sure why you are seeing this. A couple of questions: are you able to
>> build Fineract locally (using ./gradlew clean war)? What versions of docker
>> and docker-compose do you have installed? I just built again from scratch
>> on my environment using Docker version 18.09 and docker-compose version
>> 1.23.2.
>>
>> Steve
>>
>>
>> On Sun, Jun 30, 2019 at 6:15 PM Tonio O <tc...@gmail.com> wrote:
>>
>>> I get the following exception when using the docker-compose build option:
>>>
>>> FAILURE: Build failed with an exception.
>>>
>>> * Where:
>>> Script '/fineract/fineract-provider/dependencies.gradle' line: 30
>>>
>>> * What went wrong:
>>> A problem occurred evaluating script.
>>> > Could not find method providedCompile() for arguments [] on object of
>>> type
>>> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
>>>
>>> * Try:
>>> Run with --stacktrace option to get the stack trace. Run with --info or
>>> --debug option to get more log output. Run with --scan to get full insights.
>>>
>>> Steve: Do you have an idea why this is happening
>>>
>>>
>>> On Thu, Jun 20, 2019 at 8:46 AM Steve Conrad <sc...@gmail.com> wrote:
>>>
>>>> Hi Devs -
>>>>
>>>> I have been working on a 'one-touch' deploy process for Fineract using
>>>> Docker and docker-compose. I just submitted a PR with this new
>>>> functionality. It allows you to easily create a brand new Fineract instance
>>>> on your local machine. You can also use it to run your development
>>>> environment in docker. There is a README with instructions, which I will
>>>> also post here. If you have any questions, please let me know.
>>>>
>>>> Thanks,
>>>> Steve
>>>>
>>>> Prerequisites
>>>>
>>>>    - docker and docker-compose installed on your machine
>>>>
>>>>
>>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#installing-a-new-fineract-instance>Installing
>>>> a new Fineract instance
>>>>
>>>>    - Clone the Fineract Github repository
>>>>    - Navigate to the docker directory
>>>>    - Run the following commands:
>>>>       - docker-compose build
>>>>       - docker-compose up -d
>>>>    - Fineract will run at https://localhost:8443/fineract-provider
>>>>
>>>>
>>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#using-docker-compose-for-development>Using
>>>> docker-compose for development
>>>>
>>>>    - Copy Dockerfile, docker-compose.yml, and the initdb directory to
>>>>    the root of your project (/fineract)
>>>>    - Edit Dockerfile in /fineract - comment out the 2 lines (RUN git
>>>>    clone and COPY build.gradle)
>>>>    - Uncomment the 2 lines in Dockerfile (RUN mkdir fineract, COPY .
>>>>    fineract)
>>>>    - Update your local copy of build.gradle and replace all references
>>>>    to localhost with fineractmysql
>>>>
>>>>

Re: Deploying with Docker and docker-compose

Posted by Tonio O <tc...@gmail.com>.
*are you able to build Fineract locally (using ./gradlew clean war)?* No.

docker version: Docker version 19.03.0-rc2, build f97efcc
docker-compose version: docker-compose version 1.24.0, build 0aa59064

On Sun, Jun 30, 2019 at 7:45 PM Steve Conrad <sc...@gmail.com> wrote:

> Hi Tonio -
>
> Not sure why you are seeing this. A couple of questions: are you able to
> build Fineract locally (using ./gradlew clean war)? What versions of docker
> and docker-compose do you have installed? I just built again from scratch
> on my environment using Docker version 18.09 and docker-compose version
> 1.23.2.
>
> Steve
>
>
> On Sun, Jun 30, 2019 at 6:15 PM Tonio O <tc...@gmail.com> wrote:
>
>> I get the following exception when using the docker-compose build option:
>>
>> FAILURE: Build failed with an exception.
>>
>> * Where:
>> Script '/fineract/fineract-provider/dependencies.gradle' line: 30
>>
>> * What went wrong:
>> A problem occurred evaluating script.
>> > Could not find method providedCompile() for arguments [] on object of
>> type
>> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
>>
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or
>> --debug option to get more log output. Run with --scan to get full insights.
>>
>> Steve: Do you have an idea why this is happening
>>
>>
>> On Thu, Jun 20, 2019 at 8:46 AM Steve Conrad <sc...@gmail.com> wrote:
>>
>>> Hi Devs -
>>>
>>> I have been working on a 'one-touch' deploy process for Fineract using
>>> Docker and docker-compose. I just submitted a PR with this new
>>> functionality. It allows you to easily create a brand new Fineract instance
>>> on your local machine. You can also use it to run your development
>>> environment in docker. There is a README with instructions, which I will
>>> also post here. If you have any questions, please let me know.
>>>
>>> Thanks,
>>> Steve
>>>
>>> Prerequisites
>>>
>>>    - docker and docker-compose installed on your machine
>>>
>>>
>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#installing-a-new-fineract-instance>Installing
>>> a new Fineract instance
>>>
>>>    - Clone the Fineract Github repository
>>>    - Navigate to the docker directory
>>>    - Run the following commands:
>>>       - docker-compose build
>>>       - docker-compose up -d
>>>    - Fineract will run at https://localhost:8443/fineract-provider
>>>
>>>
>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#using-docker-compose-for-development>Using
>>> docker-compose for development
>>>
>>>    - Copy Dockerfile, docker-compose.yml, and the initdb directory to
>>>    the root of your project (/fineract)
>>>    - Edit Dockerfile in /fineract - comment out the 2 lines (RUN git
>>>    clone and COPY build.gradle)
>>>    - Uncomment the 2 lines in Dockerfile (RUN mkdir fineract, COPY .
>>>    fineract)
>>>    - Update your local copy of build.gradle and replace all references
>>>    to localhost with fineractmysql
>>>
>>>

Re: Deploying with Docker and docker-compose

Posted by Steve Conrad <sc...@gmail.com>.
Tonio - you can also see this stackoverflow issue:
https://stackoverflow.com/questions/45808971/gradle-could-not-find-method-providedcompile
It may be that you have a newer version of gradle installed. Some members
of the Fineract community are working to upgrade our old gradle version.
Thanks,
Steve


On Sun, Jun 30, 2019 at 7:44 PM Steve Conrad <sc...@gmail.com> wrote:

> Hi Tonio -
>
> Not sure why you are seeing this. A couple of questions: are you able to
> build Fineract locally (using ./gradlew clean war)? What versions of docker
> and docker-compose do you have installed? I just built again from scratch
> on my environment using Docker version 18.09 and docker-compose version
> 1.23.2.
>
> Steve
>
>
> On Sun, Jun 30, 2019 at 6:15 PM Tonio O <tc...@gmail.com> wrote:
>
>> I get the following exception when using the docker-compose build option:
>>
>> FAILURE: Build failed with an exception.
>>
>> * Where:
>> Script '/fineract/fineract-provider/dependencies.gradle' line: 30
>>
>> * What went wrong:
>> A problem occurred evaluating script.
>> > Could not find method providedCompile() for arguments [] on object of
>> type
>> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
>>
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or
>> --debug option to get more log output. Run with --scan to get full insights.
>>
>> Steve: Do you have an idea why this is happening
>>
>>
>> On Thu, Jun 20, 2019 at 8:46 AM Steve Conrad <sc...@gmail.com> wrote:
>>
>>> Hi Devs -
>>>
>>> I have been working on a 'one-touch' deploy process for Fineract using
>>> Docker and docker-compose. I just submitted a PR with this new
>>> functionality. It allows you to easily create a brand new Fineract instance
>>> on your local machine. You can also use it to run your development
>>> environment in docker. There is a README with instructions, which I will
>>> also post here. If you have any questions, please let me know.
>>>
>>> Thanks,
>>> Steve
>>>
>>> Prerequisites
>>>
>>>    - docker and docker-compose installed on your machine
>>>
>>>
>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#installing-a-new-fineract-instance>Installing
>>> a new Fineract instance
>>>
>>>    - Clone the Fineract Github repository
>>>    - Navigate to the docker directory
>>>    - Run the following commands:
>>>       - docker-compose build
>>>       - docker-compose up -d
>>>    - Fineract will run at https://localhost:8443/fineract-provider
>>>
>>>
>>> <https://github.com/conradsp/fineract/tree/Dockerize/docker#using-docker-compose-for-development>Using
>>> docker-compose for development
>>>
>>>    - Copy Dockerfile, docker-compose.yml, and the initdb directory to
>>>    the root of your project (/fineract)
>>>    - Edit Dockerfile in /fineract - comment out the 2 lines (RUN git
>>>    clone and COPY build.gradle)
>>>    - Uncomment the 2 lines in Dockerfile (RUN mkdir fineract, COPY .
>>>    fineract)
>>>    - Update your local copy of build.gradle and replace all references
>>>    to localhost with fineractmysql
>>>
>>>