version: "2"
settings:
conductor:
# The Conductor container does the heavy lifting, and provides a portable
# Python runtime for building your target containers. It should be derived
# from the same distribution as you're building your target containers with.
base: centos:7
# roles_path: # Specify a local path containing Ansible roles
# volumes: # Provide a list of volumes to mount
# environment: # List or mapping of environment variables
# Set the name of the project. Defaults to basename of the project directory.
# For built services, concatenated with service name to form the built image name.
project_name: master_placeholder
# The deployment_output_path is mounted to the Conductor container, and the
# `run` and `deployment` commands then write generated Ansible playbooks to it.
# deployment_output_path: ./ansible-deployment
# When using the k8s or openshift engines, use the following to authorize with the API.
# Values set here will be passed to the Ansible modules. Any file paths will be mounted
# to the conductor container, allowing the `run` command to access the API.
#k8s_auth:
# path to a K8s config file
#config_file:
# name of a context found within the config file
#context:
# URL for accessing the K8s API
#host:
# An API authentication token
#api_key:
# Path to a ca cert file
#ssl_ca_cert:
# Path to a cert file
#cert_file:
# Path to a key file
#key_file:
# boolean, indicating if SSL certs should be validated
#verify_ssl:
# When using the k8s or openshift engines, use the following to set the namespace.
# If not set, the project name will be used. For openshift, the namespace maps to a project,
# and description and display_name are supported.
# k8s_namespace:
# name: master_placeholder
# description: master_placeholder
# display_name: master_placeholder
services:
# Add your containers here, specifying the base image you want to build from.
# To use this example, uncomment it and delete the curly braces after services key.
# You may need to run `docker pull ubuntu:trusty` for this to work.
master_placeholder:
from: "centos:7"
roles:
- staticsite
ports:
- "80:80"
# command: ["/usr/bin/dumb-init", "/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
# dev_overrides:
# environment:
# - "DEBUG=1"
registries:
gitlab:
url: registry.gitlab.com
namespace: projectgroup
repository-prefix: ""
The image name/url generated by ansible-container is incompatible with the name/urls that GitLab.com supports.
GitLab supports the following:
registry.gitlab.com/<username or groupname>/<project name>:tag
registry.gitlab.com/<username or groupname>/<project name>/optional-image-name:tag
registry.gitlab.com/<username or groupname>/<project name>/optional-name/optional-image-name:tag
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
The image name/url generated by ansible-container is incompatible with the name/urls that GitLab.com supports.
GitLab supports the following:
I was only ever able to get something like
I needed things like:
STEPS TO REPRODUCE
EXPECTED RESULTS
I expected my image to be pushed to GitLab.
ACTUAL RESULTS