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

podman build does not reuse cache when current directory changed #3921

Closed
shaicoleman opened this issue Sep 2, 2019 · 3 comments
Closed
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@shaicoleman
Copy link

shaicoleman commented Sep 2, 2019

/kind bug

Description

When changing the directory context, the cache isn't used, even if it points to the same directory.

Steps to reproduce the issue:

sudo podman build --rm --file rails/Dockerfile -t myimage ..
cd ..
sudo podman build --rm --file docker/rails/Dockerfile -t myimage .

Output of podman version:

Version:            1.5.0
RemoteAPI Version:  1
Go Version:         go1.10.4
OS/Arch:            linux/amd64

Output of podman info --debug:
debug:
compiler: gc
git commit: ""
go version: go1.10.4
podman version: 1.5.0
host:
BuildahVersion: 1.10.1
Conmon:
package: 'conmon: /usr/libexec/podman/conmon'
path: /usr/libexec/podman/conmon
version: 'conmon version 2.0.0, commit: unknown'
Distribution:
distribution: linuxmint
version: "19.2"
MemFree: 5022597120
MemTotal: 16622612480
OCIRuntime:
package: 'containerd.io: /usr/bin/runc'
path: /usr/bin/runc
version: |-
runc version 1.0.0-rc8
commit: 425e105d5a03fabd737a126ad93d62a9eeede87f
spec: 1.0.1-dev
SwapFree: 16986927104
SwapTotal: 16986927104
arch: amd64
cpus: 12
eventlogger: journald
hostname: shai-5591
kernel: 5.0.0-25-generic
os: linux
rootless: false
uptime: 21m 22.48s
registries:
blocked: null
insecure: null
search: null
store:
ConfigFile: /etc/containers/storage.conf
ContainerStore:
number: 4
GraphDriverName: overlay
GraphOptions: null
GraphRoot: /var/lib/containers/storage
GraphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "true"
Supports d_type: "true"
Using metacopy: "false"
ImageStore:
number: 35
RunRoot: /var/run/containers/storage
VolumePath: /var/lib/containers/storage/volumes


**Package info:**

podman/bionic,now 1.5.0-2~ubuntu18.04~ppa5 amd64 [installed]

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 2, 2019
@mheon
Copy link
Member

mheon commented Sep 2, 2019

@TomSweeneyRedHat PTAL

@mheon mheon added the Buildah label Sep 2, 2019
@shaicoleman shaicoleman changed the title podman build does not reuse when current directory changed podman build does not reuse cache when current directory changed Sep 2, 2019
@rhatdan
Copy link
Member

rhatdan commented Sep 3, 2019

@shaicoleman Best to open issues against https://github.com/containers/buildah for build issues, since podman is just using buildah code to do podman build

@TomSweeneyRedHat
Copy link
Member

I've not been able to duplicate this using Buildah v1.11.0 which should be in the next release of Podman. I'm not sure if that will be Podman 1.5.1 or Podman 1.6.0, but it will be contained that next version. I'm going to close this now as containers/buildah#1792 appears to have fixed the issue. If you find otherwise, please feel free to reopen this or create a new issue as appropriate.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

5 participants