OpenLiberty / draft-guide-kubernetes-caching-hazelcast-spring

Create PR against the `dev` branch for development code. The `master` branch is reserved for publishing content.
Other
0 stars 1 forks source link

Build failed to create directory due to image user changes #11

Open evelinec opened 5 years ago

evelinec commented 5 years ago

When running maven build for this app, the build docker image step failed to create a directory. Perhaps this is due to the Open Liberty image user changes.

[INFO] Step 4/8 : RUN springBootUtility thin --sourceAppPath=/staging/${APP_FILE} --targetThinAppPath=/staging/thin-${APP_FILE} --targetLibCachePath=/staging/lib.index.cache
[INFO] 
[INFO]  ---> Running in 4246fccd8b1a
[INFO] Failed to create directory /staging/lib.index.cache
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.802 s
[INFO] Finished at: 2019-04-23T11:38:35-04:00
[INFO] Final Memory: 54M/582M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.openliberty.boost:boost-maven-plugin:0.1:docker-build (default) on project hazelcast-caching: Could not build image: The command '/bin/sh -c springBootUtility thin --sourceAppPath=/staging/${APP_FILE} --targetThinAppPath=/staging/thin-${APP_FILE} --targetLibCachePath=/staging/lib.index.cache' returned a non-zero code: 5 -> [Help 1]

Open Liberty docker image user requirement:

Image User

This image runs by default with USER 1001 (non-root), as part of group 0. Please make sure you read below to set the appropriate folder and file permissions.
mesutcelik commented 5 years ago

Hi @evelinec ,

I see that the issue is resolved by https://github.com/OpenLiberty/boost/issues/293 but boost plugin release 0.1.3 is not available yet.

Hi @anjumfatima90 , When do you think a new release be available on maven central?

I also see that all releases are marked as pre-release on releases page. Why is that? https://github.com/OpenLiberty/boost/releases

anjumfatima90 commented 5 years ago

Hi, @chyt would be the right person to ask. Charles, When do you think we can have a maven central release for 0.1.3?

chyt commented 5 years ago

@mesutcelik They are marked as pre-releases because they are versioned as 0.x.x (basically to indicate that they are in beta). I am currently looking into making a new release to include this functionality.

evelinec commented 5 years ago

@chyt any updates on the boost plugin? Thanks.

evelinec commented 5 years ago

Checked with @chyt, this is in the team's backlog. Will sync up with the team when issue #12 is resolved.

enozcan commented 5 years ago

The failure above does not exist in 0.1.3-SNAPSHOT. However when maven build is run with maven-plugin:0.1.3-SNAPSHOT using the configuration described here in readme, the following error raises:

[ERROR] Failed to execute goal boost:boost-maven-plugin:0.1.3-SNAPSHOT:package (default) on project hazelcast-caching: No target Boost runtime was detected. Please add a runtime and restart the build. -> [Help 1]

Also, when docker-build goal is used, another error raises:

Could not find goal 'docker-build' in plugin boost:boost-maven-plugin:0.1.3-SNAPSHOT among available goals debug, help, package, run, start, stop -> [Help 1]

The reason is explained here