Bug 1321310 - JBoss EAP S2I images uses /usr/local rather than /usr/libexec
Summary: JBoss EAP S2I images uses /usr/local rather than /usr/libexec
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: kconner
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-25 11:09 UTC by Kenjiro Nakayama
Modified: 2017-02-20 15:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-02-20 15:14:53 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLOUD-580 0 Optional New Move S2I scripts from /usr/local to /usr/libexec 2020-06-06 15:57:29 UTC

Description Kenjiro Nakayama 2016-03-25 11:09:57 UTC
Description of problem:

- JBoss EAP s2i images use /usr/local rather than /usr/libexec
- It should use /usr/libexec according to https://github.com/openshift/source-to-image/pull/370

Version-Release number of selected component (if applicable):

- v3.1.1.6-21-gcd70c35
- Current eap64-openshift:latest image as below
- registry.access.redhat.com/jboss-eap-6/eap64-openshift      1.1                 dfdbff449ef7        3 months ago        1.156 GB

How reproducible:

Steps to Reproduce:
1. Run s2i image by eap builder image
2. Check the build log

Actual results:

~~~
I0324 07:56:05.272051       1 download.go:57] Using image internal scripts from: image:///usr/local/s2i/assemble
I0324 07:56:05.272067       1 download.go:57] Using image internal scripts from: image:///usr/local/s2i/run
~~~

Expected results:

~~~
I0325 10:19:32.121987       1 download.go:57] Using image internal scripts from: image:///usr/libexec/s2i/assemble
I0325 10:19:32.122041       1 download.go:57] Using image internal scripts from: image:///usr/libexec/s2i/run
~~~

Additional info:

- I wanted to send a patch by myself. But it is CLOSED source!!

Comment 1 Wang Haoran 2016-03-28 02:22:22 UTC
The image contains "io.openshift.s2i.scripts-url" to setting the s2i script location which override the default location "/usr/libexec/s2i".
[root@openshift-209 ~]# docker inspect registry.access.redhat.com/jboss-eap-6/eap64-openshift |grep io.openshift.s2i.scripts-url
            "io.openshift.s2i.scripts-url": "image:///usr/local/s2i",

openshift build support custom script location,so I don't think it's a build related  bug ,change to component image.

Not sure whether xpass image team will update image to use the default s2i location.

Comment 2 kconner 2016-03-30 15:10:38 UTC
@kenjiro You can certainly send a patch for this, it would be welcome

On the face of things this seems to be a minor, relatively recent change that has no functional impact other than to align with a different directory structure.  This would be a low priority for us however we should be able to schedule it at some point.

The image you are referring to is certainly not the latest version so not sure where you are getting that information from, there have been numerous 1.2 images released and now a 1.3 image.

Comment 3 kconner 2016-03-30 15:17:04 UTC
Logged the associated issue as an optional enhancement.

Comment 4 Ben Parees 2017-02-20 15:14:53 UTC
closing as this is being tracked in JIRA now, which is the mechanism for middleware image issues.


Note You need to log in before you can comment on or make changes to this bug.