Closed olivierGATSNCF closed 5 years ago
@umohnani8 if @TomSweeneyRedHat Does not have time could you look at this?
Hi,
Is this Issue fixed with buildah 1.5 or 1.6 ?
Not sure anyone has looked at it, Could you point me to the git repo, where I could try to build the image ?
It's reproducible by the steps listed in the description, Can you look at this ? It's a very useful feature
Any news of this ?
I've not yet had a chance to dive into this, @umohnani8 have you?
@TomSweeneyRedHat no I haven't, been focusing on the CRD stuff. I can get to it once I am done with that, but feel free to look into it if you want to :)
Hi,
Do you have some news on this subject ?
Sorry @gregoryboue no news as of yet. It's on the list but we've not yet popped it up to the top of the list.
@giuseppe What exactly is in the COPY directory? COPY tocopy/config ./config
Hi, in my sample, tocopy/config contains a default elasticsearch.yml and a file logging.yml
@olivierGATSNCF finally had some time to play with this and it worked for me. However, the files that I used were just empties that I touched, ie elasticsearch.yml. I used the latest Buildah from upstream, v1.7-dev.
# mkdir -p /opt/elasticsearch/config
# touch /opt/elasticsearch/config/elasticsearch.yml
# mkdir -p tocopy/config
# touch tocopy/config/tom.yml
# cat ~/Dockerfile.elastic
FROM alpine
WORKDIR /opt/elasticsearch
COPY tocopy/config ./config
VOLUME /opt/elasticsearch/config/elasticsearch.yml
# buildah bud -t tom -f ~/Dockerfile.elastic .
STEP 1: FROM alpine
STEP 2: WORKDIR /opt/elasticsearch
STEP 3: COPY tocopy/config ./config
STEP 4: VOLUME /opt/elasticsearch/config/elasticsearch.yml
STEP 5: COMMIT containers-storage:[overlay@/var/lib/containers/storage+/var/run/containers/storage]localhost/tom:latest
Getting image source signatures
Skipping blob 503e53e365f3 (already present): 5.52 MiB / 5.52 MiB [=========] 0s
Copying blob 74db0edfe583: 3.50 KiB / 3.50 KiB [============================] 0s
Copying config 3fc9014540d6: 799 B / 799 B [================================] 0s
Writing manifest to image destination
Storing signatures
--> 3fc9014540d6911067680b6084b3453e32d0ea5cf435cc29bcd0151ec7403555
# docker run -v /root/test/elasticsearch.yml:/opt/elasticsearch/config/elasticsearch.yml tom
# podman run -v /root/test/elasticsearch.yml:/opt/elasticsearch/config/elasticsearch.yml tom
Can you try with the latest and greatest or try again using different files that include a touched file rather than that particular *.yml.
Also I don't think your Dockerfile is complete in the example as there's at least no FROM
directive there. If you could update that, that would be appreciated.
Thanks for your attention. It seems that deleting VOLUME instruction solve our problem
@olivierGATSNCF thanks for the initial issue and the follow ups. I'm going to close this now. If you run into this again, please feel free to reopen or start a new issue as you feel appropriate.
Description
It is not possible to mount a file as a volume in a builded image with buildah
Steps to reproduce the issue:
2. docker run -v /root/test/elasticsearch.yml:/opt/elasticsearch/config/elasticsearch.yml myImage 3.
Describe the results you received:
docker: Error response from daemon: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: not a directory".
Describe the results you expected:
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:*Output of `cat /etc/release`:**
Output of
uname -a
:Output of
cat /etc/containers/storage.conf
: