-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/HumanSignal/label-studio-…
- Loading branch information
Showing
93 changed files
with
1,330 additions
and
1,225 deletions.
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,42 @@ | ||
#!/bin/bash | ||
|
||
DUMMY_DOCKERFILE_CONTENT="FROM alpine\nCOPY . /app" | ||
TEMP_IMAGE_BASE="temp_context_image" | ||
|
||
# Loop through all directories containing a .dockerignore file | ||
for dir in ../../label_studio_ml/examples/*/; do | ||
if [ -f "$dir/.dockerignore" ]; then | ||
echo "Checking directory: $dir" | ||
|
||
# Navigate into the directory | ||
pushd "$dir" >/dev/null | ||
|
||
# Create a temporary dummy Dockerfile | ||
echo -e "$DUMMY_DOCKERFILE_CONTENT" >Dockerfile.tmp | ||
|
||
# Define a unique temporary image name using directory name to avoid conflicts | ||
TEMP_IMAGE="${TEMP_IMAGE_BASE}_$(basename "$dir")" | ||
|
||
# Build the temporary image and get its ID | ||
docker build -q -f Dockerfile.tmp -t "$TEMP_IMAGE" . >/dev/null | ||
|
||
# Remove the temporary Dockerfile | ||
rm -f Dockerfile.tmp | ||
|
||
# List all files excluding the temporary Dockerfile, sorted for comparison | ||
LOCAL_FILES=$(find . -mindepth 1 -type f -not -name "Dockerfile.tmp" | grep -v '.dockerignore\|README.md' | sort) | ||
|
||
# Use a Docker container to list all files included in the build context, simulating .dockerignore application | ||
INCLUDED_FILES=$(docker run --rm -w /app "${TEMP_IMAGE}" find . -mindepth 1 -type f | grep -v '.dockerignore\|README.md' | sort) | ||
|
||
# Pop back to the parent directory | ||
popd >/dev/null | ||
|
||
# Compare the lists to find files not ignored by .dockerignore (included in Docker context) | ||
echo "Files ignored by .dockerignore:" | ||
comm -23 <(echo "$LOCAL_FILES") <(echo "$INCLUDED_FILES") | ||
echo "---------------------------------------------------------------------------------------------------------------------------" | ||
else | ||
echo "No .dockerignore found in $dir" | ||
fi | ||
done |
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
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,18 @@ | ||
# Exclude everything | ||
** | ||
|
||
# Include Dockerfile and docker-compose for reference (optional, decide based on your use case) | ||
!Dockerfile | ||
!docker-compose.yml | ||
|
||
# Include Python application files | ||
!*.py | ||
|
||
# Include requirements files | ||
!requirements*.txt | ||
|
||
# Include script | ||
!*.sh | ||
|
||
# Exclude specific requirements if necessary | ||
# requirements-test.txt (Uncomment if you decide to exclude this) |
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
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
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,18 @@ | ||
# Exclude everything | ||
** | ||
|
||
# Include Dockerfile and docker-compose for reference (optional, decide based on your use case) | ||
!Dockerfile | ||
!docker-compose.yml | ||
|
||
# Include Python application files | ||
!*.py | ||
|
||
# Include requirements files | ||
!requirements*.txt | ||
|
||
# Include script | ||
!*.sh | ||
|
||
# Exclude specific requirements if necessary | ||
# requirements-test.txt (Uncomment if you decide to exclude this) |
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
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
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
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,18 @@ | ||
# Exclude everything | ||
** | ||
|
||
# Include Dockerfile and docker-compose for reference (optional, decide based on your use case) | ||
!Dockerfile | ||
!docker-compose.yml | ||
|
||
# Include Python application files | ||
!*.py | ||
|
||
# Include requirements files | ||
!requirements*.txt | ||
|
||
# Include script | ||
!*.sh | ||
|
||
# Exclude specific requirements if necessary | ||
!label_mappings.json |
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
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
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,18 @@ | ||
# Exclude everything | ||
** | ||
|
||
# Include Dockerfile and docker-compose for reference (optional, decide based on your use case) | ||
!Dockerfile | ||
!docker-compose.yml | ||
|
||
# Include Python application files | ||
!*.py | ||
|
||
# Include requirements files | ||
!requirements*.txt | ||
|
||
# Include script | ||
!*.sh | ||
|
||
# Exclude specific requirements if necessary | ||
# requirements-test.txt (Uncomment if you decide to exclude this) |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
scipy==1.10.1 | ||
flair==0.13.1 |
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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
node_modules/* | ||
docker-data/* | ||
# Exclude everything | ||
** | ||
|
||
# Include Dockerfile and docker-compose for reference (optional, decide based on your use case) | ||
!Dockerfile | ||
!docker-compose.yml | ||
|
||
# Include Python application files | ||
!*.py | ||
|
||
# Include requirements files | ||
!requirements*.txt | ||
|
||
# Include script | ||
!*.sh | ||
|
||
# Exclude specific requirements if necessary | ||
# requirements-test.txt (Uncomment if you decide to exclude this) |
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
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,18 @@ | ||
# Exclude everything | ||
** | ||
|
||
# Include Dockerfile and docker-compose for reference (optional, decide based on your use case) | ||
!Dockerfile | ||
!docker-compose.yml | ||
|
||
# Include Python application files | ||
!*.py | ||
|
||
# Include requirements files | ||
!requirements*.txt | ||
|
||
# Include script | ||
!*.sh | ||
|
||
# Exclude specific requirements if necessary | ||
# requirements-test.txt (Uncomment if you decide to exclude this) |
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,18 @@ | ||
# Exclude everything | ||
** | ||
|
||
# Include Dockerfile and docker-compose for reference (optional, decide based on your use case) | ||
!Dockerfile | ||
!docker-compose.yml | ||
|
||
# Include Python application files | ||
!*.py | ||
|
||
# Include requirements files | ||
!requirements*.txt | ||
|
||
# Include script | ||
!*.sh | ||
|
||
# Exclude specific requirements if necessary | ||
# requirements-test.txt (Uncomment if you decide to exclude this) |
Oops, something went wrong.