Packer templates to build and publish machines images.
-
Vagrant must be installed
-
Look at the available Vagrant boxes on Artifactory repository
System | Package name | Box base image | Added value |
---|---|---|---|
Ubuntu 20.04 (Focal) x64 | rabbidsincubator/ubuntu2004x64 | generic/ubuntu2004 |
Packages up-to-date |
Ubuntu 18.04 (Bionic) x64 | rabbidsincubator/ubuntu1804x64 | hashicorp/bionic64 |
Packages up-to-date |
- Reference the image in the Vagrantfile
# gets locally the vagrant boxes from the remote Vagrant repository (artifactory)
vagrant box add "https://devpro.jfrog.io/artifactory/api/vagrant/rabbidsincubator-vagrant/rabbidsincubator%2Fubuntu2004x64"
vagrant box add "https://devpro.jfrog.io/artifactory/api/vagrant/rabbidsincubator-vagrant/rabbidsincubator%2Fubuntu1804x64"
# creates Vagrantfile on a specific version
vagrant init rabbidsincubator/ubuntu1804x64
# starts the machine
vagrant up
# cleans up
vagrant destroy -f
rm -r .vagrant/
rm Vagrantfile
-
Review the design documentation
-
Open the template(s) you are interested in
Template folder | Image type | System |
---|---|---|
vagrant-ubuntu |
Vagrant box | Ubuntu |
mkdir -p .gitlab/runner/local
docker run --rm --name gitlab-runner -v /var/run/docker.sock:/var/run/docker.sock -v $PWD/.gitlab/runner/local/config:/etc/gitlab-runner -v $PWD:$PWD --workdir $PWD gitlab/gitlab-runner exec shell ci