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

createDockerfile if existing is always up to date #13

Closed
Vad1mo opened this issue Dec 22, 2014 · 3 comments
Closed

createDockerfile if existing is always up to date #13

Vad1mo opened this issue Dec 22, 2014 · 3 comments
Assignees
Labels
Milestone

Comments

@Vad1mo
Copy link

Vad1mo commented Dec 22, 2014

I am not sure if this is gradle-docker-plugin or a gradle thing.

When generating a Dockerfile gradle createDockerfile

task createDockerfile(type: Dockerfile) {
...

and later adding an additional entry to the task and call createDockerfile again without clean then it says that the docker file is :createDockerfile UP-TO-DATE

@bmuschko
Copy link
Owner

Sounds to me like this is a bug in my code. Can you provide a minimalistic example? Just the task definitions is good enough.

  1. How do the instructions look like on the first run?
  2. What instruction did you add when the task is still marked UP-TO-DATE but shouldn't?

@Vad1mo
Copy link
Author

Vad1mo commented Dec 22, 2014

first it was like this

task createDockerfile(type: Dockerfile) {
    destFile = project.file('build/Dockerfile')
    from 'jeanblanchard/busybox-java:8'
    maintainer 'me'
}

after I added "addFile" and rerun it, nothing changed

task createDockerfile(type: Dockerfile) {
    destFile = project.file('build/Dockerfile')
    from 'jeanblanchard/busybox-java:8'
    maintainer 'me'
    addFile(jar.archivePath, '/app/')
}

@bmuschko
Copy link
Owner

Thanks, I will have a look.

@bmuschko bmuschko added the bug label Dec 23, 2014
@bmuschko bmuschko self-assigned this Dec 23, 2014
@bmuschko bmuschko added this to the v0.8 milestone Dec 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants