forked from GoogleContainerTools/distroless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup and improve reproducibility of builds (GoogleContainerTools#553)
* Clean up package manager files * Added dpkg_extract and tar utility for reproducible tars * Add test case for build release tar * Migrate java cacert extraction * Updated to archive.py from pkg_tar * Fix tar mode to GNU_TAR for consistency * Use build_tar utility * Fix /etc/os-release file to 0644 file permissions. * Added copyright for libc-bin back to the files. Set default mode to 0644.
- Loading branch information
1 parent
f8590f2
commit 4a2e305
Showing
15 changed files
with
160 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
/.classpath | ||
/.factorypath | ||
/.idea/ | ||
*.iml | ||
/.project | ||
/.settings | ||
/bazel.iml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
load("@package_bundle//file:packages.bzl", "packages") | ||
load("@package_bundle_debian10//file:packages.bzl", packages_debian10 = "packages") | ||
|
||
DISTRO_PACKAGES = { | ||
"_debian9": packages, | ||
"_debian10": packages_debian10, | ||
} | ||
|
||
DISTRO_SUFFIXES = ("_debian9", "_debian10") | ||
|
||
DISTRO_REPOSITORY = { | ||
"_debian9": "@debian_stretch", | ||
"_debian10": "@debian10", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
package(default_visibility = ["//:__subpackages__"]) | ||
|
||
sh_binary( | ||
name = "extract_certs", | ||
srcs = ["extract.sh"], | ||
) | ||
load("//base:distro.bzl", "DISTRO_PACKAGES", "DISTRO_SUFFIXES") | ||
load(":cacerts.bzl", "cacerts") | ||
load(":java.bzl", "cacerts_java") | ||
|
||
[cacerts( | ||
name = "cacerts" + distro_suffix, | ||
deb = DISTRO_PACKAGES[distro_suffix]["ca-certificates"], | ||
) for distro_suffix in DISTRO_SUFFIXES] | ||
|
||
[cacerts_java( | ||
name = "cacerts_java" + distro_suffix, | ||
cacerts_tar = ":cacerts" + distro_suffix, | ||
) for distro_suffix in DISTRO_SUFFIXES] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
package(default_visibility = ["//:__subpackages__"]) | ||
|
||
sh_binary( | ||
name = "extract_locale", | ||
srcs = ["extract.sh"], | ||
) | ||
load("//base:distro.bzl", "DISTRO_PACKAGES", "DISTRO_SUFFIXES") | ||
load(":locale.bzl", "locale") | ||
|
||
[locale( | ||
name = "locale" + distro_suffix, | ||
deb = DISTRO_PACKAGES[distro_suffix]["libc-bin"], | ||
) for distro_suffix in DISTRO_SUFFIXES] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.