Skip to content

Commit

Permalink
Update init. Fix workspace sync
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Feb 28, 2024
1 parent 94c7554 commit efeab08
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
-
name: Permissions fixes
run: |
reponame="$(basename ${GITHUB_REPOSITORY})"
target="${HOME}/work/${reponame}/${reponame}/build/COPY*"
chmod -R ug+rwX ${target}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down Expand Up @@ -121,6 +127,12 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
-
name: Permissions fixes
run: |
reponame="$(basename ${GITHUB_REPOSITORY})"
target="${HOME}/work/${reponame}/${reponame}/build/COPY*"
chmod -R ug+rwX ${target}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down Expand Up @@ -200,6 +212,12 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
-
name: Permissions fixes
run: |
reponame="$(basename ${GITHUB_REPOSITORY})"
target="${HOME}/work/${reponame}/${reponame}/build/COPY*"
chmod -R ug+rwX ${target}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down
2 changes: 1 addition & 1 deletion build/COPY_ROOT/opt/serverless/handlers/basehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def get_result(self, job_id):
for image in outputs[item]["images"]:
original_path = f"{self.OUTPUT_DIR}{image['subfolder']}/{image['filename']}"
new_path = f"{custom_output_dir}/{image['filename']}"
# Handle duplicated request where output file in not re-generated
# Handle duplicated request where output file is not re-generated
if os.path.islink(original_path):
shutil.copyfile(os.path.realpath(original_path), new_path)
else:
Expand Down
2 changes: 1 addition & 1 deletion build/COPY_ROOT_EXTRA/opt/ai-dock/bin/build/layer1/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Packages are installed after nodes so we can fix them...
PYTHON_PACKAGES=(
#"opencv-python==4.7.0.72"
"opencv-python==4.7.0.72"
)

NODES=(
Expand Down

0 comments on commit efeab08

Please sign in to comment.