Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vagrant-boxen
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Piotr Maślanka
vagrant-boxen
Commits
fa0778bb
There was a problem fetching the latest pipeline status.
Commit
fa0778bb
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
docfix
parent
811a7a9c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#642
passed with stage
in 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example/README.md
+5
-8
5 additions, 8 deletions
example/README.md
make.py
+4
-4
4 additions, 4 deletions
make.py
with
9 additions
and
12 deletions
example/README.md
+
5
−
8
View file @
fa0778bb
# example
# example
Example box. Not
co
m
pi
l
ed. Keep
four lines in same order
.
This is description of the box. It will be
copied. Keep
it short and single-line. Don't remove the line break before
.
Version: 1.0
Version: 1.0
This section will be automatically replaced by
`python make.py`
with auto-generated
Write what this box consists of and how it behaves.
content of Vagrantfile that will refer to this box
.
First four lines have a special meaning - dont move them around. Change only version number, not the word
.
---
---
Usage in Vagrantfile:
This section will be automatically replaced by
`python make.py`
with auto-generated
```
content of Vagrantfile that will refer to this box.
config.vm.box = "henrietta/example"
config.vm.box_url = "http://dev.dms-serwis.com.pl/vagrant/example.box"
```
This diff is collapsed.
Click to expand it.
make.py
+
4
−
4
View file @
fa0778bb
...
@@ -36,7 +36,7 @@ def writefile(content, path, prefix=None, lines=False):
...
@@ -36,7 +36,7 @@ def writefile(content, path, prefix=None, lines=False):
with
open
(
path
,
'
w
'
if
lines
else
'
wb
'
)
as
f
:
with
open
(
path
,
'
w
'
if
lines
else
'
wb
'
)
as
f
:
if
lines
:
if
lines
:
f
.
writelines
([
q
+
'
\n
'
for
q
in
content
])
f
.
writelines
([
q
+
os
.
linesep
for
q
in
content
])
else
:
else
:
if
not
isinstance
(
content
,
list
):
if
not
isinstance
(
content
,
list
):
content
=
[
content
]
content
=
[
content
]
...
@@ -99,7 +99,7 @@ build_$BOX:
...
@@ -99,7 +99,7 @@ build_$BOX:
after_script:
after_script:
- vagrant destroy -f
- vagrant destroy -f
- cd ..
- cd ..
'''
.
replace
(
'
$BOX
'
,
box
).
replace
(
'
$PREFIX
'
,
PREFIX
))
'''
.
replace
(
'
$BOX
'
,
box
).
replace
(
'
$PREFIX
'
,
PREFIX
)
.
replace
(
'
\n
'
,
os
.
linesep
)
)
if
len
(
gitlabci
)
==
0
:
if
len
(
gitlabci
)
==
0
:
gitlabci
=
[
'''
check_validity:
gitlabci
=
[
'''
check_validity:
...
@@ -111,7 +111,7 @@ build_$BOX:
...
@@ -111,7 +111,7 @@ build_$BOX:
- grep
"
1.0
"
metadata.json
- grep
"
1.0
"
metadata.json
- grep
"
test
"
metadata.json
- grep
"
test
"
metadata.json
- cd ..
- cd ..
'''
]
'''
.
replace
(
'
\n
'
,
os
.
linesep
)
]
writefile
(
gitlabci
,
'
.gitlab-ci.yml
'
)
writefile
(
gitlabci
,
'
.gitlab-ci.yml
'
)
...
@@ -164,7 +164,7 @@ First four lines have a special meaning - dont move them around. Change only ver
...
@@ -164,7 +164,7 @@ First four lines have a special meaning - dont move them around. Change only ver
This section will be automatically replaced by `python make.py` with auto-generated
This section will be automatically replaced by `python make.py` with auto-generated
content of Vagrantfile that will refer to this box.
content of Vagrantfile that will refer to this box.
'''
.
replace
(
'
$BOX
'
,
box
).
replace
(
'
$PREFIX
'
,
PREFIX
),
'
README.md
'
,
box
)
'''
.
replace
(
'
$BOX
'
,
box
).
replace
(
'
$PREFIX
'
,
PREFIX
)
.
replace
(
'
\n
'
,
os
.
linesep
)
,
'
README.md
'
,
box
)
writefile
(
'''
#!/bin/bash
writefile
(
'''
#!/bin/bash
...
...
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