-
Notifications
You must be signed in to change notification settings - Fork 120
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
add sanity test for docker build and run #831
Merged
Merged
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ac72934
improve doc around supported tasks and accelertor options
rbrugaro 2a0be04
Merge branch 'huggingface:main' into main
rbrugaro ad44975
leave other accelerator options even if not yet implemented
rbrugaro 210b994
Merge branch 'huggingface:main' into main
rbrugaro f41d468
Merge branch 'huggingface:main' into main
rbrugaro 3a9254c
Merge branch 'huggingface:main' into main
rbrugaro 858f8d1
Merge branch 'huggingface:main' into main
rbrugaro c6e8557
bump ipex/torch vs, fix syntax to supress build warnings/errors and i…
rbrugaro 6215a4e
simplified Dockerfile, remove build stages and conda
rbrugaro 2dc75f7
rm proxies
rbrugaro 138b1e4
add sanity test for docker build and run
rbrugaro 86930cd
Merge branch 'huggingface:main' into main
rbrugaro 0a553cf
add dependency
rbrugaro 498731c
add docker workflow
rbrugaro 2298a01
fix version
rbrugaro 437ef7d
fix version
rbrugaro 34b378f
path to dockerfile
rbrugaro f69c2c6
remove sanity_test script and replaced with workflow
rbrugaro fb20a8f
remove workflow_dispatch for manual trigger
rbrugaro 2575e7c
Merge branch 'huggingface:main' into main
rbrugaro 5831d39
Update .github/workflows/dockerfile_sanity.yml
rbrugaro 549835e
Merge branch 'huggingface:main' into main
rbrugaro 3621ad8
Merge branch 'huggingface:main' into main
rbrugaro 3a55cb4
path to Dockerfile
rbrugaro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build and Test Docker Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'Dockerfile.intel' | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'Dockerfile.intel' | ||
|
||
jobs: | ||
build_and_run: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build and Run Docker Image | ||
run: | | ||
IMAGE_NAME="intel_image:latest" | ||
docker build -f docker/Dockerfile.intel -t $IMAGE_NAME . | ||
if [ $? -ne 0 ]; then | ||
echo "Docker image build failed." | ||
exit 1 | ||
fi | ||
CONTAINER_ID=$(docker run -d $IMAGE_NAME tail -f /dev/null) | ||
if docker inspect -f '{{.State.Running}}' $CONTAINER_ID 2>/dev/null | grep -q 'true'; then | ||
echo "Container is running." | ||
else | ||
echo "Container failed to start." | ||
docker logs $CONTAINER_ID 2>/dev/null || echo "No container ID found." | ||
exit 1 | ||
fi | ||
docker stop $CONTAINER_ID | ||
docker rm $CONTAINER_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker/Dockerfile.intel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx! I used workflow_dispatch to manually trigger and test the workflow and forgot to update path for the auto triggering with file changes. Added!