Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abitrolly/tosca-deploy
Test deploy of TOSCA .yaml model with xOpera
https://github.com/abitrolly/tosca-deploy
tosca
Last synced: about 1 month ago
JSON representation
Test deploy of TOSCA .yaml model with xOpera
- Host: GitHub
- URL: https://github.com/abitrolly/tosca-deploy
- Owner: abitrolly
- License: cc-by-4.0
- Created: 2022-01-07T18:01:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T18:15:52.000Z (almost 3 years ago)
- Last Synced: 2024-10-16T12:21:16.789Z (2 months ago)
- Topics: tosca
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Code adopted from https://github.com/xlab-si/xopera-examples
### Installation and deployment
1. Run `./01install.sh` to install xOpera and Ansible
2. Run `bash 02deploy.sh` to deploy hello app to localhost
3. Open http://locahost to see "hello web"NOTE: Apache2 installed on deploy, will not be uninstalled
on undeploy and original page is not restored in that case.### Testing with Docker
Clone this repo.
```
git clone https://github.com/abitrolly/tosca-deploy
cd tosca-deploy
```The command below runs docker image with Ubuntu 21.04, mounts
current dir there as `/root/tosca` and maps
http://locahost:9999 to port 80 web inside.```
docker run -v "$(pwd):/root/tosca":Z -w "/root/tosca" -it -p 9999:80 ubuntu:21.04
```Check that http://locahost:9999 shows standard Apache 2 page.
Once inside the container run commands for deployment.
```
./01install.sh
bash 02deploy.sh
```Check that http://locahost:9999 now shows "hello web".