Skip to content

CI: Implement container action #9

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

Draft
wants to merge 329 commits into
base: devel
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
329 commits
Select commit Hold shift + click to select a range
fac2a1e
python image 12
Shivani-gslab Jan 15, 2025
0e710fb
python image 13
Shivani-gslab Jan 15, 2025
242f535
molecule run
Shivani-gslab Jan 16, 2025
bcc12b5
Merge branch 'devel' into container_action
Shivani-gslab Jan 16, 2025
c414156
molecule run2
Shivani-gslab Jan 16, 2025
29beba4
container 1
Shivani-gslab Jan 16, 2025
f0f7e6b
container 2
Shivani-gslab Jan 16, 2025
857b00a
container 3
Shivani-gslab Jan 16, 2025
3f86ecd
container 4
Shivani-gslab Jan 16, 2025
3c3d2b2
checkout 1
Shivani-gslab Jan 17, 2025
2acea59
checkout 2
Shivani-gslab Jan 17, 2025
de2dd7d
checkout 3
Shivani-gslab Jan 17, 2025
b05b905
checkout 4
Shivani-gslab Jan 17, 2025
8e6713e
checkout 5
Shivani-gslab Jan 17, 2025
3342c1d
checkout 6
Shivani-gslab Jan 17, 2025
22fbe1b
checkout 7
Shivani-gslab Jan 17, 2025
1a9fad1
checkout 8
Shivani-gslab Jan 17, 2025
9740d47
checkout 9
Shivani-gslab Jan 17, 2025
76eaabb
checkout 10
Shivani-gslab Jan 17, 2025
9e9c0a5
checkout 11
Shivani-gslab Jan 17, 2025
433f4a5
checkout 12
Shivani-gslab Jan 17, 2025
18bedce
checkout 13
Shivani-gslab Jan 17, 2025
1158a5a
checkout 14
Shivani-gslab Jan 17, 2025
9d36f87
container base and run image
Shivani-gslab Jan 24, 2025
8f44486
container base and run 2
Shivani-gslab Jan 24, 2025
396ebf5
container base and run 3
Shivani-gslab Jan 24, 2025
a5409f9
container base and run 4
Shivani-gslab Jan 24, 2025
83318ae
container base and run 5
Shivani-gslab Jan 24, 2025
a8e1530
container base and run 6
Shivani-gslab Jan 24, 2025
0d1aae2
container base and run 7
Shivani-gslab Jan 24, 2025
f57e7a1
container base and run 8
Shivani-gslab Jan 24, 2025
35ca18e
container base and run 9
Shivani-gslab Jan 24, 2025
2ab7f17
container base and run 10
Shivani-gslab Jan 24, 2025
07d2c06
container base and run 11
Shivani-gslab Jan 24, 2025
c19e167
container base and run 12
Shivani-gslab Jan 24, 2025
f63e2fa
container base and run 13
Shivani-gslab Jan 24, 2025
c3ee757
container base and run 14
Shivani-gslab Jan 24, 2025
8fc4c2f
container base and run 15
Shivani-gslab Jan 24, 2025
6a949ec
container base and run 16
Shivani-gslab Jan 24, 2025
02f2016
container base and run 17
Shivani-gslab Jan 24, 2025
cac3e3e
container base and run 18
Shivani-gslab Jan 24, 2025
88c80da
container base and run 19
Shivani-gslab Jan 24, 2025
5f137b8
container base and run 20
Shivani-gslab Jan 24, 2025
feb8a39
container base and run 21
Shivani-gslab Jan 24, 2025
4a71e25
container base and run 22
Shivani-gslab Jan 27, 2025
92bebf7
Merge branch 'devel' into container_action
Shivani-gslab Jan 27, 2025
2f8beb7
updated workflow
Shivani-gslab Jan 30, 2025
0fb4094
updated workflow1
Shivani-gslab Jan 30, 2025
9d4d188
updated workflow2
Shivani-gslab Jan 30, 2025
cfc63c5
updated workflow3
Shivani-gslab Jan 30, 2025
26b28bd
updated workflow4
Shivani-gslab Jan 30, 2025
ae2565f
updated workflow5
Shivani-gslab Jan 30, 2025
8435b93
updated workflow6
Shivani-gslab Jan 30, 2025
210a5c6
updated workflow7
Shivani-gslab Jan 30, 2025
2af7c97
updated dockerfile1
Shivani-gslab Jan 30, 2025
8bbdf02
updated dockerfile2
Shivani-gslab Jan 30, 2025
5a13e8a
updated dockerfile3
Shivani-gslab Jan 30, 2025
106ce5f
updated dockerfile4
Shivani-gslab Jan 30, 2025
ba47894
updated dockerfile5
Shivani-gslab Jan 30, 2025
1aaac44
updated dockerfile6
Shivani-gslab Jan 30, 2025
422a953
updated dockerfile7
Shivani-gslab Jan 30, 2025
5acd02b
updated dockerfile8
Shivani-gslab Jan 30, 2025
9fb5c10
updated dockerfile9
Shivani-gslab Jan 30, 2025
ddb916b
updated dockerfile10
Shivani-gslab Jan 30, 2025
bf1dbe4
updated dockerfile11
Shivani-gslab Jan 30, 2025
5dd396d
updated dockerfile12
Shivani-gslab Jan 30, 2025
21a4f23
updated dockerfile13
Shivani-gslab Jan 30, 2025
3cc0dda
updated dockerfile14
Shivani-gslab Jan 31, 2025
7d11c39
updated dockerfile15
Shivani-gslab Jan 31, 2025
c4704af
updated dockerfile16
Shivani-gslab Jan 31, 2025
37d1495
updated dockerfile17
Shivani-gslab Jan 31, 2025
082c55f
updated dockerfile18
Shivani-gslab Jan 31, 2025
8c1f673
updated dockerfile19
Shivani-gslab Jan 31, 2025
82e02b2
updated dockerfile20
Shivani-gslab Jan 31, 2025
dc23f10
updated dockerfile21
Shivani-gslab Jan 31, 2025
761090b
updated dockerfile22
Shivani-gslab Jan 31, 2025
73ae0ca
updated dockerfile23
Shivani-gslab Jan 31, 2025
041e45d
updated dockerfile24
Shivani-gslab Jan 31, 2025
adcb41d
updated dockerfile25
Shivani-gslab Jan 31, 2025
b631f62
updated dockerfile26
Shivani-gslab Jan 31, 2025
082fa20
updated dockerfile27
Shivani-gslab Jan 31, 2025
222a921
updated dockerfile28
Shivani-gslab Jan 31, 2025
418f48e
updated dockerfile29
Shivani-gslab Jan 31, 2025
7a57178
image build 1
Shivani-gslab Jan 31, 2025
28b4cec
image build 2
Shivani-gslab Jan 31, 2025
b4d69d1
image build 3
Shivani-gslab Jan 31, 2025
c5984a5
image build 4
Shivani-gslab Feb 3, 2025
066f009
image build 5
Shivani-gslab Feb 3, 2025
781aecb
image build 6
Shivani-gslab Feb 3, 2025
d2d8318
image build 7
Shivani-gslab Feb 3, 2025
01ec0dd
image build 8
Shivani-gslab Feb 3, 2025
6c913e1
image build 9
Shivani-gslab Feb 3, 2025
e162e58
image build 11
Shivani-gslab Feb 3, 2025
b070c00
image build 12
Shivani-gslab Feb 3, 2025
b4d10c2
image build 13
Shivani-gslab Feb 3, 2025
98ab13a
image build 14
Shivani-gslab Feb 3, 2025
8507fa7
image build 15
Shivani-gslab Feb 3, 2025
90bf89d
image build 16
Shivani-gslab Feb 3, 2025
150de44
image build 17
Shivani-gslab Feb 3, 2025
d3ed3ba
image build 18
Shivani-gslab Feb 3, 2025
8ffca1a
image build 19
Shivani-gslab Feb 3, 2025
bcd1665
image build 20
Shivani-gslab Feb 3, 2025
c59e196
image build 21
Shivani-gslab Feb 3, 2025
935c7db
image build 22
Shivani-gslab Feb 3, 2025
9c3b359
image build 23
Shivani-gslab Feb 3, 2025
6d6a80c
image build 24
Shivani-gslab Feb 3, 2025
218f50e
image build 25
Shivani-gslab Feb 3, 2025
eced7c8
image build 26
Shivani-gslab Feb 3, 2025
4127ed1
image build 27
Shivani-gslab Feb 3, 2025
e486b05
image build 28
Shivani-gslab Feb 3, 2025
17fcffc
image build 29
Shivani-gslab Feb 3, 2025
05880c0
image build 30
Shivani-gslab Feb 3, 2025
9ef4af3
image build 31
Shivani-gslab Feb 3, 2025
7014999
image build 31
Shivani-gslab Feb 3, 2025
59f900b
image build 32
Shivani-gslab Feb 3, 2025
5e78b3c
image build 33
Shivani-gslab Feb 3, 2025
38ec62f
image build 34
Shivani-gslab Feb 3, 2025
827aa82
image build 35
Shivani-gslab Feb 3, 2025
2d7bef6
image build 35
Shivani-gslab Feb 3, 2025
1ae1271
image build 36
Shivani-gslab Feb 3, 2025
2374e7e
image build 37
Shivani-gslab Feb 3, 2025
aa1205a
image build 38
Shivani-gslab Feb 3, 2025
73b83b2
image build 39
Shivani-gslab Feb 3, 2025
3b9c959
image build 40
Shivani-gslab Feb 4, 2025
81e7db0
image build 41
Shivani-gslab Feb 4, 2025
2a1bc4f
image build 42
Shivani-gslab Feb 4, 2025
3fdf905
image build 43
Shivani-gslab Feb 4, 2025
ba5b76c
image build 44
Shivani-gslab Feb 4, 2025
2081016
image build 45
Shivani-gslab Feb 4, 2025
fec4a0d
image build 46
Shivani-gslab Feb 4, 2025
b5ba609
image build 47
Shivani-gslab Feb 4, 2025
aac4ecc
image build 48
Shivani-gslab Feb 4, 2025
fc34ac6
image build 49
Shivani-gslab Feb 4, 2025
d596fbe
Update dockerfile with Guillaume
Shivani-gslab Feb 11, 2025
e79e0a4
activate veenv in build stage
Shivani-gslab Feb 11, 2025
b07a74f
activate venv in build
Shivani-gslab Feb 11, 2025
765726b
activate venv in build 2
Shivani-gslab Feb 11, 2025
777ab70
activate venv in build 3
Shivani-gslab Feb 11, 2025
0daaa8b
activate venv in build 4
Shivani-gslab Feb 11, 2025
e6642a1
activate venv in build 5
Shivani-gslab Feb 11, 2025
f172a75
change base image for run
Shivani-gslab Feb 12, 2025
b8afad8
export ANSIBLE_TEST_PYTHON
Shivani-gslab Feb 12, 2025
19be987
export ANSIBLE_TEST_PYTHON
Shivani-gslab Feb 12, 2025
831a703
export ANSIBLE_TEST_VENV
Shivani-gslab Feb 12, 2025
6f24fbb
pip install from setuptools
Shivani-gslab Feb 12, 2025
1ab6c39
pip install from setuptools
Shivani-gslab Feb 12, 2025
789f0f1
pip install from setuptools
Shivani-gslab Feb 12, 2025
d00ff11
update build
Shivani-gslab Feb 12, 2025
ac5a3a6
build update
Shivani-gslab Feb 13, 2025
535532a
req path update
Shivani-gslab Feb 13, 2025
d1c1dee
run update
Shivani-gslab Feb 13, 2025
de96d43
add cache
Shivani-gslab Feb 13, 2025
906664a
Refactor(eos_designs): Refactor eos_designs structured_config code fo…
Shivani-gslab Feb 13, 2025
7220039
update cache ref path with single quote
Shivani-gslab Feb 14, 2025
26f6dc7
Merge branch 'devel' into container_action
Shivani-gslab Feb 14, 2025
0863a22
update workflow
Shivani-gslab Feb 14, 2025
fa23252
update workflow
Shivani-gslab Feb 14, 2025
fe9ff46
update workflow
Shivani-gslab Feb 14, 2025
82f9ef6
update workflow
Shivani-gslab Feb 14, 2025
5769109
update avd-bas-image job
Shivani-gslab Feb 17, 2025
91ba785
not copy avd
Shivani-gslab Feb 17, 2025
05c7631
fix path
Shivani-gslab Feb 17, 2025
319dedd
copy avd
Shivani-gslab Feb 17, 2025
0106c0b
reproduce ssh client issue
Shivani-gslab Feb 17, 2025
6d5b56d
fix path
Shivani-gslab Feb 17, 2025
d3659e2
install certifi in sanity test
Shivani-gslab Feb 17, 2025
d900e33
install ca-certificates && update-ca-certificates
Shivani-gslab Feb 17, 2025
0c7270c
pip upgrade
Shivani-gslab Feb 17, 2025
412e2b3
install ca-certificates
Shivani-gslab Feb 17, 2025
94065fe
install ca-certificates
Shivani-gslab Feb 17, 2025
7ba5a17
test lint without certifi
Shivani-gslab Feb 17, 2025
15e6973
test lint without certifi
Shivani-gslab Feb 17, 2025
41765f6
test lint with certifi
Shivani-gslab Feb 17, 2025
c2dba88
fix sanity test fail
Shivani-gslab Feb 21, 2025
7cd18fd
Merge branch 'devel' into container_action
Shivani-gslab Feb 21, 2025
28644aa
Install ca certificate for sanity test job
Shivani-gslab Feb 25, 2025
14e3ee0
Merge branch 'devel' into container_action
Shivani-gslab Feb 25, 2025
94ebf1c
skip ansible-lint rule
Shivani-gslab Feb 26, 2025
28bf2a8
fix syntax-check
Shivani-gslab Feb 26, 2025
2c4db86
fix ansible lint tests
Shivani-gslab Feb 26, 2025
ce56204
update workflow
Shivani-gslab Feb 26, 2025
9ba88b8
Run molecule eos_cli_config_gen
Shivani-gslab Feb 26, 2025
05b7b95
molecule
Shivani-gslab Feb 26, 2025
cdfcce6
eorkflow fix
Shivani-gslab Feb 26, 2025
102feb6
Workflow fix
Shivani-gslab Feb 26, 2025
a84836e
fix ansible-version
Shivani-gslab Feb 26, 2025
bbb138a
fix certificate error
Shivani-gslab Feb 26, 2025
9c09eec
Removing molecule changes
Shivani-gslab Feb 26, 2025
98f8cdb
Fail the molecule eos_cli_config_gen
Shivani-gslab Feb 27, 2025
e6cd560
add fi
Shivani-gslab Feb 27, 2025
980b356
install git
Shivani-gslab Feb 27, 2025
ea62eb1
pwd
Shivani-gslab Feb 27, 2025
d7431fe
git status
Shivani-gslab Feb 27, 2025
c278f33
add volume
Shivani-gslab Feb 27, 2025
54fd21c
add volume
Shivani-gslab Feb 27, 2025
1b64f96
fix workspace path
Shivani-gslab Feb 27, 2025
3211e8c
fix workspace path
Shivani-gslab Feb 27, 2025
4205f8b
fix workspace path
Shivani-gslab Feb 27, 2025
abedafb
test molecule
Shivani-gslab Feb 27, 2025
65fb46f
test molecule
Shivani-gslab Feb 27, 2025
ab8f624
test molecule
Shivani-gslab Feb 27, 2025
c336875
test molecule
Shivani-gslab Feb 27, 2025
b8237c5
test molecule
Shivani-gslab Feb 27, 2025
5bfcbd5
test status
Shivani-gslab Feb 27, 2025
1adc200
git config
Shivani-gslab Feb 27, 2025
47b8c3a
git config
Shivani-gslab Feb 27, 2025
821f411
git config
Shivani-gslab Feb 27, 2025
aa1cc03
git config
Shivani-gslab Feb 27, 2025
002fdec
git config
Shivani-gslab Feb 27, 2025
70e13a0
build wheel
Shivani-gslab Feb 28, 2025
1a17c8d
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
1d21412
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
c179e6f
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
4546fbe
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
8311287
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
6aace11
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
1ecceb7
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
4218595
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
ff69a45
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
03f3dc1
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
ba0613f
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
972a0c3
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
74f2f0f
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
53e8167
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
45982d8
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
d99c4f4
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
4d4dce8
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
140d19f
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
ecb3088
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
a7ce672
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
5f4de51
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
52f1ac1
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
5342a42
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
0f72934
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
7727be1
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
d50a875
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
2ff6198
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
66e145f
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
0467697
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
03e177e
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
0176e7a
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
8cb1ad9
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
9a065a6
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
d28f275
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
7d22d88
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
cdf30fc
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
4305eac
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
8018da1
download and install pyavd from artifacts
Shivani-gslab Feb 28, 2025
2b1d9b3
pipeline with molecule diff
Shivani-gslab Mar 3, 2025
3d01b14
pipeline with molecule diff
Shivani-gslab Mar 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/DockerfileBase
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:latest AS base
#LABEL stage=base
# Install essential packages and UV
RUN apt-get update && apt-get install -y --no-install-recommends make curl ca-certificates && \
update-ca-certificates && \
curl -LsSf https://astral.sh/uv/install.sh | sh

