Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

OS package metadata file name is in base64 encoded format #1625

Closed
bsalunke opened this issue Sep 17, 2020 · 2 comments
Closed

OS package metadata file name is in base64 encoded format #1625

bsalunke opened this issue Sep 17, 2020 · 2 comments
Labels
Can Close? Will close in 30 days unless there is a comment indicating why not

Comments

@bsalunke
Copy link

bsalunke commented Sep 17, 2020

How to reproduce the issue:

Clone the repo
git clone https://github.com/GoogleContainerTools/distroless.git

run build command
bazel build //package_manager:dpkg_parser.par

Build a container image
bazel run //java:java11_debian10

The docker image build after above step is:
bazel/java java11_debian10 26e61d7dd5a1 50 years ago 200MB

When I saved this image as tar and extracted the image file system from tar file.
In the base layer file system I found the OS package file names are in base65 encoded format.

docker save 26e61d7dd5a1 -o 26e61d7dd5a1.tar

tar -xvf 26e61d7dd5a1.tar

In base layer file system, the OS package file name is base64 encoded,

$/home/ubuntu/distroless/tar/3d3cdffab48560cb670466c3d6203c0d86c503dfdd896fce76e08f1dec7971d4/var/lib/dpkg/status.d
$ ls
bmV0YmFzZQ==  dHpkYXRh  YmFzZS1maWxlcw==

Based on the latest comment on GoogleContainerTools/distroless#581 (comment)
I can see the issue is with rules_docker.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_docker!

@github-actions github-actions bot added the Can Close? Will close in 30 days unless there is a comment indicating why not label Mar 17, 2021
@github-actions
Copy link

This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Can Close? Will close in 30 days unless there is a comment indicating why not
Projects
None yet
Development

No branches or pull requests

1 participant