-
Notifications
You must be signed in to change notification settings - Fork 30
testing release utbotcpp in docker
Olga Naumenko edited this page May 17, 2023
·
1 revision
Create container
docker container create -i -t -p 5522:22 -p 5521:2121 --name utbot-test ubuntu:20.04 #5522 ssh port, 5521 utbot port
docker start utbot-testGo into container
docker exec -it utbot-test /bin/bashInstall dependency
apt update && apt install sudo vim openssh-server unzip gcc-9 g++-9 make -yCreate user
useradd -m utbot
usermod -aG sudo utbotSet user password
passwd utbotSet up ssh
service ssh startExit from docker
exitDownload archive from result of github publish UTBot as an archive
Copy archive to docker
scp -P 5522 utbot-dev-2022.7.198.zip [email protected]:/home/utbot/ssh into docker
ssh [email protected] -p 5522Setup UTBotCpp
chsh -s /bin/bash #change sh to bash
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9
sudo update-alternatives --config gcc
unzip utbot-dev-2022.7.198.zip
chmod +x unpack_and_run_utbot.sh
./unpack_and_run_utbot.sh