Skip to content
Snippets Groups Projects
Commit c654c777 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

```

parent 5e138dc3
No related branches found
No related tags found
No related merge requests found
Pipeline #623 canceled with stages
in 44 seconds
check_validity:
stage: test deploy_example:
stage: deploy
tags:
- vagrant
- develop19216822423
script: script:
- python make.py newbox test - vagrant box remove henrietta/example || true
- cd test - vagrant box add henrietta/example file:///var/www/html/dev/vagrant/example.box
build_example:
stage: build
tags:
- vagrant
- develop19216822423
before_script:
- cp *.sh example/
- cp SkeletonVagrantfile example/Vagrantfile
- cd example
- python ../make.py meta - python ../make.py meta
- grep "1.0" metadata.json script:
- grep "example" metadata.json
- vagrant up - vagrant up
- vagrant package --out example.box
- mv -f example.box /var/www/html/dev/vagrant/example.box
- cd ..
after_script:
- vagrant destroy -f - vagrant destroy -f
- cd .. - cd ..
# example
This is an example box.
Version: 1.0
It won't be compiled.
---
This section will be automatically replaced by `python make.py` with auto-generated
content of Vagrantfile that will refer to this box
---
Usage in Vagrantfile:
```
config.vm.box = "henrietta/example"
config.vm.box_url = "http://dev.dms-serwis.com.pl/vagrant/example.box"
```
#!/bin/bash
# This will be executed during build process as root
# You can delete it if you want to.
# cd into a directory if you depend on a particular working directory.
#!/bin/bash
# This will be executed during build process as user Vagrant
# You can delete it if you want to.
# cd into a directory if you depend on a particular working directory.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment