Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Combine separate runner scripts
  • Loading branch information
nemborkar committed May 9, 2026
commit b9748be37bc9e6d95aec700e69f1b93dd844e17a
17 changes: 17 additions & 0 deletions runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
CONTAINER=layer_builder
IMAGE=layer_builder_img
RUNTIME=$(command -v podman || command -v docker)

$RUNTIME build -t $IMAGE .
$RUNTIME run -td --name=$CONTAINER $IMAGE
$RUNTIME cp ./requirements.txt $CONTAINER:/

$RUNTIME exec -i $CONTAINER /bin/bash < ./docker_install.sh
$RUNTIME cp $CONTAINER:/tmp/python_layer.zip python_layer.zip
$RUNTIME stop $CONTAINER

$RUNTIME rm $CONTAINER
$RUNTIME rmi $IMAGE:latest

echo "Layer is ready..."
echo "Size: $(du -sh python_layer.zip)"
12 changes: 0 additions & 12 deletions runner_docker.sh

This file was deleted.

12 changes: 0 additions & 12 deletions runner_podman.sh

This file was deleted.