Re: MASSEMBLY-918 proposal

2019-08-19 Thread Enrico Olivelli
I was thinking more about 1) but I am not a 'tar' master. Maybe you can write a simple jshell script that uses the java libs and tweaks the tarbar Enrico Il dom 18 ago 2019, 22:10 ha scritto: > 4. Squash Docker image layers? This approach requires additional tool ( >

MASSEMBLY-918 proposal

2019-08-18 Thread abrarov
4. Squash Docker image layers? This approach requires additional tool (https://github.com/jwilder/docker-squash requires sudo) and understanding of what layers to squash and what layers to keep as is (for optimization of Docker image delivery - some base layers are taken from image vendor and

RE: MASSEMBLY-918 proposal

2019-08-18 Thread abrarov
What can I do in that script? 1. Change owner in TAR created by Maven Assembly plugin - I need a tool for that (I failed to find one) 2. Change owner before packaging of TAR - I need root permissions (sudo) for that (I just want to add an entry into TAR with chosen owner / group - why should I

Re: MASSEMBLY-918 proposal

2019-08-18 Thread Enrico Olivelli
Can't you run some post package script with the maven exec plugin? Enrico Il ven 16 ago 2019, 19:55 ha scritto: > Hi Enrico, > > Yes, I need just root:root for the task I described, but it doesn't look > like correct (generic) solution to add just flag for the "root ownership", > because its

RE: MASSEMBLY-918 proposal

2019-08-16 Thread abrarov
Hi Enrico, Yes, I need just root:root for the task I described, but it doesn't look like correct (generic) solution to add just flag for the "root ownership", because its implementation looks as hard (easy for smbd) as adding possibility to specify both user and group. Marat.

Re: MASSEMBLY-918 proposal

2019-08-16 Thread Enrico Olivelli
Marat, Sorry for late reply. Il lun 29 lug 2019, 19:00 ha scritto: > Hi community. > > I use Maven with Maven Resources plugin and Dockerfile Maven plugin > (https://github.com/spotify/dockerfile-maven) for building my Docker > images > and this approach works fine (much better than shell

MASSEMBLY-918 proposal

2019-07-29 Thread abrarov
Hi community. I use Maven with Maven Resources plugin and Dockerfile Maven plugin (https://github.com/spotify/dockerfile-maven) for building my Docker images and this approach works fine (much better than shell scripts) except one issue - refer to "The backlash of chmod/chown/mv in your