# Copy requirements file after installing essential tools
COPY ansible_collections/arista/avd/requirements-dev.txt /requirements-dev.txt

# Install Python versions and dependencies in a single step
RUN . $HOME/.local/bin/env && for VERSION in 3.10 3.11 3.12 3.13; do \
UV_PYTHON_INSTALL_DIR=/venvs/python-versions uv venv --python $VERSION /venvs/UV$VERSION && \
/venvs/UV$VERSION/bin/python -m ensurepip --upgrade && \
/venvs/UV$VERSION/bin/python -m pip install --upgrade pip setuptools && \
/venvs/UV$VERSION/bin/python -m pip install mock pytest pytest-mock pytest-xdist pyyaml "ansible-core<2.19.0" \
-r /requirements-dev.txt --upgrade; \
done

FROM ubuntu:latest AS base_run
COPY --from=base /venvs /venvs
17 changes: 17 additions & 0 deletions .github/DockerfileBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG BASE_IMAGE_TAG
FROM ${BASE_IMAGE_TAG} AS build

Check warning on line 2 in .github/DockerfileBuild

View workflow job for this annotation

GitHub Actions / Install pyavd and Build Image

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE_TAG} results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/
LABEL stage=build
COPY . /avd
WORKDIR /avd/python-avd

RUN apt-get update && apt-get install -y --no-install-recommends make && \
/venvs/UV3.11/bin/python -m pip install --break-system-packages build && \
/venvs/UV3.11/bin/python -m build --wheel --outdir /tmp/wheels && \
for VERSION in 3.10 3.11 3.12 3.13; do \
/venvs/UV$VERSION/bin/python -m pip install --no-cache-dir /tmp/wheels/*.whl; \
done

FROM ubuntu:latest AS run
LABEL stage=run
# Copy virtual environments from the build stage
COPY --from=build /venvs /venvs
Loading
Loading