Skip to content

Commit 28c5117

Browse files
authored
Merge pull request #22 from esl/otp24
Update amoc-arsenal
2 parents d3d0228 + d4cabe7 commit 28c5117

9 files changed

Lines changed: 117 additions & 88 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,28 @@
1313
name: OTP ${{matrix.otp}}
1414
strategy:
1515
matrix:
16-
otp: ['22.3', '21.3']
16+
otp: ['24.0', '23.3.1']
1717
runs-on: 'ubuntu-20.04'
1818
steps:
1919
- uses: actions/checkout@v2
2020
with:
2121
fetch-depth: 0
22-
- uses: ErlGang/setup-erlang@v1.0.0
22+
- uses: erlef/setup-beam@v1
2323
with:
2424
otp-version: ${{ matrix.otp }}
25+
rebar3-version: '3.16.1'
2526
- name: Compile project
26-
run: ./rebar3 compile
27+
run: rebar3 compile
2728
- name: run xref check
28-
run: ./rebar3 xref
29+
run: rebar3 xref
2930
- name: run dialyzer check
30-
run: ./rebar3 dialyzer
31+
run: rebar3 dialyzer
3132

3233
integration_test:
3334
name: docker container test with OTP ${{matrix.otp}}
3435
strategy:
3536
matrix:
36-
otp: ['22.3', '21.3']
37+
otp: ['24.0', '23.3.1']
3738
runs-on: 'ubuntu-20.04'
3839
env:
3940
OTP_RELEASE: ${{ matrix.otp }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/)
55

6+
## [1.1.0](https://github.com/esl/amoc/compare/1.0.0-beta...1.0.0) - 2021-07-16
7+
8+
### Changed:
9+
- Migrated to OTP24
10+
- Updated dependencies
11+
- Updated AMOC REST API
12+
613
## [1.0.0](https://github.com/esl/amoc/compare/1.0.0-beta...1.0.0) - 2019-12-05
714

815
### Changed:

Dockerfile

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
1-
2-
FROM phusion/baseimage:bionic-1.0.0 as base
3-
4-
FROM base AS builder
1+
FROM phusion/baseimage:focal-1.0.0 as builder
52

63
ARG DEBIAN_FRONTEND=noninteractive
7-
RUN apt-get update
8-
RUN apt-get install -y gnupg2
4+
RUN apt-get update && \
5+
apt-get install -y git g++ make openssl libssl-dev gnupg2 wget
96

10-
ADD https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb /tmp/
11-
RUN dpkg -i /tmp/erlang-solutions_2.0_all.deb
12-
RUN apt-get update
7+
ARG otp_vsn=24.0-1
138

14-
## to get the list of all available versions for your distro run:
15-
## apt-cache policy esl-erlang
16-
ARG otp_vsn=1:22.3-1
17-
RUN apt-get install -y esl-erlang=${otp_vsn}
9+
RUN wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && \
10+
dpkg -i erlang-solutions_2.0_all.deb && \
11+
apt-get update && \
12+
apt-get install -y esl-erlang=1:${otp_vsn}
1813

19-
RUN apt-get install -y git g++ openssl libssl-dev
14+
ARG REBAR3_VERSION="3.16.1"
15+
RUN set -xe \
16+
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/releases/download/${REBAR3_VERSION}/rebar3" \
17+
&& curl -fSL -o rebar3 "$REBAR3_DOWNLOAD_URL" \
18+
&& install -v ./rebar3 /usr/local/bin/
2019

2120
COPY . /amoc_arsenal_build
2221
WORKDIR /amoc_arsenal_build
2322
RUN git clean -ffxd
24-
RUN ./rebar3 release
23+
RUN rebar3 release
2524

26-
FROM base
25+
FROM builder
2726
MAINTAINER Erlang Solutions <mongoose-im@erlang-solutions.com>
2827

2928
RUN useradd -ms /bin/bash amoc

