forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fixing the gradle version to 8.7 #319
Merged
Merged
Conversation
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
After the change is applied, the docker images build properly: $ ./ci.sh up
WARN[0000] /home/fede/src/wazuh-indexer/docker/ci/ci.yml: `version` is obsolete
[+] Running 2/2
! wi-build Warning pull access denied for wi-build, repository does not exist or may require 'docker login': denied: requested access to the resource i... 2.5s
! wi-assemble Warning pull access denied for wi-assemble, repository does not exist or may require 'docker login': denied: requested access to the reso... 2.5s
[+] Building 62.0s (14/20) docker:default
=> [wi-build internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 683B 0.0s
=> [wi-assemble internal] load metadata for docker.io/library/ubuntu:jammy 1.4s
=> [wi-build internal] load metadata for docker.io/library/eclipse-temurin:21-jdk-alpine 1.5s
=> [wi-build internal] load metadata for docker.io/library/gradle:8.7.0-jdk21-alpine 2.5s
=> [wi-assemble internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> CACHED [wi-assemble 1/3] FROM docker.io/library/ubuntu:jammy@sha256:340d9b015b194dc6e2a13938944e0d016e57b9679963fdeb9ce021daac430221 0.0s
=> [wi-assemble 2/3] RUN mkdir /home/wazuh-indexer && apt-get update -y && apt-get install curl gnupg2 -y && curl -o- https://www.aptly.info/pubkey.txt | apt-key 60.5s
=> => # Get:297 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-16-0 amd64 10.39-3ubuntu0.1 [203 kB]
=> => # Get:298 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-32-0 amd64 10.39-3ubuntu0.1 [194 kB]
=> => # Get:299 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-posix3 amd64 10.39-3ubuntu0.1 [6130 B]
=> => # Get:300 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-dev amd64 10.39-3ubuntu0.1 [730 kB]
=> => # Get:301 http://archive.ubuntu.com/ubuntu jammy/main amd64 libselinux1-dev amd64 3.3-1build2 [158 kB]
=> => # Get:302 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libmount-dev amd64 2.37.2-4ubuntu3.4 [14.5 kB]
=> [wi-build internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wi-build builder 1/4] FROM docker.io/library/gradle:8.7.0-jdk21-alpine@sha256:d6ea1c746d8365fae41c70d5812c28c8fca88c905b69d5f9da57ad4cc0218ab1 32.6s
=> => resolve docker.io/library/gradle:8.7.0-jdk21-alpine@sha256:d6ea1c746d8365fae41c70d5812c28c8fca88c905b69d5f9da57ad4cc0218ab1 0.0s
=> => sha256:b59e9873ba742a479cce77b1222861958ce5a6e621b95bf2ddcd3496e2d22b7c 2.90kB / 2.90kB 0.0s
=> => sha256:d3e26ecb87fb595e4952cc40f85668ec6b8df141786d550ba0867bd003bd22ba 7.72kB / 7.72kB 0.0s
=> => sha256:a3fd38fd7cf5b8d60c92e1aa46a24527229fb51b451491d35a7028a8a1d0aba4 13.14MB / 13.14MB 3.8s
=> => sha256:d6ea1c746d8365fae41c70d5812c28c8fca88c905b69d5f9da57ad4cc0218ab1 2.68kB / 2.68kB 0.0s
=> => sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8 3.41MB / 3.41MB 0.5s
=> => sha256:332bf309ecf2b86f336452cb3137f9b266c99d9a10612bd124e2f13e0dad9bb3 158.72MB / 158.72MB 24.0s
=> => extracting sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8 0.0s
=> => sha256:2e377b89d6767f434b66aef2b55d4397fa1ca4ef205a16f2fc626005be867634 190B / 190B 1.1s
=> => sha256:45705fa60e5881f3a69ceb008964dcca0e72d626655d99b6d92e4c0834c7131b 717B / 717B 1.5s
=> => sha256:139b55c8532d30c022b37d343fee5e3b33a0e8e51e903d285b6624f144025cdd 1.31kB / 1.31kB 2.1s
=> => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 2.4s
=> => sha256:450b7f4750e03e0b16c111f939835cb461fdd66a163773c1c68a5d7cfee2268f 34.88MB / 34.88MB 11.0s
=> => extracting sha256:a3fd38fd7cf5b8d60c92e1aa46a24527229fb51b451491d35a7028a8a1d0aba4 0.2s
=> => sha256:f38f7076143cf0fdb81f64c889e46d42d2a09e9f16c468f28101ed517c1ee156 134.21MB / 134.21MB 32.2s
=> => sha256:7bda177df30edadfddb14fc7938185363d1a975fa06f625dfd41bba520bae1ee 54.91kB / 54.91kB 11.4s
=> => extracting sha256:332bf309ecf2b86f336452cb3137f9b266c99d9a10612bd124e2f13e0dad9bb3 0.8s
=> => extracting sha256:2e377b89d6767f434b66aef2b55d4397fa1ca4ef205a16f2fc626005be867634 [+] Building 62.1s (14/20) docker:default => [wi-build internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 683B 0.0s => [wi-assemble internal] load metadata for docker.io/library/ubuntu:jammy 1.4s => [wi-build internal] load metadata for docker.io/library/eclipse-temurin:21-jdk-alpine 1.5s => [wi-build internal] load metadata for docker.io/library/gradle:8.7.0-jdk21-alpine 2.5s => [wi-assemble internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [wi-assemble 1/3] FROM docker.io/library/ubuntu:jammy@sha256:340d9b015b194dc6e2a13938944e0d016e57b9679963fdeb9ce021daac430221 0.0s50f497824540d90ff29d4b819a6a6287a5eb1b03a71e4c2167b => [wi-assemble 2/3] RUN mkdir /home/wazuh-indexer && apt-get update -y && apt-get install curl gnupg2 -y && curl -o- https://www.aptly.info/pubkey.txt | apt-key 60.7s-g 1000 wazuh-indexer && adduser -u 1000 -G wazuh-indexer -D => => # Get:297 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-16-0 amd64 10.39-3ubuntu0.1 [203 kB] => => # Get:298 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-32-0 amd64 10.39-3ubuntu0.1 [194 kB] => => # Get:299 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-posix3 amd64 10.39-3ubuntu0.1 [6130 B] => => # Get:300 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpcre2-dev amd64 10.39-3ubuntu0.1 [730 kB] => => # Get:301 http://archive.ubuntu.com/ubuntu jammy/main amd64 libselinux1-dev amd64 3.3-1build2 [158 kB] => => # Get:302 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libmount-dev amd64 2.37.2-4ubuntu3.4 [14.5 kB] => [wi-build internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [wi-build builder 1/4] FROM docker.io/library/gradle:8.7.0-jdk21-alpine@sha256:d6ea1c746d8365fae41c70d5812c28c8fca88c905b69d5f9da57ad4cc0218ab1 32.6s
=> => resolve docker.io/library/gradle:8.7.0-jdk21-alpine@sha256:d6ea1c746d8365fae41c70d5812c28c8fca88c905b69d5f9da57ad4cc0218ab1 0.0s
=> => sha256:b59e9873ba742a479cce77b1222861958ce5a6e621b95bf2ddcd3496e2d22b7c 2.90kB / 2.90kB 0.0s
=> => sha256:d3e26ecb87fb595e4952cc40f85668ec6b8df141786d550ba0867bd003bd22ba 7.72kB / 7.72kB 0.0s
=> => sha256:a3fd38fd7cf5b8d60c92e1aa46a24527229fb51b451491d35a7028a8a1d0aba4 13.14MB / 13.14MB 3.8s
=> => sha256:d6ea1c746d8365fae41c70d5812c28c8fca88c905b69d5f9da57ad4cc0218ab1 2.68kB / 2.68kB 0.0s
=> => sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8 3.41MB / 3.41MB 0.5s
=> => sha256:332bf309ecf2b86f336452cb3137f9b266c99d9a10612bd124e2f13e0dad9bb3 158.72MB / 158.72MB 24.0s
=> => extracting sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92ec14ff61e67fbaf8 0.0s
=> => sha256:2e377b89d6767f434b66aef2b55d4397fa1ca4ef205a16f2fc626005be867634 190B / 190B 1.1s
=> => sha256:45705fa60e5881f3a69ceb008964dcca0e72d626655d99b6d92e4c0834c7131b 717B / 717B 1.5s
=> => sha256:139b55c8532d30c022b37d343fee5e3b33a0e8e51e903d285b6624f144025cdd 1.31kB / 1.31kB 2.1s
=> => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 2.4s
=> => sha256:450b7f4750e03e0b16c111f939835cb461fdd66a163773c1c68a5d7cfee2268f 34.88MB / 34.88MB 11.0s
=> => extracting sha256:a3fd38fd7cf5b8d60c92e1aa46a24527229fb51b451491d35a7028a8a1d0aba4 0.2s
=> => sha256:f38f7076143cf0fdb81f64c889e46d42d2a09e9f16c468f28101ed517c1ee156 134.21MB / 134.21MB 32.2s
=> => sha256:7bda177df30edadfddb14fc7938185363d1a975fa06f625dfd41bba520bae1ee 54.91kB / 54.91kB 11.4s
=> => extracting sha256:332bf309ecf2b86f336452cb3137f9b266c99d9a10612bd124e2f13e0dad9bb3 0.8s
=> => extracting sha256:2e377b89d6767f434b66aef2b55d4397fa1ca4ef205a16f2fc626005be867634 [+] Building 190.8s (22/22) FINISHED docker:default
=> [wi-assemble internal] load build definition from Dockerfile 0.0s8 => => transferring dockerfile: 1.11kB 0.0s => [wi-build internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 683B 0.0s1 => [wi-assemble internal] load metadata for docker.io/library/ubuntu:jamm 1.4s => [wi-build internal] load metadata for docker.io/library/eclipse-temuri 1.5s
=> [wi-build internal] load metadata for docker.io/library/gradle:8.7.0-j 2.5sc => [wi-assemble internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s
=> CACHED [wi-assemble 1/3] FROM docker.io/library/ubuntu:jammy@sha256:34 0.0sc => [wi-assemble 2/3] RUN mkdir /home/wazuh-indexer && apt-get updat 107.2s => [wi-build internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s1 => [wi-build builder 1/4] FROM docker.io/library/gradle:8.7.0-jdk21-alpi 32.6s => => resolve docker.io/library/gradle:8.7.0-jdk21-alpine@sha256:d6ea1c74 0.0s
=> => sha256:b59e9873ba742a479cce77b1222861958ce5a6e621b9 2.90kB / 2.90kB 0.0s5 => => sha256:d3e26ecb87fb595e4952cc40f85668ec6b8df141786d 7.72kB / 7.72kB 0.0s => => sha256:a3fd38fd7cf5b8d60c92e1aa46a24527229fb51b45 13.14MB / 13.14MB 3.8s
=> => sha256:d6ea1c746d8365fae41c70d5812c28c8fca88c905b69 2.68kB / 2.68kB 0.0s => => sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc 3.41MB / 3.41MB 0.5s => => sha256:332bf309ecf2b86f336452cb3137f9b266c99d9 158.72MB / 158.72MB 24.0s
=> => extracting sha256:4abcf20661432fb2d719aaf90656f55c287f8ca915dc1c92e 0.0s => => sha256:2e377b89d6767f434b66aef2b55d4397fa1ca4ef205a16f2 190B / 190B 1.1s => => sha256:45705fa60e5881f3a69ceb008964dcca0e72d626655d99b6 717B / 717B 1.5s
=> => sha256:139b55c8532d30c022b37d343fee5e3b33a0e8e51e90 1.31kB / 1.31kB 2.1ss => => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d7 32B / 32B 2.4s => => sha256:450b7f4750e03e0b16c111f939835cb461fdd66a1 34.88MB / 34.88MB 11.0s
=> => extracting sha256:a3fd38fd7cf5b8d60c92e1aa46a24527229fb51b451491d35 0.2s => => sha256:f38f7076143cf0fdb81f64c889e46d42d2a09e9 134.21MB / 134.21MB 32.2sD => => sha256:7bda177df30edadfddb14fc7938185363d1a975fa 54.91kB / 54.91kB 11.4s
=> => extracting sha256:332bf309ecf2b86f336452cb3137f9b266c99d9a10612bd12 0.8s => => extracting sha256:2e377b89d6767f434b66aef2b55d4397fa1ca4ef205a16f2f 0.0s => => extracting sha256:45705fa60e5881f3a69ceb008964dcca0e72d626655d99b6d 0.0s
=> => extracting sha256:139b55c8532d30c022b37d343fee5e3b33a0e8e51e903d285 0.0s => => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d 0.0s => => extracting sha256:450b7f4750e03e0b16c111f939835cb461fdd66a163773c1c 0.6s
=> => extracting sha256:f38f7076143cf0fdb81f64c889e46d42d2a09e9f16c468f28 0.4s => => extracting sha256:7bda177df30edadfddb14fc7938185363d1a975fa06f625df 0.0s => [wi-build internal] load build context 2.1s
=> => transferring context: 11.99MB 2.0s => [wi-build stage-1 1/5] FROM docker.io/library/eclipse-temurin:21-jdk-a 0.0s => CACHED [wi-build stage-1 2/5] RUN apk add git && apk add curl && a 0.0s
=> [wi-build builder 2/4] WORKDIR /home/wazuh-indexer 0.2s => [wi-build builder 3/4] COPY --chown=gradle:gradle . /home/wazuh-index 11.5s => [wi-build builder 4/4] RUN gradle clean 115.3s
=> [wi-assemble 3/3] WORKDIR /home/wazuh-indexer 0.0s => [wi-assemble] exporting to image 2.4s => => exporting layers 2.4s
=> => writing image sha256:4e025398523427110116702d31c093185465cc6c225c3b 0.0s => => naming to docker.io/library/wi-assemble:4.9.0 0.0s => [wi-build stage-1 3/5] COPY --from=builder --chown=1000:0 /home/wazuh 11.7s
=> [wi-build stage-1 4/5] WORKDIR /home/wazuh-indexer 0.0s => [wi-build stage-1 5/5] RUN git config --global --add safe.directory /h 0.2s => [wi-build] exporting to image 10.5s
=> => exporting layers 10.5s
=> => writing image sha256:9bdd92acb28713ed7fb2a38102e30b97a8fd15f2b5a711 0.0s
=> => naming to docker.io/library/wi-build:4.9.0 0.0s
[+] Running 3/3
✔ Network ci_default Created 0.1s
✔ Container wi-assemble_4.9.0 Started 0.4s
✔ Container wi-build_4.9.0 Started 0.4s
|
havidarou
approved these changes
Jul 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR fixes the docker images gradle version to
8.7
, just before theirInstallationLocation
constructor was modified.As detailed in the issue, there is already a merged PR from opensearch, but it's beyond version
2.15
, so this is a temporary fix.Issues Resolved
Resolves #318
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.