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
|
|
|
|
|
2024-09-14 01:20:00 -07:00
|
|
|
echo -ne "\nPUB=" >> .env
|
2024-09-13 20:25:44 -07:00
|
|
|
cat "$PUB" >> .env
|
|
|
|
|
2024-09-14 01:20:00 -07:00
|
|
|
echo -ne "\nFSAGENT=" >> .env
|
|
|
|
cat "$FSAGENT" >> .env
|
2024-09-13 20:25:44 -07:00
|
|
|
|
2024-09-14 01:20:00 -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
|
|
|
|
2024-10-05 19:52:25 -07:00
|
|
|
cp -rv LinuxGeneralCompiler/FinalStage/secret ArchAgent/secret
|
|
|
|
|
|
|
|
echo -ne "\nARCHAGENT=" >> .env
|
|
|
|
cat "$ARCHAGENT" >> .env
|
|
|
|
|
2024-09-14 01:44:01 -07:00
|
|
|
docker build -t linuxagent LinuxGeneralCompiler/FinalStage
|
2024-10-05 19:52:25 -07:00
|
|
|
docker build -t archagent ArchAgent
|
2024-09-13 20:25:44 -07:00
|
|
|
|
2024-09-14 01:20:40 -07:00
|
|
|
rm -rf LinuxGeneralCompiler/FinalStage/secret
|
2024-10-05 19:52:25 -07:00
|
|
|
rm -rf ArchAgent/secret
|
2024-09-13 20:25:44 -07:00
|
|
|
|
2024-09-13 01:21:03 -07:00
|
|
|
docker-compose up -d
|