You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Christoph Diehl edited this page Oct 28, 2019
·
4 revisions
Add a new Service
A service.yaml file is from now on required and must be placed within your service root directory.
The purpose of the file is to define for which architecture you want to build your service, provide build arguments to the build process and how your service shall be named. If you are not ready for multi-arch images and or you prefer to build only for AMD64 or do not make use of any build arguments you can define an empty service.yaml which only sets the name of the image.
Here we are building for AMD64 and ARM64 and use for each new image a custom base or parent image. At the end we combine those two images as a multi-arch image by using a manifest and each image will be available for each architecture under the same name.
Add to Travis
In order to let TravisCI build an image from your Dockerfile you must run the following steps:
Create a directory mynewservice with the Dockerfile and optional recipes - preferably in a sub-folder named recipes.
Recommended: Build the image locally and verify it passes the linting tests of your recipes, Dockerfile and passes the container tests which you provided for your container.
Add your new service to the env.matrix in the .travis.yml