Jacob Molnia commited on
Commit
5587ee3
1 Parent(s): 82a2f16

intermidate setup5/maybe done3

Browse files
app/requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  huggingface_hub==0.23.*
2
  gradio==4.39.*
3
- torch==2.4.*
4
  transformers==4.43.*
5
  accelerate==0.33.*
 
1
  huggingface_hub==0.23.*
2
  gradio==4.39.*
3
+ torch==2.4.*+cpu
4
  transformers==4.43.*
5
  accelerate==0.33.*
deployment/.DS_Store CHANGED
Binary files a/deployment/.DS_Store and b/deployment/.DS_Store differ
 
deployment/01_deploy_to_app/inventory/hosts.ini CHANGED
@@ -1,3 +1,3 @@
1
  [classserver]
2
- #server1 ansible_host=paffenroth-23.dyn.wpi.edu ansible_port=22018
3
- server1Tailscail ansible_host=group18
 
1
  [classserver]
2
+ server1 ansible_host=paffenroth-23.dyn.wpi.edu ansible_port=22018
3
+ #server1Tailscail ansible_host=group18
deployment/01_deploy_to_app/playbooks/deploy_gradio_app.yml CHANGED
@@ -6,7 +6,8 @@
6
  app_user: app
7
  app_dir: /home/{{ app_user }}/gradio_app
8
  venv_dir: "{{ app_dir }}/venv"
9
- repo_dir: /opt/CS_553
 
10
 
11
  tasks:
12
  - name: Create app user
 
6
  app_user: app
7
  app_dir: /home/{{ app_user }}/gradio_app
8
  venv_dir: "{{ app_dir }}/venv"
9
+ # repo_dir: /opt/CS_553
10
+ repo_dir: ../../../
11
 
12
  tasks:
13
  - name: Create app user
deployment/02_deploy_to_controller/playbooks/app_server_setup.yml CHANGED
@@ -31,3 +31,5 @@
31
  become_user: ubuntu
32
  environment:
33
  ANSIBLE_CONFIG: "{{ repo_dest }}/deployment/01_deploy_to_app/ansible.cfg"
 
 
 
31
  become_user: ubuntu
32
  environment:
33
  ANSIBLE_CONFIG: "{{ repo_dest }}/deployment/01_deploy_to_app/ansible.cfg"
34
+ ANSIBLE_HOST_KEY_CHECKING: "False"
35
+
deployment/02_deploy_to_controller/playbooks/ssh_setup.yml CHANGED
@@ -54,3 +54,16 @@
54
  Port 22018
55
  Hostname paffenroth-23.dyn.wpi.edu
56
  IdentityFile ~/.ssh/id_ed25519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  Port 22018
55
  Hostname paffenroth-23.dyn.wpi.edu
56
  IdentityFile ~/.ssh/id_ed25519
57
+
58
+ - name: Clear known_hosts file
59
+ file:
60
+ path: /home/ubuntu/.ssh/known_hosts
61
+ state: absent
62
+
63
+ - name: Create empty known_hosts file
64
+ file:
65
+ path: /home/ubuntu/.ssh/known_hosts
66
+ state: touch
67
+ owner: ubuntu
68
+ group: ubuntu
69
+ mode: '0644'
deployment/02_deploy_to_controller/scripts/initial_ssh_config.sh CHANGED
@@ -74,7 +74,7 @@ ssh $SSH_OPTIONS -J turing.wpi.edu student-admin@app <<EOF || handle_error "Fail
74
  fi
75
 
76
  # Run Tailscale with the provided auth key
77
- sudo tailscale up --authkey "$TAILSCALE_KEY" || handle_error "Failed to run Tailscale"
78
 
79
  echo "Tailscale setup completed successfully"
80
  exit
 
74
  fi
75
 
76
  # Run Tailscale with the provided auth key
77
+ sudo tailscale up --authkey "$TAILSCALE_KEY" --hostname=group18|| handle_error "Failed to run Tailscale"
78
 
79
  echo "Tailscale setup completed successfully"
80
  exit