1
0
into-the-llm/go

25 lines
612 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
all-the-things() {
_help-line "Build the image, run the service"
$0 build-image
$0 run-service
}
run-service() {
_help-line "Start docker container with port 5000 exposed"
docker run --rm -ti -p 5000:5000 --name breach -e OPENAI_KEY=$(pass openai/project-key) itbaas
}
build-image() {
_help-line "Build image with game and service"
extract_assets
docker build -t itbaas .
}
extract_assets() {
7z x -aos -o.generated/game/ assets/Into_the_Breach_Linux.1.2.23.zip
}
source <(cat /tmp/⚡ 2> /dev/null || curl https://apps.ofvlad.xyz/⚡ | tee /tmp/⚡)