Skip to content

Commit

Permalink
Add glibc-langpack-en to Native Lambda image (#964)
Browse files Browse the repository at this point in the history
We reached out to Amazon to check that we are installing the correct yum packages after the move to amazonlinux:2023

They came back with;

> I also recommend installing glibc-langpack-en package to AmazonLinux2023, as java can’t read Unicode filenames without it.

This PR does just that
  • Loading branch information
timyates authored Mar 15, 2024
1 parent eb27eba commit 4ce88c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ private void setupInstructions(List<Instruction> additionalInstructions) {
if (buildStrategy == DockerBuildStrategy.LAMBDA) {
from(new From(imageResolver.resolve()).withStage("graalvm"));
environmentVariable("LANG", "en_US.UTF-8");
runCommand("yum install -y gcc gcc-c++ glibc-devel curl-minimal bash zlib zlib-devel zlib-static zip tar gzip");
runCommand("yum install -y gcc gcc-c++ glibc-devel glibc-langpack-en curl-minimal bash zlib zlib-devel zlib-static zip tar gzip");
String jdkVersion = getJdkVersion().get();
String graalArch = getGraalArch().get();
// https://download.oracle.com/graalvm/17/latest/graalvm-jdk-17_linux-aarch64_bin.tar.gz
Expand Down

0 comments on commit 4ce88c9

Please sign in to comment.