$ git clone email@example.com:g_1/my-custom-image.git $ cd ./my-custom-image
Inside our repository you will find all the files and folder structure we need to build a custom image.
$ ls -lah > drwxrwxr-x 6 user user 4.0K Nov 28 12:04 default-data > -rw-rw-r-- 1 user user 67 Nov 28 12:04 Dockerfile > drwxrwxr-x 8 user user 4.0K Nov 28 12:04 .git > -rw-rw-r-- 1 user user 605 Nov 28 12:04 .gitlab-ci.yml > -rw-rw-r-- 1 user user 393 Nov 28 12:04 manifest.yml
As you can see our repository contains three files:
Dockerfile These three files are mandatory in every custom image, they define exactly how to build your custom image.
When making a custom image from scratch, you will mainly be changing
Dockerfile. You can read more about the manifest.yml file.
.gitlab-ci.yml file is used to build your custom image in our CI environment, we do not allow any changes to this file. Any commit that alters this file will be rejected.
You will also notice the default-data directory. This is where you store the files needed for your custom image. For more information please read about the default-data directory.
Images can only be edited locally so you will have to have a copy of the repository on your local machine. After editing a file(s) in the repository you can commit them back to SiteHost for us to build the image by doing the following:
git add ./Dockerfile git commit -m "Update Dockerfile" git push
While the image is building you can view the build status and build log from within the Control Panel.