Skip to content
Snippets Groups Projects
Commit 4ebfe4c9 authored by panos's avatar panos
Browse files

update documentation, improve Vagrantfile

parent 166a3eb7
No related branches found
No related tags found
No related merge requests found
...@@ -95,20 +95,22 @@ As part of the clmc-service installation, the service's unit tests have been run ...@@ -95,20 +95,22 @@ As part of the clmc-service installation, the service's unit tests have been run
Attach to the test-runner to run the tests Attach to the test-runner to run the tests
```shell ```shell
lxc-attach -n test-runner lxc exec test-runner /bin/bash
``` ```
Build and install the CLMC test Python module: Build and install the CLMC test Python module:
```shell ```shell
cd /vagrant/src/test cd /opt/clmc/src/test
python setup.py sdist --dist-dir=../../build python setup.py sdist --dist-dir=../../build
pip3 install /vagrant/build/clmctest-<version>.tar.gz apt install python-pip
pip install /opt/clmc/build/clmctest-<version>.tar.gz
``` ```
The following module is unit tests: The following module is unit tests:
```shell ```shell
apt install python3-pytest
pytest -s --pyargs clmctest.scripts pytest -s --pyargs clmctest.scripts
``` ```
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
$lxc_script = <<-SCRIPT $lxc_script = <<-SCRIPT
export DEBIAN_FRONTEND=noninteractive
apt-get update apt-get update
apt-get install python3 python3-setuptools jq -y apt-get install python3 python3-setuptools jq -y
...@@ -29,7 +31,8 @@ echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo deb ...@@ -29,7 +31,8 @@ echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo deb
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections
apt-get -y install iptables-persistent apt-get -y install iptables-persistent
lxd init --auto --storage-backend dir
lxd init --auto --storage-backend dir
lxc network create lxcbr0 ipv6.address=none ipv4.address=172.40.231.1/24 ipv4.nat=true lxc network create lxcbr0 ipv6.address=none ipv4.address=172.40.231.1/24 ipv4.nat=true
# enable NTP # enable NTP
...@@ -45,6 +48,7 @@ timedatectl set-ntp no ...@@ -45,6 +48,7 @@ timedatectl set-ntp no
#done #done
apt-get install ntp -y apt-get install ntp -y
echo "timesync set to ntpd" echo "timesync set to ntpd"
# set timezone to London # set timezone to London
...@@ -54,9 +58,10 @@ SCRIPT ...@@ -54,9 +58,10 @@ SCRIPT
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64" config.vm.box = "ubuntu/bionic64"
config.vm.box_version = '20190627.1.0'
config.disksize.size = '50GB' config.disksize.size = '50GB'
config.vm.provider "virtualbox" do |vb| config.vm.provider "virtualbox" do |vb|
vb.cpus = 4 vb.cpus = 2
vb.memory = "8192" vb.memory = "8192"
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment