-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_image.sh
More file actions
35 lines (29 loc) · 859 Bytes
/
build_image.sh
File metadata and controls
35 lines (29 loc) · 859 Bytes
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
#!/bin/bash
PACKAGES="curl git default-jdk maven python3-pip unzip graphviz"
# Get latest packages
echo "Getting latest packages..."
apt-get -y update
apt-get -y install ${PACKAGES}
# Install Node
echo "Installing Node and npm..."
curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
bash nodesource_setup.sh
apt-get -y install nodejs build-essential
# Install Node dependencies
echo "Installing Node packages..."
npm i -g npm
npm i -g typescript typescript-formatter
# Install Python dependencies
echo "Installing Python packages..."
python3 -m pip install -r requirements.txt
rm requirements.txt
# Build Scribble
echo "Building Scribble-Java..."
pushd $(pwd)
git clone https://github.com/scribble/scribble-java
cd scribble-java
./mvnw install
cd scribble-dist/target/
unzip scribble-dist-0.4.4-SNAPSHOT.zip
chmod +x scribblec.sh
popd