Skip to content

DB2 in Test Container fails in Concourse but works in Docker #2019

@Quantas

Description

@Quantas

Challenge/Bug

We are attempting to run our integration tests in separate docker containers to test DbUnit against different database systems. I have created separate Docker images that contain JDK/Maven/DB of choice and this works great for MySQL/PostgreSQL/SQL Server. I am having an issue with the DB2 docker image. I am able to run this image outside of concourse in "standard" Docker with no issues, however, when running inside Concourse I get very strange database issues:

com.ibm.db2.jcc.am.SqlInvalidAuthorizationSpecException: [jcc][t4][2010][11246][4.16.53] Connection authorization failure occurred.  Reason: Local security service non-retryable error. ERRORCODE=-4214, SQLSTATE=28000

Like I mentioned, this only happens with the DB2 docker image running INSIDE Concourse, the same image can be used outside of concourse, provided you install git, do a clone and then execute Maven.

Dockerfile: https://sourceforge.net/p/dbunit/code.git/ci/concourse-ci-testing/tree/ci/docker/db2/Dockerfile
build.yml: https://sourceforge.net/p/dbunit/code.git/ci/concourse-ci-testing/tree/build.yml

  • Concourse version: 3.8.0
  • Deployment type (BOSH/Docker/binary): Docker and/or Binary (both exhibit the issue)
  • Infrastructure/IaaS: In-House Ubuntu 16.04 VM
  • Browser (if applicable): N/A
  • Did this used to work? Nope

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions