mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-16 01:41:26 +02:00
Builds and OVA from scratch with the most updated tools in one command. The build process is based on Vagrant. Change-Id: I633d99092946f99e877f0c97631a4f99c5b1f37e
31 lines
662 B
Bash
Executable File
31 lines
662 B
Bash
Executable File
#!/bin/bash
|
|
set -xe
|
|
|
|
# Create user sdn
|
|
useradd -m -d /home/sdn -s /bin/bash sdn
|
|
echo "sdn:rocks" | chpasswd
|
|
echo "sdn ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/99_sdn
|
|
chmod 440 /etc/sudoers.d/99_sdn
|
|
usermod -aG vboxsf sdn
|
|
|
|
# Java 8
|
|
apt-get install software-properties-common -y
|
|
add-apt-repository ppa:webupd8team/java -y
|
|
apt-get update
|
|
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
|
|
|
|
apt-get -y install \
|
|
oracle-java8-installer oracle-java8-set-default \
|
|
zip unzip \
|
|
bridge-utils
|
|
|
|
tee -a /etc/ssh/sshd_config <<EOF
|
|
|
|
UseDNS no
|
|
EOF
|
|
|
|
su sdn <<'EOF'
|
|
cd /home/sdn
|
|
bash /vagrant/user-bootstrap.sh
|
|
EOF
|