Skip to content

Commit 49b5e73

Browse files
authored
Merge pull request #5963 from rabbitmq/mergify/bp/v3.11.x/pr-5962
Add otp 25.1 to //packaging/docker-image:rabbitmq (backport #5962)
2 parents 5343682 + c12eb07 commit 49b5e73

File tree

3 files changed

+13
-34
lines changed

3 files changed

+13
-34
lines changed

WORKSPACE

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,19 @@ http_file(
7777
)
7878

7979
http_file(
80-
name = "otp_src_25",
80+
name = "otp_src_25_0",
8181
downloaded_file_path = "OTP-25.0.4.tar.gz",
8282
sha256 = "05878cb51a64b33c86836b12a21903075c300409b609ad5e941ddb0feb8c2120",
8383
urls = ["https://github.com/erlang/otp/archive/OTP-25.0.4.tar.gz"],
8484
)
8585

86+
http_file(
87+
name = "otp_src_25_1",
88+
downloaded_file_path = "OTP-25.1.tar.gz",
89+
sha256 = "e00b2e02350688ee4ac83c41ec25c210774fe73b7f806860c46b185457ae135e",
90+
urls = ["https://github.com/erlang/otp/archive/OTP-25.1.tar.gz"],
91+
)
92+
8693
http_archive(
8794
name = "io_buildbuddy_buildbuddy_toolchain",
8895
sha256 = "a2a5cccec251211e2221b1587af2ce43c36d32a42f5d881737db3b546a536510",

packaging/docker-image/BUILD.bazel

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
load(
2-
"@bazel_skylib//lib:selects.bzl",
3-
"selects",
4-
)
51
load(
62
"@io_bazel_rules_docker//container:container.bzl",
73
"container_image",
@@ -112,30 +108,6 @@ container_run_and_commit_layer(
112108
tags = ["manual"],
113109
)
114110

115-
selects.config_setting_group(
116-
name = "erlang_23_internal",
117-
match_all = [
118-
"@erlang_config//:erlang_internal",
119-
"@erlang_config//:erlang_23",
120-
],
121-
)
122-
123-
selects.config_setting_group(
124-
name = "erlang_24_internal",
125-
match_all = [
126-
"@erlang_config//:erlang_internal",
127-
"@erlang_config//:erlang_24",
128-
],
129-
)
130-
131-
selects.config_setting_group(
132-
name = "erlang_25_internal",
133-
match_all = [
134-
"@erlang_config//:erlang_internal",
135-
"@erlang_config//:erlang_25",
136-
],
137-
)
138-
139111
container_image(
140112
name = "otp_source",
141113
base = ":otp_pkgs_image",
@@ -148,10 +120,10 @@ container_image(
148120
],
149121
tags = ["manual"],
150122
tars = select({
151-
":erlang_23_internal": ["@otp_src_23//file"],
152-
":erlang_24_internal": ["@otp_src_24//file"],
153-
":erlang_25_internal": ["@otp_src_25//file"],
154-
"//conditions:default": ["@otp_src_25//file"],
123+
"@erlang_config//:erlang_23": ["@otp_src_23//file"],
124+
"@erlang_config//:erlang_24": ["@otp_src_24//file"],
125+
"@erlang_config//:erlang_25_0": ["@otp_src_25_0//file"],
126+
"@erlang_config//:erlang_25_1": ["@otp_src_25_1//file"],
155127
}),
156128
)
157129

packaging/docker-image/test_configs/otp_ubuntu.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ commandTests:
77
- -noshell
88
- -eval
99
- '{ok, Version} = file:read_file(filename:join([code:root_dir(), "releases", erlang:system_info(otp_release), "OTP_VERSION"])), io:fwrite(Version), halt().'
10-
expectedOutput: ["2\\d\\.\\d+\\.\\d+"]
10+
expectedOutput: ["2\\d\\.\\d+"]

0 commit comments

Comments
 (0)