Skip to content

Commit 299face

Browse files
author
Daniel Mikusa
authored
Merge pull request #169 from paketo-buildpacks/jammy
Updated stack identifiers to include Jammy, set wildcard stack
2 parents 013d915 + 803d9ff commit 299face

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The buildpack will do the following:
3030

3131
### Compression Caveats
3232

33-
1. Using `gzexe` if you intend to run your application on the Paketo Tiny image is not currently supported. The `gzexe` utility will compress your executable into what is a shell script, which executes and extracts the actual binary to a temp location. This process requires `/bin/sh` and that is not in the Tiny image. If you try using `gzexe` with the Tiny stack, it'll build OK but fail to run saying a file is missing.
33+
1. Using `gzexe` if you intend to run your application on a Paketo Tiny image is not currently supported. The `gzexe` utility will compress your executable into what is a shell script, which executes and extracts the actual binary to a temp location. This process requires `/bin/sh` and that is not in the Tiny images. If you try using `gzexe` with a Tiny stack, it'll build OK but fail to run saying a file is missing.
3434

3535
2. Using `upx` will create a compressed executable that fails to run on M1 Macs. There is at the time of writing a bug in the emulation layer used by Docker on M1 Macs that is triggered when you try to run amd64 executable that has been compressed using `upx`. This is a known issue and will hopefully be patched in a future release.
3636

buildpack.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ api = "0.7"
2727
type = "Apache-2.0"
2828
uri = "https://github.com/paketo-buildpacks/native-image/blob/main/LICENSE"
2929

30-
[[stacks]]
31-
id = "io.buildpacks.stacks.bionic"
32-
33-
[[stacks]]
34-
id = "io.paketo.stacks.tiny"
35-
3630
[[stacks]]
3731
id = "*"
3832

native/arguments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type BaselineArguments struct {
4242
func (b BaselineArguments) Configure(_ []string) ([]string, string, error) {
4343
var newArguments []string
4444

45-
if b.StackID == libpak.TinyStackID {
45+
if b.StackID == libpak.BionicTinyStackID || b.StackID == libpak.JammyTinyStackID {
4646
newArguments = append(newArguments, "-H:+StaticExecutableWithDynamicLibC")
4747
}
4848

0 commit comments

Comments
 (0)