ci/build_docker_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Get current repo version
44
version="$(git rev-parse --short HEAD)"
5-
otp_vsn="1:${OTP_RELEASE:-22.3}-1"
5+
otp_vsn="${OTP_RELEASE:-24.0}-1"
66
echo "ERLANG/OTP ${otp_vsn}"
77
echo "AMOC-ARSENAL-XMPP ${version}"
88

ci/test_docker_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ done
2727

2828
for i in $(seq 1 "$number_of_nodes"); do
2929
name="amoc-arsenal-$i"
30-
output="$(docker exec -t "$name" "$path_to_exec" eval "nodes()")"
30+
output="$(docker exec -t "$name" "$path_to_exec" eval "nodes().")"
3131
echo "container == '${name}', nodes() == ${output}"
3232
for j in $(seq 1 "$number_of_nodes"); do
3333
if [ "$j" -ne "$i" ]; then

rebar.config

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{ erl_opts, [
2-
debug_info,
3-
{parse_transform, lager_transform}
2+
debug_info
43
]}.
54

65
{ deps, [
7-
{escalus, {git, "https://github.com/esl/escalus.git", {branch, "master"}}},
8-
{amoc, {git, "https://github.com/esl/amoc", {ref, "f02a1f7"}}},
9-
{lager, "3.6.8"}
6+
{amoc, {git, "https://github.com/esl/amoc", {tag, "2.2.0"}}},
7+
{escalus, "4.2.2"},
8+
{jiffy, "1.0.8"}
109
]}.
1110

1211
{ xref_checks, [
@@ -16,10 +15,9 @@
1615
]}.
1716

1817
{ relx, [
19-
{release, {amoc_arsenal_xmpp, {git, short}}, [amoc_arsenal_xmpp]},
18+
{release, {amoc_arsenal_xmpp, {git, short}}, [amoc_arsenal_xmpp, amoc]},
19+
{debug_info, keep},
2020
{dev_mode, false},
21-
{include_src, false},
22-
{include_erts, true},
2321
{extended_start_script, true},
2422
{sys_config, "rel/app.config"}
2523
]}.

rebar.lock

Lines changed: 78 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
{"1.1.0",
1+
{"1.2.0",
22
[{<<"amoc">>,
33
{git,"https://github.com/esl/amoc",
4-
{ref,"f02a1f7b052ed02e9a5ef5db93e10bf33bb05b9c"}},
4+
{ref,"44fc97e34b9911c012945dfe041104f32e16ed06"}},
55
0},
66
{<<"amoc_rest">>,
77
{git,"https://github.com/esl/amoc_rest.git",
8-
{ref,"59ccffad8fa3662bde44f54772a01c60192f8b04"}},
9-
1},
10-
{<<"base16">>,{pkg,<<"base16">>,<<"1.0.0">>},1},
11-
{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.10.0">>},1},
12-
{<<"cowboy">>,{pkg,<<"cowboy">>,<<"2.8.0">>},2},
13-
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.6.0">>},2},
14-
{<<"escalus">>,
15-
{git,"https://github.com/esl/escalus.git",
16-
{ref,"a59a834ef8ef8f47ee2e1339c1471dd207a4cdb3"}},
17-
0},
18-
{<<"exml">>,
19-
{git,"https://github.com/esl/exml.git",
20-
{ref,"078499f8b2d36ba9957bc931321f41c0a48c4a05"}},
8+
{ref,"103c3123a8cf0464b9c3f9392af6a396673f67bd"}},
219
1},
10+
{<<"base16">>,{pkg,<<"base16">>,<<"2.0.0">>},1},
11+
{<<"bbmustache">>,{pkg,<<"bbmustache">>,<<"1.12.1">>},1},
12+
{<<"cowboy">>,{pkg,<<"cowboy">>,<<"2.9.0">>},2},
13+
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.7.3">>},2},
14+
{<<"docsh">>,{pkg,<<"docsh">>,<<"0.7.2">>},1},
15+
{<<"escalus">>,{pkg,<<"escalus">>,<<"4.2.2">>},0},
16+
{<<"exml">>,{pkg,<<"hexml">>,<<"3.0.5">>},1},
2217
{<<"exometer_core">>,
2318
{git,"https://github.com/esl/exometer_core.git",
2419
{ref,"979ff04bcabc276c122b47fb7e6b54fbded62576"}},
@@ -27,50 +22,78 @@
2722
{git,"https://github.com/esl/exometer_report_graphite.git",
2823
{ref,"264dd7bcbadbd7febcd43917302251286c88b681"}},
2924
1},
30-
{<<"fast_scram">>,{pkg,<<"fast_scram">>,<<"0.2.0">>},1},
31-
{<<"fast_tls">>,
32-
{git,"https://github.com/processone/fast_tls.git",
33-
{ref,"f91cc81075f320d260655bc92799d50d87b4afe9"}},
34-
1},
35-
{<<"fusco">>,
36-
{git,"https://github.com/esl/fusco.git",
37-
{ref,"de08adef32d12f0984d6d1c6fec28be207db2e7e"}},
38-
1},
39-
{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.9">>},1},
40-
{<<"gun">>,{pkg,<<"gun">>,<<"1.3.2">>},1},
25+
{<<"fast_pbkdf2">>,{pkg,<<"fast_pbkdf2">>,<<"1.0.1">>},2},
26+
{<<"fast_scram">>,{pkg,<<"fast_scram">>,<<"0.4.1">>},1},
27+
{<<"fast_tls">>,{pkg,<<"fast_tls">>,<<"1.1.12">>},1},
28+
{<<"fusco">>,{pkg,<<"fusco">>,<<"0.1.1">>},1},
29+
{<<"getopt">>,{pkg,<<"getopt">>,<<"1.0.1">>},3},
30+
{<<"gun">>,{pkg,<<"gun">>,<<"1.3.3">>},1},
4131
{<<"hut">>,{pkg,<<"hut">>,<<"1.2.1">>},2},
42-
{<<"jesse">>,{pkg,<<"jesse">>,<<"1.5.5">>},2},
43-
{<<"jsx">>,{pkg,<<"jsx">>,<<"2.11.0">>},2},
44-
{<<"lager">>,{pkg,<<"lager">>,<<"3.6.8">>},0},
45-
{<<"meck">>,{pkg,<<"meck">>,<<"0.8.13">>},1},
46-
{<<"p1_utils">>,{pkg,<<"p1_utils">>,<<"1.0.21">>},2},
32+
{<<"jesse">>,{pkg,<<"jesse">>,<<"1.5.6">>},2},
33+
{<<"jiffy">>,{pkg,<<"jiffy">>,<<"1.0.8">>},0},
34+
{<<"jsx">>,{pkg,<<"jsx">>,<<"3.1.0">>},2},
35+
{<<"meck">>,{pkg,<<"meck">>,<<"0.9.2">>},1},
36+
{<<"p1_utils">>,{pkg,<<"p1_utils">>,<<"1.0.22">>},2},
4737
{<<"parse_trans">>,{pkg,<<"parse_trans">>,<<"3.3.0">>},2},
48-
{<<"quickrand">>,{pkg,<<"quickrand">>,<<"1.8.0">>},2},
49-
{<<"ranch">>,{pkg,<<"ranch">>,<<"1.7.1">>},3},
50-
{<<"rfc3339">>,
51-
{git,"https://github.com/talentdeficit/rfc3339.git",
52-
{ref,"31716adecb4b405b1f5ef80b9f3fa50f39b26af8"}},
53-
2},
54-
{<<"uuid">>,{pkg,<<"uuid_erl">>,<<"1.8.0">>},1},
55-
{<<"worker_pool">>,{pkg,<<"worker_pool">>,<<"3.2.0">>},1}]}.
38+
{<<"providers">>,{pkg,<<"providers">>,<<"1.8.1">>},2},
39+
{<<"quickrand">>,{pkg,<<"quickrand">>,<<"2.0.2">>},2},
40+
{<<"ranch">>,{pkg,<<"ranch">>,<<"1.8.0">>},3},
41+
{<<"rfc3339">>,{pkg,<<"rfc3339">>,<<"0.9.0">>},2},
42+
{<<"uuid">>,{pkg,<<"uuid_erl">>,<<"2.0.2">>},1},
43+
{<<"worker_pool">>,{pkg,<<"worker_pool">>,<<"4.0.3">>},1}]}.
5644
[
5745
{pkg_hash,[
58-
{<<"base16">>, <<"283644E2B21BD5915ACB7178BED7851FB07C6E5749B8FAD68A53C501092176D9">>},
59-
{<<"bbmustache">>, <<"DDC927463F0E95D66CDAC889153AF08015D609124D6D79006C248AD2DE7F6ECD">>},
60-
{<<"cowboy">>, <<"F3DC62E35797ECD9AC1B50DB74611193C29815401E53BAC9A5C0577BD7BC667D">>},
61-
{<<"cowlib">>, <<"8AA629F81A0FC189F261DC98A42243FA842625FEEA3C7EC56C48F4CCDB55490F">>},
62-
{<<"fast_scram">>, <<"1F8F467D34374D00CE4AB8D6F78430EA8ADCCD2DA6D5BA0069B9EA8A1CAC6DE1">>},
63-
{<<"goldrush">>, <<"F06E5D5F1277DA5C413E84D5A2924174182FB108DABB39D5EC548B27424CD106">>},
64-
{<<"gun">>, <<"542064CBB9F613650B8A8100B3A927505F364FBE198B7A5A112868FF43F3E477">>},
46+
{<<"base16">>, <<"9DA694FA0778DF31522A1B9EB349BA4AC9063B497234DC49509C1F5C37F336A2">>},
47+
{<<"bbmustache">>, <<"857FBDF86BDA46D07201B0E7A969820CB763A7C174C485FD0780D7E033EFE9F0">>},
48+
{<<"cowboy">>, <<"865DD8B6607E14CF03282E10E934023A1BD8BE6F6BACF921A7E2A96D800CD452">>},
49+
{<<"cowlib">>, <<"A7FFCD0917E6D50B4D5FB28E9E2085A0CEB3C97DEA310505F7460FF5ED764CE9">>},
50+
{<<"docsh">>, <<"F893D5317A0E14269DD7FE79CF95FB6B9BA23513DA0480EC6E77C73221CAE4F2">>},
51+
{<<"escalus">>, <<"C0F5A9D05C4C10BCE5A77F1FDD35E5BA467D2C00C803AFCE7061518B36D058A5">>},
52+
{<<"exml">>, <<"2A79262A744A9B100A9A27A8E76EADCF146F17653DABA2A88A74C8CF5B06ADF3">>},
53+
{<<"fast_pbkdf2">>, <<"E63454F7FAA6D6E43751DD44EB7C287EB3509DA92CE7F4AE00661AC580A96100">>},
54+
{<<"fast_scram">>, <<"592E7943028EE86284EAAE5EA868545ACEB4A5CC7EF77829E2E54F19F57FAD7E">>},
55+
{<<"fast_tls">>, <<"B11997D96D4306ABCD4CDB9FFA77CCFC0F826F64BED77ECACEB48B2DC46B9202">>},
56+
{<<"fusco">>, <<"3DD6A90151DFEF30EA1937CC44E9A59177C0094918388D9BCAA2F2DC5E2AE4AA">>},
57+
{<<"getopt">>, <<"C73A9FA687B217F2FF79F68A3B637711BB1936E712B521D8CE466B29CBF7808A">>},
58+
{<<"gun">>, <<"CF8B51BEB36C22B9C8DF1921E3F2BC4D2B1F68B49AD4FBC64E91875AA14E16B4">>},
6559
{<<"hut">>, <<"08D46679523043424870723923971889E8A34D63B2F946A35B46CF921D1236E7">>},
66-
{<<"jesse">>, <<"ECFD2C1634C49052CA907B4DFDE1D1F44B7FD7862D933F4590807E42759B8072">>},
67-
{<<"jsx">>, <<"08154624050333919B4AC1B789667D5F4DB166DC50E190C4D778D1587F102EE0">>},
68-
{<<"lager">>, <<"897EFC7679BB82383448646C96768CDC4E747464DD18B999C7AACA485686B0DA">>},
69-
{<<"meck">>, <<"FFEDB39F99B0B99703B8601C6F17C7F76313EE12DE6B646E671E3188401F7866">>},
70-
{<<"p1_utils">>, <<"9D6244BBD4AF881E85AF71655E8BE5720B5B965B1BDD51A35C7871FD4142AF9A">>},
60+
{<<"jesse">>, <<"593B8CAD26AF3CC0E44C727BD8CBDE56E2B0DE4C8D2738B1C258B6936A40A6A3">>},
61+
{<<"jiffy">>, <<"60E36F00BE35E5AC6E6CF2D4CAF3BDF3103D4460AFF385F543A8D7DF2D6D9613">>},
62+
{<<"jsx">>, <<"D12516BAA0BB23A59BB35DCCAF02A1BD08243FCBB9EFE24F2D9D056CCFF71268">>},
63+
{<<"meck">>, <<"85CCBAB053F1DB86C7CA240E9FC718170EE5BDA03810A6292B5306BF31BAE5F5">>},
64+
{<<"p1_utils">>, <<"10A70FAA665D1F8F6995FA100D068B4D910EE2A0111FA3567E9D6232CBB86F21">>},
7165
{<<"parse_trans">>, <<"09765507A3C7590A784615CFD421D101AEC25098D50B89D7AA1D66646BC571C1">>},
72-
{<<"quickrand">>, <<"E47CE597FF067385FF5836C8C7706AC7F8AA7B47DD90C6417E05B64696F872FA">>},
73-
{<<"ranch">>, <<"6B1FAB51B49196860B733A49C07604465A47BDB78AA10C1C16A3D199F7F8C881">>},
74-
{<<"uuid">>, <<"280014F8FF57FCE36EE6E91C3ECF21CBFCE78AAE9854C09597BB4C11E27B66D6">>},
75-
{<<"worker_pool">>, <<"54DD752BA4CA4B702124C45803AA958B36BCE77D683B87886606F1AADA3E124D">>}]}
66+
{<<"providers">>, <<"70B4197869514344A8A60E2B2A4EF41CA03DEF43CFB1712ECF076A0F3C62F083">>},
67+
{<<"quickrand">>, <<"1D73FAA52E0C149FCBC72A63C26135FF68BE8FA7870675C73645896788A7540C">>},
68+
{<<"ranch">>, <<"8C7A100A139FD57F17327B6413E4167AC559FBC04CA7448E9BE9057311597A1D">>},
69+
{<<"rfc3339">>, <<"2075653DC9407541C84B1E15F8BDA2ABE95FB17C9694025E079583F2D19C1060">>},
70+
{<<"uuid">>, <<"0D1CA9D94CA3B058467BCE20B7706CC816A2BDBBE0574DD008936AE97EA4EBE7">>},
71+
{<<"worker_pool">>, <<"729D98AF0EEF31D10A6027C5AF2EDD4EA7D6CF91E96B03C189BB47F6FDE9667C">>}]},
72+
{pkg_hash_ext,[
73+
{<<"base16">>, <<"63067A9F73D2422F15344A1EAF7033C3B339DC64DA0229DE3DF26F0F6F1E4F82">>},
74+
{<<"bbmustache">>, <<"F4320778C31A821A2A664DB8894618ABB79C1AF7BBF7C03C703C8868D9BB09FE">>},
75+
{<<"cowboy">>, <<"2C729F934B4E1AA149AFF882F57C6372C15399A20D54F65C8D67BEF583021BDE">>},
76+
{<<"cowlib">>, <<"1E1A3D176D52DAEBBECBBCDFD27C27726076567905C2A9D7398C54DA9D225761">>},
77+
{<<"docsh">>, <<"4E7DB461BB07540D2BC3D366B8513F0197712D0495BB85744F367D3815076134">>},
78+
{<<"escalus">>, <<"AA931EC978309378C3C2552D7DCDDBEC57FC8B56DEF2AC92B489A20C14801983">>},
79+
{<<"exml">>, <<"426B50FA455C95760BA4F7C75ED76F90A58837742CBE38A86C6A75BEFA383907">>},
80+
{<<"fast_pbkdf2">>, <<"CF834AB70270C628C8A37E9BFA4D7282AD6FF0C5DE6C8EB6A2F88C09F890857B">>},
81+
{<<"fast_scram">>, <<"7948D5B2D09C30463620F52AEA5865BE954E3AD0230E267DE2D34C5C3F110291">>},
82+
{<<"fast_tls">>, <<"C3D80828F5D985CBA4C93660FFBF2C9B9CD831303382B97832DD66429FB16F8A">>},
83+
{<<"fusco">>, <<"6343551BD1E824F2A6CA85E1158C5B37C320FD449FBFEC7450A73F192AAF9022">>},
84+
{<<"getopt">>, <<"53E1AB83B9CEB65C9672D3E7A35B8092E9BDC9B3EE80721471A161C10C59959C">>},
85+
{<<"gun">>, <<"3106CE167F9C9723F849E4FB54EA4A4D814E3996AE243A1C828B256E749041E0">>},
86+
{<<"hut">>, <<"953FC447514BAF9CC79FA147D66469243C94DFA1593779614E070C692D0BF0F3">>},
87+
{<<"jesse">>, <<"3F9475B0C5B242E09592604AABB03328501D7E3D8A528173B5A75396EEDB0060">>},
88+
{<<"jiffy">>, <<"F9AE986BA5A0854EB48CF6A76192D9367086DA86C20197DA430630BE7C087A4E">>},
89+
{<<"jsx">>, <<"0C5CC8FDC11B53CC25CF65AC6705AD39E54ECC56D1C22E4ADB8F5A53FB9427F3">>},
90+
{<<"meck">>, <<"81344F561357DC40A8344AFA53767C32669153355B626EA9FCBC8DA6B3045826">>},
91+
{<<"p1_utils">>, <<"0E49FF5586515E3C44901D6FB06B1473BDA492D749F0B1705CBF9D96D4CD5A38">>},
92+
{<<"parse_trans">>, <<"17EF63ABDE837AD30680EA7F857DD9E7CED9476CDD7B0394432AF4BFC241B960">>},
93+
{<<"providers">>, <<"E45745ADE9C476A9A469EA0840E418AB19360DC44F01A233304E118A44486BA0">>},
94+
{<<"quickrand">>, <<"E21C6C7F29CA995468662085CA54D7D09E861C180A9DFEC2CF4A2E75364A16D6">>},
95+
{<<"ranch">>, <<"49FBCFD3682FAB1F5D109351B61257676DA1A2FDBE295904176D5E521A2DDFE5">>},
96+
{<<"rfc3339">>, <<"182314DE35C9F4180B22EB5F22916D8D7A799C1109A060C752970273A9332AD6">>},
97+
{<<"uuid">>, <<"4866CA7B3BD0265BC371590DCD0FE2832FC08588A071B72D07E09E23F163D0D6">>},
98+
{<<"worker_pool">>, <<"2F2ABFD3F64931B8DF345D7EFE80A357EDC785848C39319225CA328F44BC7192">>}]}
7699
].

rebar3

-817 KB
Binary file not shown.

src/amoc_arsenal_xmpp.app.src

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
amoc,
99
escalus,
1010
mnesia,
11-
ssl
11+
ssl,
12+
jiffy
1213
]},
1314
{env, [
1415
{predefined_metrics, [{times, connection},

0 commit comments

Comments
 (0)