-
Notifications
You must be signed in to change notification settings - Fork 14
/
dev_env_setup_ubuntu.sh
39 lines (28 loc) · 1.2 KB
/
dev_env_setup_ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
echo "Splashkit Translator Ubuntu development environment setup."
# Install VS code editor
sudo snap install --classic code
# Install git
yes | sudo apt-get install git
# Change to current user directory and setup folder structure
cd ~
mkdir translator
cd translator
# Clone Thoth-tech repositories
git clone https://github.com/thoth-tech/splashkit-core.git
git clone https://github.com/thoth-tech/splashkit-translator.git
# Configure Docker Repository
sudo apt-get install ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Add repository for docker compose
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Install docker
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose
# Build docker image
docker build --tag headerdoc -f Dockerfile .
# Setup VS Code to as editor for commit messages
git config --global core.editor "code --wait"
# Install SplashKit
bash <(curl -s https://raw.githubusercontent.com/splashkit/skm/master/install-scripts/skm-install.sh)
# Setup complete message
echo "Setup complete."