-
Notifications
You must be signed in to change notification settings - Fork 14
#1383: Used exaslpm to build template-Exasol-all-python-3.12 flavor #607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fc05d65
#1383: Used exaslpm to build template-Exasol-all-python-3.12 flavor
tomuben d64b3e4
Updated packages
tomuben 6368d61
Renamed _packages.yaml => _packages.yml in Dockerfile files
tomuben 5b96c03
Updated exaslpm docker image version
tomuben 78236c5
Removed unnecessary copy of scripts
tomuben File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
flavors/template-Exasol-all-python-3.12/flavor_base/base_test_deps/Dockerfile
This file contains hidden or 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,6 @@ | ||
| FROM {{build_deps}} | ||
|
|
||
| RUN mkdir -p /build_info/packages | ||
| COPY base_test_deps/packages /build_info/packages/base_test_deps | ||
|
|
||
| RUN /scripts/install_scripts/install_via_apt.pl --file /build_info/packages/base_test_deps/apt_get_packages --with-versions | ||
| COPY base_test_deps_packages.yml /build_info/packages/base_test_deps_packages.yml | ||
| RUN exaslpm install --package-file /build_info/packages/base_test_deps_packages.yml --build-step base_test_deps |
This file contains hidden or 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 hidden or 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
5 changes: 2 additions & 3 deletions
5
flavors/template-Exasol-all-python-3.12/flavor_base/flavor_base_deps/Dockerfile
This file contains hidden or 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,8 +1,7 @@ | ||
| FROM {{ language_deps }} | ||
|
|
||
| RUN mkdir -p /build_info/packages | ||
| COPY flavor_base_deps/packages /build_info/packages/flavor_base_deps | ||
|
|
||
| RUN /scripts/install_scripts/install_via_apt.pl --file /build_info/packages/flavor_base_deps/apt_get_packages --with-versions | ||
| COPY flavor_base_deps_packages.yml /build_info/packages/flavor_base_deps_packages.yml | ||
| RUN exaslpm install --package-file /build_info/packages/flavor_base_deps_packages.yml --build-step flavor_base_deps | ||
|
|
||
| RUN /scripts/install_scripts/install_via_pip.pl --file /build_info/packages/flavor_base_deps/python3_pip_packages --python-binary python3.12 --with-versions --pip-needs-break-system-packages --ancestor-pip-package-root-path /build_info/packages |
12 changes: 2 additions & 10 deletions
12
flavors/template-Exasol-all-python-3.12/flavor_base/language_deps/Dockerfile
This file contains hidden or 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,16 +1,8 @@ | ||
| FROM {{udfclient_deps}} | ||
|
|
||
| RUN mkdir -p /build_info/packages/language_deps | ||
| COPY language_deps/packages/apt_get_packages /build_info/packages/language_deps | ||
|
|
||
| RUN /scripts/install_scripts/install_via_apt.pl --file /build_info/packages/language_deps/apt_get_packages --with-versions | ||
|
|
||
| RUN /scripts/install_scripts/install_python3.12_pip.sh "pip == 25.2" | ||
|
|
||
| COPY language_deps/packages/python3_pip_packages /build_info/packages/language_deps | ||
| RUN /scripts/install_scripts/install_via_pip.pl --file /build_info/packages/language_deps/python3_pip_packages --python-binary python3.12 --with-versions --pip-needs-break-system-packages --ancestor-pip-package-root-path /build_info/packages | ||
|
|
||
| ENV PYTHON3_PREFIX /usr | ||
| ENV PYTHON3_VERSION python3.12 | ||
| COPY language_deps_packages.yml /build_info/packages/language_deps_packages.yml | ||
| RUN exaslpm install --package-file /build_info/packages/language_deps_packages.yml --build-step language_deps | ||
|
|
||
| RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 #Needed for Bazel build |
69 changes: 69 additions & 0 deletions
69
flavors/template-Exasol-all-python-3.12/flavor_base/packages.yml
This file contains hidden or 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,69 @@ | ||
| build_steps: | ||
| - name: build_deps | ||
| phases: | ||
| - name: install_apt_packages | ||
| apt: | ||
| packages: | ||
| - name: coreutils | ||
| version: 9.4-3ubuntu6.1 | ||
| - name: tar | ||
| version: 1.35+dfsg-3build1 | ||
| - name: curl | ||
| version: 8.5.0-2ubuntu10.8 | ||
| - name: openjdk-17-jdk | ||
| version: 17.0.18+8-1~24.04.1 | ||
| - name: build-essential | ||
| version: 12.10ubuntu1 | ||
| - name: libpcre3-dev | ||
| version: 2:8.39-15build1 | ||
| - name: protobuf-compiler | ||
| version: 3.21.12-8.2ubuntu0.3 | ||
| - name: chrpath | ||
| version: 0.16-2build1 | ||
| - name: locales | ||
| version: 2.39-0ubuntu8.7 | ||
| variables: | ||
| PROTOBUF_BIN: /usr/bin/protoc | ||
| JAVA_HOME: usr/lib/jvm/java-1.17.0-openjdk-{% if platform == 'x86_64' %}amd64{% else %}arm64{% endif %} | ||
| - name: install_bazel | ||
| tools: | ||
| bazel: | ||
| version: '8.3.1' | ||
| validation_cfg: | ||
| version_mandatory: true | ||
| - name: base_test_deps | ||
| phases: | ||
| - name: install_apt_packages | ||
| apt: | ||
| packages: | ||
| - name: gdb | ||
| version: 15.0.50.20240403-0ubuntu1 | ||
| - name: valgrind | ||
| version: 1:3.22.0-0ubuntu3 | ||
| - name: binutils | ||
| version: 2.42-4ubuntu2.8 | ||
| - name: patchelf | ||
| version: 0.18.0-1.1build1 | ||
| - name: strace | ||
| version: 6.8-0ubuntu2 | ||
| validation_cfg: | ||
| version_mandatory: true | ||
| - name: security_scan | ||
| phases: | ||
| - name: install_deps | ||
| apt: | ||
| packages: | ||
| - name: gnupg | ||
| - name: install_trivy | ||
| apt: | ||
| repos: | ||
| trivy: | ||
| key_url: https://aquasecurity.github.io/trivy-repo/deb/public.key | ||
| entry: deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb | ||
| generic main | ||
| out_file: trivy.list | ||
| packages: | ||
| - name: trivy | ||
| validation_cfg: | ||
| version_mandatory: false | ||
| version: 1.0.0 | ||
This file contains hidden or 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
2 changes: 0 additions & 2 deletions
2
flavors/template-Exasol-all-python-3.12/flavor_base/testconfig
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,96 @@ | ||
| build_steps: | ||
| - name: language_deps | ||
| phases: | ||
| - name: install_apt_packages | ||
| apt: | ||
| packages: | ||
| - name: ca-certificates | ||
| version: '20240203' | ||
| - name: python3.12-dev | ||
| version: 3.12.3-1ubuntu0.12 | ||
| - name: curl | ||
| version: 8.5.0-2ubuntu10.8 | ||
| variables: | ||
| PYTHON3_PREFIX: /usr | ||
| PYTHON3_VERSION: python3.12 | ||
| - name: phase_python_binary | ||
| tools: | ||
| python_binary_path: /usr/bin/python3.12 | ||
| - name: install_pip | ||
| tools: | ||
| pip: | ||
| version: '25.2' | ||
| needs_break_system_packages: true | ||
| - name: install_pip_packages | ||
| pip: | ||
| packages: | ||
| - name: pandas | ||
| version: ==2.2.3 | ||
| extras: [] | ||
| - name: numpy | ||
| version: ==1.26.4 | ||
| extras: [] | ||
| - name: pyarrow | ||
| version: ==22.0.0 | ||
| extras: [] | ||
| install_build_tools_ephemerally: false | ||
| validation_cfg: | ||
| version_mandatory: true | ||
| - name: udfclient_deps | ||
| phases: | ||
| - name: install_apt_packages | ||
| apt: | ||
| packages: | ||
| - name: coreutils | ||
| version: 9.4-3ubuntu6.1 | ||
| - name: adduser | ||
| version: 3.137ubuntu1 | ||
| - name: locales | ||
| version: 2.39-0ubuntu8.7 | ||
| - name: libnss-db | ||
| version: 2.2.3pre1-9build3 | ||
| - name: libzmq3-dev | ||
| version: 4.3.5-1build2 | ||
| - name: cppzmq-dev | ||
| version: 4.10.0-1build1 | ||
| - name: libprotobuf-dev | ||
| version: 3.21.12-8.2ubuntu0.3 | ||
| - name: libssl-dev | ||
| version: 3.0.13-0ubuntu3.7 | ||
| variables: | ||
| PROTOBUF_LIBRARY_PREFIX: /usr/lib/ | ||
| PROTOBUF_INCLUDE_PREFIX: /usr/include/ | ||
| ZMQ_LIBRARY_PREFIX: /usr/lib | ||
| ZMQ_INCLUDE_PREFIX: /usr/include | ||
| validation_cfg: | ||
| version_mandatory: true | ||
| - name: flavor_base_deps | ||
| phases: | ||
| - name: install_apt_packages | ||
| apt: | ||
| packages: | ||
| - name: unzip | ||
| version: 6.0-28ubuntu4.1 | ||
| - name: git | ||
| version: 1:2.43.0-1ubuntu7.3 | ||
| - name: libcurl4-openssl-dev | ||
| version: 8.5.0-2ubuntu10.8 | ||
| - name: build-essential | ||
| version: 12.10ubuntu1 | ||
| validation_cfg: | ||
| version_mandatory: true | ||
| - name: flavor_customization | ||
| phases: | ||
| - name: install_apt_packages | ||
| apt: | ||
| packages: [] | ||
| # - name: p7zip-full | ||
| # version: 16.02+dfsg-6 | ||
| - name: install_pip_packages | ||
| pip: | ||
| packages: [] | ||
| # - name: tensorflow-probability | ||
| # version: ==0.9.0 | ||
| validation_cfg: | ||
| version_mandatory: false | ||
| version: 1.0.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.