opened
qiankunli
username_0
I tried to run a springboot project with jib-maven-plugin, the detail as follows:

"from" image dockerfile

```
FROM alpine:latest

ENV JAVA_VERSION_MAJOR=8 \
    JAVA_VERSION_MINOR=65 \
    JAVA_HOME=/usr/local/jdk \
    PATH=${PATH}:/usr/local/jdk/bin \
    GLIBC_VERSION=2.23-r3 \
    LANG=C.UTF-8
```
jib-maven-plugin

```
<plugin>
	<groupId>com.google.cloud.tools</groupId>
	<artifactId>jib-maven-plugin</artifactId>
	<version>0.9.7</version>
	<configuration>
		<allowInsecureRegistries>true</allowInsecureRegistries>
		<from>
			<image>harbor.test.xx.com/test/jdk8</image>
		</from>
		<to>
			<image>harbor.test.xx.com/test/jib-springboot-demo</image>
		</to>
		<container>
		      <mainClass>com.xx.springboot.demo.DockerSpringbootDemoApplication</mainClass>
		</container>
	</configuration>
</plugin>
```

`docker inspect harbor.test.xx.com/test/jib-springboot-demo` output

```
"Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [],
            "Cmd": [],
            "Image": "",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": [
                "java",
                "-cp",
                "/app/libs/*:/app/resources/:/app/classes/",
                "com.ximalaya.springboot.demo.DockerSpringbootDemoApplication"
            ],
            "OnBuild": null,
            "Labels": null
        },
```

`docker run -d -P harbor.test.xx.com/test/jib-springboot-demo` output

docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"java\": executable file not found in $PATH".
jib may can not be extends environments from "from" image
issue
created
coollog
username_1
Hi @username_0 , thanks for reporting this! This is a known issue that we are addressing in #595.
comment
created
TadCordle
username_2
Since we're already tracking this in a different issue, I'm going to close this one for now. Feel free to keep talking here or in #595.
comment
closed
TadCordle
username_2
issue
created
chanseokoh
username_3
@username_0 this now works in 0.9.8: https://github.com/GoogleContainerTools/jib/issues/595#issuecomment-410264838
comment