Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
4ebfe4c9
Commit
4ebfe4c9
authored
5 years ago
by
panos
Browse files
Options
Downloads
Patches
Plain Diff
update documentation, improve Vagrantfile
parent
166a3eb7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-3
5 additions, 3 deletions
README.md
Vagrantfile
+7
-2
7 additions, 2 deletions
Vagrantfile
with
12 additions
and
5 deletions
README.md
+
5
−
3
View file @
4ebfe4c9
...
@@ -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
```
```
...
...
This diff is collapsed.
Click to expand it.
Vagrantfile
+
7
−
2
View file @
4ebfe4c9
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment