Commit 6e84440
feat: add Amazon Linux 2023 support and remove AL1 (#266)
* feat: add Amazon Linux 2023 support and remove AL1
- Add Dockerfile.al2023 with Python 3.12 and Node.js 20 support
- Remove Dockerfile.al1 (Amazon Linux 1 deprecated by AWS)
- Add AL2023 layer and test functions to CDK integration stack
- Fix AL2 C++17 support for Tesseract 5.5.2 compatibility
- Add COMPILER_FLAGS ARG for customizable compiler options
- Link stdc++fs library for AL2 filesystem support
- Add comprehensive migration guide from AL2 to AL2023
- Update all documentation to recommend AL2023
- Add deprecation notices for AL2 (6-month sunset period)
- Update release workflow to produce both AL2 and AL2023 artifacts
- Add integration tests for Python 3.12 and Node.js 20 on AL2023
Breaking Changes:
- Amazon Linux 1 (AL1) support removed
- Amazon Linux 2 (AL2) is now deprecated (6-month sunset)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: ensure CXXFLAGS passed to make command for both AL2 and AL2023
- Pass CXXFLAGS to make command in addition to configure
- Ensures C++17 flags are applied during compilation, not just configuration
* fix: disable AL2 build due to GCC 7.3.1 C++17 limitations
- Comment out AL2 layer and test functions in CDK integration
- AL2's GCC 7.3.1 lacks <filesystem> header required by Tesseract 5.5.2
- Keep AL2023 build which works with modern GCC
- AL2 users can build locally with Tesseract 5.4.x or earlier
- Update documentation with AL2 technical limitation note
- CI now only builds and tests AL2023 (Python 3.12, Node.js 20)
- AL2 Dockerfile remains available for local builds
* fix: install xz package for AL2023 build
- AL2023 base image doesn't include xz by default
- Required to decompress autoconf-archive .tar.xz file
* fix: libtiff path
* fix: provide libwebpmux
* chore: self mutation
Signed-off-by: github-actions <github-actions@github.com>
* Update README.md
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* docs: update examples to use Amazon Linux 2023 with Python 3.12
Update example projects (Serverless Framework and CDK) to use AL2023 with Python 3.12 runtime instead of deprecated AL2 with Python 3.8. This aligns the examples with the README's advertised support and recommended best practices.
Changes:
- Update serverless.yml to use amazonlinux-2023 layer and python3.12 runtime
- Update CDK example to use amazonlinux-2023 layer and Python 3.12 runtime
- Update Docker base images to use public.ecr.aws/sam/build-python3.12:latest
- Update all READMEs to reflect AL2023 and Python 3.12
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Signed-off-by: github-actions <github-actions@github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 67f69e9 commit 6e84440
File tree
34 files changed
+574
-110
lines changed- .github/workflows
- .projen
- continous-integration
- example
- cdk
- src
- serverless
- ready-to-use
- amazonlinux-2023
- bin
- lib
- amazonlinux-2
34 files changed
+574
-110
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
118 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
119 | 149 | | |
120 | 150 | | |
121 | 151 | | |
122 | 152 | | |
123 | 153 | | |
124 | | - | |
| 154 | + | |
125 | 155 | | |
126 | 156 | | |
127 | 157 | | |
128 | | - | |
| 158 | + | |
129 | 159 | | |
130 | 160 | | |
131 | 161 | | |
132 | 162 | | |
133 | 163 | | |
134 | | - | |
| 164 | + | |
135 | 165 | | |
136 | 166 | | |
137 | 167 | | |
138 | | - | |
| 168 | + | |
139 | 169 | | |
140 | 170 | | |
141 | | - | |
| 171 | + | |
142 | 172 | | |
143 | 173 | | |
144 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
145 | 189 | | |
146 | 190 | | |
147 | 191 | | |
| |||
150 | 194 | | |
151 | 195 | | |
152 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
153 | 209 | | |
154 | | - | |
| 210 | + | |
155 | 211 | | |
156 | 212 | | |
157 | | - | |
| 213 | + | |
158 | 214 | | |
159 | 215 | | |
160 | 216 | | |
161 | 217 | | |
162 | 218 | | |
163 | 219 | | |
164 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
165 | 223 | | |
166 | 224 | | |
167 | 225 | | |
| |||
209 | 267 | | |
210 | 268 | | |
211 | 269 | | |
212 | | - | |
| 270 | + | |
213 | 271 | | |
214 | 272 | | |
215 | 273 | | |
| |||
0 commit comments