Somenath Burnwal commited on
Commit
dcd5d26
1 Parent(s): ef7a821

add setup script

Browse files
Files changed (2) hide show
  1. setup.sh +25 -0
  2. spaces-config.toml +2 -0
setup.sh ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Update package lists
4
+ apt-get update
5
+
6
+ # Install dependencies
7
+ apt-get install -y wget unzip
8
+
9
+ # Install Google Chrome
10
+ wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
11
+ sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
12
+ apt-get update
13
+ apt-get install -y google-chrome-stable
14
+
15
+ # Install ChromeDriver
16
+ CHROME_VERSION=$(google-chrome --version | grep -oP '[\d\.]+')
17
+ CHROMEDRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
18
+ wget https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip
19
+ unzip chromedriver_linux64.zip
20
+ mv chromedriver /usr/local/bin/chromedriver
21
+ chmod +x /usr/local/bin/chromedriver
22
+
23
+ # Clean up
24
+ rm chromedriver_linux64.zip
25
+
spaces-config.toml ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [build]
2
+ build_command = "bash setup.sh"