Hi Maurício, you just have to copy the content of your downloaded Maven
distribution. If you have any doubts, try this:
git clone
https://github.com/abstractj/docker.git &&
github.com
docker - Docker files crafted with love
|
cd docker && git checkout centos && cd centos-java-dev/dist &&
curl
http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz | tar xvz
&& mv apache-maven-3.3.9 apache-maven && cd .. &&
sudo docker build -t keycloak-centos .
I hope it helps.
On 2016-09-14, Maurício Giacomini Penteado wrote:
>
> Hi Bruno, thanks by your attention.
>
> I am trying do what you have explained but when I build the docker image it never adds my "dist/apache-maven" folder. You have already passed by it?
>
> I always got the error:
> ADD dist/apache-maven/ /opt/src/apache-maven/
> lstat dist/apache-maven/: no such file or directory
>
> Kind regards
>
> ________________________________
> De: Bruno Oliveira <bruno@abstractj.org>
> Enviado: quarta-feira, 14 de setembro de 2016 03:22
> Para: Maurício Giacomini Penteado
> Cc: keycloak-dev@lists.jboss.org
> Assunto: Re: [keycloak-dev] Keycloak Integration TestSuite FAILURE
>
> Hi Mauricio, I couldn't reproduce your issue with the latest CentOS
> version. To make sure that we're discussing about the same environment,
> I built this docker image[1], just follow the instructions here[2] to run.
>
> I hope it helps.
>
>
> [1] -
https://hub.docker.com/r/abstractj/keycloak-centos/
> [2] -
https://github.com/abstractj/docker/blob/centos/centos-java-dev/README.md
>
> On 2016-09-13, Maurício Giacomini Penteado wrote:
> >
> > I am trying build with a CentOS Linux release 7.2.
> >
> > I have already tried build the keycloak versions 2.0.0, 2.1.0 and 2.2.0 with OpenJDK and Oracle JDK.
> >
> > I just did a clone and performed a "mvn install".
> >
> > All my attempts result in the same errors:
> >
> > Keycloak Integration TestSuite FAILURE
> >
> > Failed tests:
> > JaxrsFilterTest.testCors:286 expected:<200> but was:<403>
> > JaxrsFilterTest.testRelativeUriAndPublicKey:172 expected:<500> but was:<401>
> > Tests in error:
> > JaxrsBasicAuthTest.testBasic:141 » ClientError HTTP 403 Forbidden
> > JaxrsFilterTest.testBasic:141 » ClientError HTTP 403 Forbidden
> > JaxrsFilterTest.testPushNotBefore:314 » ClientError HTTP 403 Forbidden
> > JaxrsFilterTest.testResourceRoleMappings:236 » ClientError HTTP 403 Forbidden
> >
> > Tests run: 414, Failures: 2, Errors: 4, Skipped: 32
> >
> > = [
> >
> > Somebody, please!
> > ________________________________
> > De: Maurício Giacomini Penteado <mauriciogiacomini@hotmail.com>
> > Enviado: terça-feira, 13 de setembro de 2016 14:20
> > Para: stian@redhat.com
> > Cc: keycloak-dev@lists.jboss.org
> > Assunto: Re: [keycloak-dev] Keycloak Integration TestSuite FAILURE
> >
> >
> > Hello Stian
> >
> >
> > I did a clone of master from Travis repository and to me the errors are the same = /
> >
> >
> > ________________________________
> > De: Stian Thorgersen <sthorger@redhat.com>
> > Enviado: terça-feira, 13 de setembro de 2016 13:10
> > Para: Maurício Giacomini Penteado
> > Cc: keycloak-dev@lists.jboss.org
> > Assunto: Re: [keycloak-dev] Keycloak Integration TestSuite FAILURE
> >
> > What steps do you run to build/test? Works on my box and also it works on Travis.
> >
> > On 13 September 2016 at 15:08, Maurício Giacomini Penteado <mauriciogiacomini@hotmail.com<mailto:mauriciogiacomini@hotmail.com>> wrote:
> >
> > Hello everybody.
> >
> > All my attempts to build keycloak result in the same errors:
> >
> > Keycloak Integration TestSuite FAILURE
> >
> > Failed tests:
> > JaxrsFilterTest.testCors:286 expected:<200> but was:<403>
> > JaxrsFilterTest.testRelativeUriAndPublicKey:172 expected:<500> but was:<401>
> > Tests in error:
> > JaxrsBasicAuthTest.testBasic:141 » ClientError HTTP 403 Forbidden
> > JaxrsFilterTest.testBasic:141 » ClientError HTTP 403 Forbidden
> > JaxrsFilterTest.testPushNotBefore:314 » ClientError HTTP 403 Forbidden
> > JaxrsFilterTest.testResourceRoleMappings:236 » ClientError HTTP 403 Forbidden
> >
> > Tests run: 414, Failures: 2, Errors: 4, Skipped: 32
> >
> > If somebody has an idea about what happens, please let me know!
> >
> > Kind regards,
> > Maurício.
> >
> >
> > _______________________________________________
> > keycloak-dev mailing list
> > keycloak-dev@lists.jboss.org<mailto:keycloak-dev@lists.jboss.org>
> >
https://lists.jboss.org/mailman/listinfo/keycloak-dev
> >
>
> > _______________________________________________
> > keycloak-dev mailing list
> > keycloak-dev@lists.jboss.org
> >
https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>
> --
>
> abstractj
> PGP: 0x84DC9914
--
abstractj
PGP: 0x84DC9914