forked from microsoft/TaskWeaver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change mode names; opt docker building
- Loading branch information
Showing
13 changed files
with
78 additions
and
73 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
$scriptDirectory = $PSScriptRoot | ||
Write-Host "The script directory is: $scriptDirectory" | ||
|
||
$imageName = "taskweaver/executor" | ||
$taskweaverPath = Join-Path -Path $scriptDirectory -ChildPath "..\taskweaver" | ||
$dockerfilePath = Join-Path -Path $scriptDirectory -ChildPath "..\ces_container\Dockerfile" | ||
$contextPath = Join-Path -Path $scriptDirectory -ChildPath "..\" | ||
|
||
if (Test-Path $taskweaverPath) { | ||
Write-Host "Found module files from $taskweaverPath" | ||
Write-Host "Dockerfile path: $dockerfilePath" | ||
Write-Host "Context path: $contextPath" | ||
} else { | ||
Write-Host "Local files not found." | ||
exit 1 | ||
} | ||
|
||
# Build the Docker image | ||
docker build -t $imageName -f $dockerfilePath $contextPath | ||
|
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,22 @@ | ||
#!/bin/bash | ||
|
||
# Get the directory containing the script file | ||
scriptDirectory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
echo "The script directory is: $scriptDirectory" | ||
|
||
imageName="taskweaver/executor" | ||
taskweaverPath="$scriptDirectory/../taskweaver" | ||
dockerfilePath="$scriptDirectory/../ces_container/Dockerfile" | ||
contextPath="$scriptDirectory/../" | ||
|
||
if [ -d "$taskweaverPath" ]; then | ||
echo "Found module files from $taskweaverPath" | ||
echo "Dockerfile path: $dockerfilePath" | ||
echo "Context path: $contextPath" | ||
else | ||
echo "Local files not found." | ||
exit 1 | ||
fi | ||
|
||
# Build the Docker image | ||
docker build -t "$imageName" -f "$dockerfilePath" "$contextPath" |
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
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