Skip to content
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

L3AFd Docker build CI integration #416

Merged
merged 2 commits into from
Jul 3, 2024
Merged

Conversation

aka320
Copy link
Contributor

@aka320 aka320 commented Jun 27, 2024

Building the Docker image and uploading it to Artifactory as part of CI build.

Building the Docker image and uploading it to Artifactory as part of CI build.

Signed-off-by: aka320 <[email protected]>
Copy link
Contributor

@sanfern sanfern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

pmoroney
pmoroney previously approved these changes Jul 2, 2024
Copy link

@pmoroney pmoroney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

sudo cp ./config/l3afd.cfg ./build-docker
sudo cp l3afd ./build-docker
sudo docker build -t l3afd:v2.0.0 -f ./build-docker/Dockerfile ./build-docker
sudo docker save l3afd:v2.0.0 > l3afd-docker-img-linux-x86_64-v2.0.0.tar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sudo docker save l3afd:v2.0.0 > l3afd-docker-img-linux-x86_64-v2.0.0.tar
sudo docker save l3afd:latest > l3afd-docker-img-linux-x86_64-v2.0.0.tar

- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
name: l3afd-docker-img-linux-x86_64-v2.0.0.tar
path: l3afd-docker-img-linux-x86_64-v2.0.0.tar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
path: l3afd-docker-img-linux-x86_64-v2.0.0.tar
path: l3afd-docker-img-linux-x86_64.tar

README.md Outdated
@@ -47,7 +47,7 @@ cmake --build build
- L3AFD binary & configuration that is required in the Docker image needs to be built locally and copied to build-docker directory
- Execute below command to build the docker image
```
docker build -t l3afd:r2 -f Dockerfile.l3afd .
docker build -t l3afd:v2.0.0 -f Dockerfile .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
docker build -t l3afd:v2.0.0 -f Dockerfile .
docker build -t l3afd:<version> -f Dockerfile .

Copy link
Contributor

@sanfern sanfern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@charleskbliu0 charleskbliu0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@sanfern sanfern merged commit 972173a into l3af-project:main Jul 3, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants