Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it directly refer to Dockerfile to build the image? #657

Closed
ningyu1 opened this issue Jul 19, 2018 · 6 comments
Closed

Can it directly refer to Dockerfile to build the image? #657

ningyu1 opened this issue Jul 19, 2018 · 6 comments

Comments

@ningyu1
Copy link

ningyu1 commented Jul 19, 2018

Use the Dockerfile that already exists in the project to generate the docker image directly at package time?
No relevant instructions were found in the document.
If so, please provide a link, thanks.

@coollog
Copy link
Contributor

coollog commented Jul 19, 2018

Hi @ningyu1 , Jib is intended to allow Java developers to use the tools they are familiar with to build containers for their Java applications. Dockerfiles, by design, are not supported. Is there something you are doing in your Dockerfile that you need?

@ningyu1
Copy link
Author

ningyu1 commented Jul 19, 2018

@coollog Yes, my dockerfile has some extra processing.

I need to translate dockerfile into the following XML description as an example. right?

<configuration>
  <from>
    <image>openjdk:alpine</image>
  </from>
  <to>
    <image>localhost:5000/my-image:built-with-jib</image>
    <credHelper>osxkeychain</credHelper>
  </to>
  <container>
    <jvmFlags>
      <jvmFlag>-Xms512m</jvmFlag>
      <jvmFlag>-Xdebug</jvmFlag>
      <jvmFlag>-Xmy:flag=jib-rules</jvmFlag>
    </jvmFlags>
    <mainClass>mypackage.MyApp</mainClass>
    <args>
      <arg>some</arg>
      <arg>args</arg>
    </args>
    <ports>
      <port>1000</port>
      <port>2000-2003/udp</port>
    </ports>
    <format>OCI</format>
  </container>
</configuration>

@coollog
Copy link
Contributor

coollog commented Jul 19, 2018

Yes, you would need to add the corresponding XML description.

@breandan
Copy link

The Gradle DSL is pretty nice. I wonder if there is a way to support a small subset of the Docker instructions so that it closely resembles the Dockerfile syntax...

@briandealwis
Copy link
Member

What additional steps are you performing @breandan?

@coollog
Copy link
Contributor

coollog commented Aug 29, 2018

Closing unless there's any instructions that need support in Jib.

@coollog coollog closed this as completed Aug 29, 2018
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 2, 2018
…ng ORT

In constract to JIB [1], this plugin can build a base image from a
Dockerfile.

[1] GoogleContainerTools/jib#657 (comment)
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 2, 2018
…n ORT

In constract to JIB [1], this plugin can build (base) images from a
Dockerfile.

[1] GoogleContainerTools/jib#657 (comment)
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 5, 2018
…n ORT

In constract to JIB [1], this plugin can build (base) images from a
Dockerfile.

[1] GoogleContainerTools/jib#657 (comment)
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 5, 2018
…n ORT

In constract to JIB [1], this plugin can build (base) images from a
Dockerfile.

[1] GoogleContainerTools/jib#657 (comment)
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 5, 2018
…n ORT

In constract to JIB [1], this plugin can build (base) images from a
Dockerfile.

[1] GoogleContainerTools/jib#657 (comment)
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 6, 2018
…n ORT

In constract to JIB [1], this plugin can build (base) images from a
Dockerfile.

[1] GoogleContainerTools/jib#657 (comment)
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 8, 2018
…n ORT

In constract to JIB [1], this plugin can build (base) images from a
Dockerfile.

[1] GoogleContainerTools/jib#657 (comment)

Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 8, 2018
…n ORT

In constrast to JIB [1], this plugin can build (base) images from a
Dockerfile. The base image is based on Alpine Linux [2] to be lightweight
and is otherwise empty for now.

[1] GoogleContainerTools/jib#657 (comment)
[2] https://alpinelinux.org/

Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 8, 2018
…n ORT

In constrast to JIB [1], this plugin can build (base) images from a
Dockerfile. The base image is based on Alpine Linux [2] to be lightweight
and is otherwise empty for now.

[1] GoogleContainerTools/jib#657 (comment)
[2] https://alpinelinux.org/

Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Nov 16, 2018
…n ORT

In constrast to JIB [1], this plugin can build (base) images from a
Dockerfile. The base image is based on Alpine Linux [2] to be lightweight
and is otherwise empty for now.

[1] GoogleContainerTools/jib#657 (comment)
[2] https://alpinelinux.org/

Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Dec 14, 2018
…n ORT

In constrast to JIB [1], this plugin can build (base) images from a
Dockerfile. The base image is based on Alpine Linux [2] to be lightweight
and is otherwise empty for now.

[1] GoogleContainerTools/jib#657 (comment)
[2] https://alpinelinux.org/

Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Dec 14, 2018
…n ORT

In constrast to JIB [1], this plugin can build (base) images from a
Dockerfile. The base image uses a slim / "headless" JRE 11 running on Debian
"sid" (unstable) and is otherwise empty for now.

[1] GoogleContainerTools/jib#657 (comment)

Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Dec 14, 2018
…n ORT

In constrast to JIB [1], this plugin can build (base) images from a
Dockerfile. The base image uses a slim / "headless" JRE 11 running on Debian
"sid" (unstable) and is otherwise empty for now.

[1] GoogleContainerTools/jib#657 (comment)

Signed-off-by: Sebastian Schuberth <[email protected]>
sschuberth added a commit to oss-review-toolkit/ort that referenced this issue Dec 14, 2018
…n ORT

In constrast to JIB [1], this plugin can build (base) images from a
Dockerfile. The base image uses a slim / "headless" JRE 11 running on Debian
"sid" (unstable) and is otherwise empty for now.

[1] GoogleContainerTools/jib#657 (comment)

Signed-off-by: Sebastian Schuberth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants