Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
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
mediaserver
envsetup
Commits
eba3e448
Commit
eba3e448
authored
4 years ago
by
Nicolas KAROLAK
Browse files
Options
Downloads
Patches
Plain Diff
document image build | refs
#30562
parent
5ec31b4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
README.md
+1
-1
1 addition, 1 deletion
README.md
doc/image.md
+76
-0
76 additions, 0 deletions
doc/image.md
with
78 additions
and
2 deletions
Makefile
+
1
−
1
View file @
eba3e448
...
...
@@ -83,7 +83,7 @@ endif
.PHONY
:
image
## image: Run Packer image build : build=<path-to-packer-file>
image
:
image-validate
packer build
-force
$(
build
)
packer build
-on-error
=
ask
-force
$(
build
)
.PHONY
:
docker-build
## docker-build: Run docker image build for CI and devcontainer
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
eba3e448
...
...
@@ -7,7 +7,7 @@ How to deploy UbiCast products:
-
[
Installation of required tools
](
/doc/install.md
)
-
[
Configuration of the controller and inventory
](
/doc/config.md
)
-
[
Deployment of UbiCast softwares
](
/doc/deploy.md
)
-
[
Build an image
](
)
(TODO
)
-
[
Build an image
](
/doc/image.md
)
## Development
...
...
This diff is collapsed.
Click to expand it.
doc/image.md
0 → 100644
+
76
−
0
View file @
eba3e448
# Image build
## Requirements
-
[
Packer
](
https://packer.io
)
: this is the tool that will automate all the steps of image creation
-
[
VMware OVF Tool
](
https://code.vmware.com/web/tool/4.4.0/ovf
)
: this is required by Packer to export the image from the VMware Hypervisor
-
A running and reachable VMware ESXi Hypervisor
## Prepare Packer file
Copy the example Packer file
`packer/example.json`
, for example to
`packer/mymediaserver.json`
, and edit the copied file.
These variable must be configured:
-
`variables.name`
: used to set the output filename and the machine hostname
-
`variables.esx_*`
: VMware hypervisor connection settings
-
`variables.network_*`
: used to pre-configure network settings, leave empty to ignore
-
`variables.skyreach_*`
: use either
`system_key`
or
`activation_key`
and leave the other empty
Then you need the groups that will be applied to the machine, for example for a MediaServer:
```
json
{
[
...
]
"provisioners"
:
[
[
...
]
{
"type"
:
"ansible"
,
[
...
]
"groups"
:
[
"monitor"
,
"postgres"
,
"manager"
,
"wowza"
,
"celerity"
,
"server"
,
"import"
]
}
]
}
```
For a worker:
```
json
{
[
...
]
"provisioners"
:
[
[
...
]
{
"type"
:
"ansible"
,
[
...
]
"groups"
:
[
"worker"
]
}
]
}
```
You can also pass additional variables to ansible in
`provisionners['1'].extra_arguments`
.
## Build image
Check that the Packer file is valid (the hypervisor must be reachable):
```
make image-validate build=packer/mymediaserver.json
```
Build the OVA:
```
sh
make image
build
=
packer/mymediaserver.json
```
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