Details
-
Bug
-
Resolution: Done
-
Major
-
None
Description
Currently when one upload server e.g. with
oc start-build app --from-dir=.../server
Server dir is not kept on s2i side. But s2i is by default looking for server dir.
Installing server. S2I_SOURCE_DIR /tmp/src, ARTIFACT DIRS . /tmp/src content: LICENSE.txt README.txt appclient bin copyright.txt docs jboss-modules.jar modules standalone welcome-content /tmp/src/. content: total 504 -rw-rw-r--. 1 jboss root 26530 Jan 17 16:36 LICENSE.txt -rw-rw-r--. 1 jboss root 2162 Jan 17 16:36 README.txt drwxrwxr-x. 3 jboss root 27 Jan 17 16:36 appclient drwxrwxr-x. 4 jboss root 4096 Jan 17 16:36 bin -rw-rw-r--. 1 jboss root 19358 Jan 17 16:36 copyright.txt drwxrwxr-x. 6 jboss root 67 Jan 17 16:36 docs -rw-rw-r--. 1 jboss root 456439 Jan 17 16:36 jboss-modules.jar drwxrwxr-x. 3 jboss root 20 Jan 17 16:36 modules drwxrwxr-x. 5 jboss root 57 Jan 17 16:36 standalone drwxrwxr-x. 2 jboss root 216 Jan 17 16:36 welcome-content [0;31mERROR No server provisioned found in /tmp/src/./server. Exiting.[0m error: build error: error building at STEP "RUN /usr/local/s2i/assemble": error while running runtime: exit status 1
There are several workarounds, but nothing ideal. One can let create server in intermeddaite dir <provisioning-dir>provisioning/server</provisioning-dir> and let upload that dir
oc start-build app --from-dir=provisioning
But it would be great if this can be more straighforward.