1
| lxc alias add shell "exec @ARGS@ -- su -l servid"lx
|
get shell on lxc container as non root user
1
2
3
| lxc shell infinispan-test-1
lxc shell infinispan-test-2
lxc shell infinispan-test-3
|
mount directory on host on container
1
2
3
| lxc config device add infinispan-test-1 downloads disk source=$HOME/Downloads path=/home/servid/Downloads
lxc config device add infinispan-test-2 downloads disk source=$HOME/Downloads path=/home/servid/Downloads
lxc config device add infinispan-test-3 downloads disk source=$HOME/Downloads path=/home/servid/Downloads
|
1
2
3
| lxc restart infinispan-test-1
lxc restart infinispan-test-2
lxc restart infinispan-test-3
|
1
2
| lxc config device set infinispan-test-4 eth0 ipv4.address 10.228.91.178
lxc config device set infinispan-test-5 eth0 ipv4.address 10.228.91.178
|
1
2
3
4
5
6
7
8
| .ssh/config file
Host ros1-live
HostName 10.141.221.65
User ubuntu
IdentityFile ~/.ssh/id_rsa
ForwardAgent Yes
ForwardX11 Yes
|
how to convert from priviliged containers to non-priviliged
1
2
| user@mendota$ lxc exec awx01 -- shutdown -h now
user@mendota$ lxc config set awx security.privileged fal
|
1
2
| mkdir -p src/main/webapp/WEB-INF
mkdir -p src/main/java/sample
|
The application is deployed to http://localhost:8080/{artifactId}/.
The XML content can be viewed by accessing the following URL: http://localhost:8080/{artifactId}/rest/xml
The JSON content can be viewed by accessing this URL: http://localhost:8080/{artifactId}/rest/json
install dependencies
install adoptopenjdk
install maven