Mohammed Naser | 3769438 | 2024-04-02 21:11:31 -0400 | [diff] [blame] | 1 | FROM ubuntu |
Mohammed Naser | c538b59 | 2024-04-02 23:49:02 -0400 | [diff] [blame] | 2 | RUN <<EOF bash -xe |
Mohammed Naser | 3769438 | 2024-04-02 21:11:31 -0400 | [diff] [blame] | 3 | apt-get update -qq |
| 4 | apt-get install -qq -y --no-install-recommends ca-certificates git |
| 5 | EOF |
| 6 | |
| 7 | ARG RELEASE |
| 8 | RUN <<EOF bash -xe |
| 9 | BRANCH=stable/${RELEASE} |
| 10 | if [ "${RELEASE}" = "master" ]; then |
| 11 | BRANCH=master |
| 12 | fi |
| 13 | |
| 14 | git clone --branch \$BRANCH https://github.com/openstack/requirements /src |
| 15 | EOF |
| 16 | |
| 17 | RUN <<EOF sh -xe |
| 18 | sed -i 's/cryptography===36.0.2/cryptography===42.0.4/' /src/upper-constraints.txt |
| 19 | sed -i 's/cryptography===40.0.2/cryptography===42.0.4/' /src/upper-constraints.txt |
| 20 | sed -i 's/cryptography===41.0.7/cryptography===42.0.4/' /src/upper-constraints.txt |
| 21 | sed -i 's/Django===3.2.18/Django===3.2.24/' /src/upper-constraints.txt |
| 22 | sed -i 's/Flask===2.2.3/Flask===2.2.5/' /src/upper-constraints.txt |
| 23 | sed -i 's/Jinja2===3.1.2/Jinja2===3.1.3/' /src/upper-constraints.txt |
| 24 | sed -i 's/oauthlib===3.2.0/oauthlib===3.2.2/' /src/upper-constraints.txt |
| 25 | sed -i 's/paramiko===2.11.0/paramiko===3.4.0/' /src/upper-constraints.txt |
| 26 | sed -i 's/paramiko===3.1.0/paramiko===3.4.0/' /src/upper-constraints.txt |
| 27 | sed -i 's/protobuf===4.21.5/protobuf===4.21.6/' /src/upper-constraints.txt |
| 28 | sed -i 's/pyOpenSSL===22.0.0/pyOpenSSL===24.0.0/' /src/upper-constraints.txt |
| 29 | sed -i 's/pyOpenSSL===23.1.1/pyOpenSSL===24.0.0/' /src/upper-constraints.txt |
| 30 | sed -i 's/requests===2.28.1/requests===2.31.0/' /src/upper-constraints.txt |
| 31 | sed -i 's/requests===2.28.2/requests===2.31.0/' /src/upper-constraints.txt |
| 32 | sed -i 's/sqlparse===0.4.2/sqlparse===0.4.4/' /src/upper-constraints.txt |
| 33 | sed -i 's/urllib3===1.26.12/urllib3===1.26.18/' /src/upper-constraints.txt |
| 34 | sed -i 's/urllib3===1.26.15/urllib3===1.26.18/' /src/upper-constraints.txt |
| 35 | sed -i 's/Werkzeug===2.2.2/Werkzeug===2.3.8/' /src/upper-constraints.txt |
| 36 | sed -i 's/Werkzeug===2.2.3/Werkzeug===2.3.8/' /src/upper-constraints.txt |
| 37 | sed -i 's/zstd===1.5.2.5/zstd===1.5.4.0/' /src/upper-constraints.txt |
| 38 | |
| 39 | sed -i '/glance-store/d' /src/upper-constraints.txt |
| 40 | sed -i '/horizon/d' /src/upper-constraints.txt |
| 41 | EOF |