BuildEnvironments/run.sh

20 lines
488 B
Bash
Raw Normal View History

2024-09-13 01:21:03 -07:00
#!/bin/bash
2024-09-13 20:25:44 -07:00
echo -ne "AGENT=" > .env
cat "$AGENT" >> .env
echo -ne "\nPUB=" >> .env
2024-09-13 20:25:44 -07:00
cat "$PUB" >> .env
echo -ne "\nFSAGENT=" >> .env
cat "$FSAGENT" >> .env
2024-09-13 20:25:44 -07:00
mkdir -pv LinuxGeneralCompiler/FinalStage/secret
cp "$PRIVKEY" LinuxGeneralCompiler/FinalStage/secret/id_rsa
cp "$PUBKEY" LinuxGeneralCompiler/FinalStage/secret/id_rsa.pub
cp "$GRADLEPROP" LinuxGeneralCompiler/FinalStage/secret/gradle.properties
2024-09-13 20:25:44 -07:00
docker build -t LinuxAgent LinuxGeneralCompiler/FinalStage
2024-09-13 20:25:44 -07:00
2024-09-13 01:21:03 -07:00
docker-compose up -d