Skip to content

Commit 1f43bc6

Browse files
authored
Update Python versions in the gluescript workflow. (#387)
Update all the python 3 and add 3.13 in the github worflow to validate the glue script. Update the Python versio used in the reference TW Dockerfile. Add one more Dockerfile for openSUSE Leap..
1 parent f5cffaa commit 1f43bc6

3 files changed

Lines changed: 43 additions & 3 deletions

File tree

.github/workflows/gluescript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
# all available versions are in https://github.com/actions/python-versions/blob/main/versions-manifest.json
21-
python-version: ['3.10.14', '3.11.9', '3.12.3']
21+
python-version: ['3.10.18', '3.11.13', '3.12.11', '3.13.7']
2222

2323
steps:
2424
- name: Checkout

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM opensuse/tumbleweed:latest
55
## AZURE
66
# way suggested on https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=zypper
77
RUN zypper ref && zypper up -y && \
8-
zypper install -y tar gzip unzip curl python311-pip openssh && \
8+
zypper install -y tar gzip unzip curl python312-pip openssh && \
99
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
1010
zypper addrepo --name 'Azure CLI' --check https://packages.microsoft.com/yumrepos/azure-cli azure-cli && \
1111
zypper install --from azure-cli -y azure-cli && \
@@ -32,7 +32,7 @@ RUN curl https://releases.hashicorp.com/terraform/1.5.7/terraform_1.5.7_linux_am
3232
rm terraform.zip
3333

3434
ENV VIRTUAL_ENV=/opt/venv
35-
RUN python3.11 -m venv $VIRTUAL_ENV
35+
RUN python3.12 -m venv $VIRTUAL_ENV
3636
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3737
COPY requirements.txt .
3838
COPY requirements.yml .

Dockerfile.leap

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# syntax=docker/dockerfile:experimental
2+
3+
FROM opensuse/leap:15.
4+
5+
## AZURE
6+
# way suggested on https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=zypper
7+
RUN zypper ref && zypper up -y && \
8+
zypper install -y tar gzip unzip curl python312-pip openssh && \
9+
rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
10+
zypper addrepo --name 'Azure CLI' --check https://packages.microsoft.com/yumrepos/azure-cli azure-cli && \
11+
zypper install --from azure-cli -y azure-cli && \
12+
zypper clean --all
13+
14+
WORKDIR /root
15+
16+
## GCP
17+
RUN curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-387.0.0-linux-x86_64.tar.gz | \
18+
tar zpxf - && \
19+
google-cloud-sdk/install.sh --quiet --usage-reporting false --command-completion true && \
20+
echo 'source /root/google-cloud-sdk/completion.bash.inc' >> ~/.bashrc && \
21+
echo 'source ~/google-cloud-sdk/path.bash.inc' >> ~/.bashrc
22+
23+
## Terraform
24+
RUN curl https://releases.hashicorp.com/terraform/1.5.7/terraform_1.5.7_linux_amd64.zip -o terraform.zip && \
25+
unzip terraform.zip -d /usr/local/bin && \
26+
terraform -install-autocomplete && \
27+
rm terraform.zip
28+
29+
ENV VIRTUAL_ENV=/opt/venv
30+
RUN python3.12 -m venv $VIRTUAL_ENV
31+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
32+
COPY requirements.txt .
33+
RUN pip install --upgrade pip && \
34+
pip install -r requirements.txt
35+
36+
COPY requirements.yml .
37+
RUN ansible-galaxy install -r requirements.yml
38+
39+
RUN mkdir /src
40+
WORKDIR /src

0 commit comments

Comments
 (0)