-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJavaVm.sh
More file actions
59 lines (29 loc) · 1 KB
/
JavaVm.sh
File metadata and controls
59 lines (29 loc) · 1 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# Install the below packages to setup a vm for java development
# Install java
apt-get update && apt-get upgrade -y
apt install openjdk-8-jre-headless -y
sudo apt install openjdk-8-jdk -y
# Install docker
apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
apt update
apt-cache policy docker-ce
apt install docker-ce -y
#systemctl status docker
# Run the below command manually at the end to login to docker hub
# docker login
# Install docker-compose
apt install docker-compose -y
# Install nodejs
sudo apt-get install curl -y
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
apt-get install nodejs -y
# Install jhipster
npm install -g generator-jhipster
npm install -g yo@latest
# Install maven
apt install maven -y
# Install mysql
apt install mysql-server -y