28 lines
No EOL
716 B
Bash
28 lines
No EOL
716 B
Bash
#!/bin/bash
|
|
|
|
echo -ne "AGENT=" > .env
|
|
cat "$AGENT" >> .env
|
|
|
|
echo -ne "\nPUB=" >> .env
|
|
cat "$PUB" >> .env
|
|
|
|
echo -ne "\nFSAGENT=" >> .env
|
|
cat "$FSAGENT" >> .env
|
|
|
|
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
|
|
|
|
cp -rv LinuxGeneralCompiler/FinalStage/secret ArchAgent/secret
|
|
|
|
echo -ne "\nARCHAGENT=" >> .env
|
|
cat "$ARCHAGENT" >> .env
|
|
|
|
docker build -t linuxagent LinuxGeneralCompiler/FinalStage
|
|
docker build -t archagent ArchAgent
|
|
|
|
rm -rf LinuxGeneralCompiler/FinalStage/secret
|
|
rm -rf ArchAgent/secret
|
|
|
|
docker-compose up -d |