łączenie brańczy

This commit is contained in:
Denys 2024-06-04 19:31:06 +02:00
commit f100665946
4 changed files with 22 additions and 5 deletions

View File

@ -7,8 +7,8 @@
"protocol": "http",
"domain": "qstack.pl",
"port": "3000",
"token_name": "r",
"token": "41d7b3f929d00db8887773e7e7f4c79630db346a",
"token_name": "t",
"token": "a12b9583297c6bce982d9894a48714c7c2b9f73d",
"group": "1i-2023",
"project": "homework"
}

View File

@ -13,8 +13,8 @@ DEFAULT_CONFIG = {
"protocol": "http",
"domain": "qstack.pl",
"port": "3000",
"token_name": "r",
"token": "41d7b3f929d00db8887773e7e7f4c79630db346a",
"token_name": "t",
"token": "a12b9583297c6bce982d9894a48714c7c2b9f73d",
"group": "1i-2023",
"project": "homework"
}]

BIN
robi/IMG_2856.mp4 Normal file

Binary file not shown.

17
start_services.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
# Tworzenie nowej sesji tmux o nazwie 'my_session' i wykonywanie poleceń w niej
tmux new-session -d -s dockerr
# Wykonywanie poleceń w pierwszym oknie sesji
tmux send-keys -t dockerr "cd _srvc/devops/cluster/user" C-m
tmux send-keys -t dockerr "docker-compose up" C-m
sleep 5 # Oczekiwanie na uruchomienie kontenerów
# Tworzenie nowego okna w tej samej sesji i wejście do kontenera z uruchomieniem tmux
tmux new-window -t dockerr
tmux send-keys -t dockerr:1 "docker exec -it user_py1_1 bash -c 'tmux new-session -d -s my_container_session && tmux split-window -h && tmux split-window -v && tmux select-pane -t 0 && tmux split-window -v && tmux select-pane -t 0 && tmux send-keys -t 0 \"cd work/cpp && vim\" C-m && tmux send-keys -t 1 \"cd work/cpp/cpp && make clean && make\" C-m && tmux send-keys -t 2 \"cd riscv/VexRiscv/src/test/cpp/murax && make run\" C-m && tmux send-keys -t 3 \"cd riscv/openocd_riscv && . ./__\" C-m && tmux attach-session -d -t my_container_session'" C-m
# Przełączanie na nowe okno i wejście w interaktywny tryb tmux
tmux select-window -t dockerr:1
tmux attach-session -t dockerr