[FOLIO-2710] [Rancher] Pipeline for oai-pmh fails: cannot be run as root Created: 30/Jul/20 Updated: 12/Aug/20 Resolved: 11/Aug/20 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Task | Priority: | TBD |
| Reporter: | Dmytro Popov | Assignee: | Stanislav Miroshnichenko |
| Resolution: | Done | Votes: | 0 |
| Labels: | dev-environment | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Sprint: | DevOps: sprint 92, DevOps: Sprint 95 |
| Development Team: | FOLIO DevOps |
| Description |
| Comments |
| Comment by Marc Johnson [ 11/Aug/20 ] |
Why is there a need for a database in order to perform code generation? |
| Comment by Dmytro Popov [ 11/Aug/20 ] |
|
Yes, we're using jooq and liquibase. As it happens, these two need to spin up an in-memory H2 database during mvn build to generate java pojos. |
| Comment by Marc Johnson [ 11/Aug/20 ] |
Ok, that's unfortunate :-/ |
| Comment by Stanislav Miroshnichenko [ 11/Aug/20 ] |
|
Using non-root maven image in 'runScriptConfig' step, such as 'grizzlysoftware/maven-non-root:3.6.2-11.0.4-jdk-stretch' starts up Postgres successfully. Closing ticket. |
| Comment by Dmytro Popov [ 11/Aug/20 ] |
|
This image fixed it: grizzlysoftware/maven-non-root:3.6.2-8u222-jdk-stretch |
| Comment by Marc Johnson [ 11/Aug/20 ] |
|
Stanislav Miroshnichenko Dmytro Popov
What does that step do? |
| Comment by Stanislav Miroshnichenko [ 11/Aug/20 ] |
|
That step is running shell script 'mvn package -DskipTests' in defined docker container. |
| Comment by Marc Johnson [ 11/Aug/20 ] |
Ah, is this part of a pipeline to build artefacts from a branch of a module? If so, could it run in the same executing context (I'm not sure if this is docker) as a mainline or regular build would (as these also do steps like this)? |
| Comment by Stanislav Miroshnichenko [ 11/Aug/20 ] |
|
Marc Johnson, every build step in Rancher pipeline is running in docker image. |