sameersbn / docker-gitlab-ci-multi-runner

MIT License
145 stars 85 forks source link

Cannot start container #6

Closed veggiemonk closed 9 years ago

veggiemonk commented 9 years ago

Hi @sameersbn,

Great work on docker-gitlab... and this CI runner is just awesome!

I received an error when starting the container. The problem is with the register command in entrypoint.sh. There are no -d flag but there is a --name flag. Same goes for the -e flag ---> --executor

Here is the error log:

GitlabCIMultiRunner_1 | time="2015-10-14T06:02:41Z" level=fatal msg="flag provided but not defined: -d" 
GitlabCIMultiRunner_1 | Incorrect Usage.
GitlabCIMultiRunner_1 | 
GitlabCIMultiRunner_1 | NAME:
GitlabCIMultiRunner_1 |    register - register a new runner
GitlabCIMultiRunner_1 | 
GitlabCIMultiRunner_1 | USAGE:
GitlabCIMultiRunner_1 |    command register [command options] [arguments...]
GitlabCIMultiRunner_1 | 
GitlabCIMultiRunner_1 | OPTIONS:
GitlabCIMultiRunner_1 |    -c, --config "/home/gitlab_ci_multi_runner/data/config.toml" Config file [$CONFIG_FILE]
GitlabCIMultiRunner_1 |    --tag-list                                                   Tag list [$RUNNER_TAG_LIST]
GitlabCIMultiRunner_1 |    -n, --non-interactive                                        Run registration unattended [$REGISTER_NON_INTERACTIVE]
GitlabCIMultiRunner_1 |    --leave-runner                                               Don't remove runner if registration fails [$REGISTER_LEAVE_RUNNER]
GitlabCIMultiRunner_1 |    -r, --registration-token "3782150aed217f35b54f"              Runner's registration token [$REGISTRATION_TOKEN]
GitlabCIMultiRunner_1 |    -u, --url "http://srhs99.groups.local:10080/ci"              Runner URL [$CI_SERVER_URL]
GitlabCIMultiRunner_1 |    -t, --token                                                  Runner token [$CI_SERVER_TOKEN]
GitlabCIMultiRunner_1 |    --name "3059e8844de1"                                        Runner name [$RUNNER_NAME]
GitlabCIMultiRunner_1 |    --limit                                                      Maximum number of builds processed by this runner [$RUNNER_LIMIT]
GitlabCIMultiRunner_1 |    --executor "shell"                                           Select executor, eg. shell, docker, etc. [$RUNNER_EXECUTOR]
GitlabCIMultiRunner_1 |    --builds-dir                                                 Directory where builds are stored [$RUNNER_BUILDS_DIR]
GitlabCIMultiRunner_1 |    --env                                                        Custom environment variables injected to build environment [$RUNNER_ENV]
GitlabCIMultiRunner_1 |    --shell                                                      Select bash, cmd or powershell [$RUNNER_SHELL]
GitlabCIMultiRunner_1 |    --ouput-limit                                                Maximum build trace size [$RUNNER_OUTPUT_LIMIT]
GitlabCIMultiRunner_1 |    --ssh-user                                                   User name [$SSH_USER]
GitlabCIMultiRunner_1 |    --ssh-password                                               User password [$SSH_PASSWORD]
GitlabCIMultiRunner_1 |    --ssh-host                                                   Remote host [$SSH_HOST]
GitlabCIMultiRunner_1 |    --ssh-port                                                   Remote host port [$SSH_PORT]
GitlabCIMultiRunner_1 |    --ssh-identity-file                                          Identity file to be used [$SSH_IDENTITY_FILE]
GitlabCIMultiRunner_1 |    --docker-host                                                Docker daemon address [$DOCKER_HOST]
GitlabCIMultiRunner_1 |    --docker-cert-path                                           Certificate path [$DOCKER_CERT_PATH]
GitlabCIMultiRunner_1 |    --docker-tlsverify                                           Use TLS and verify the remote [$DOCKER_TLS_VERIFY]
GitlabCIMultiRunner_1 |    --docker-hostname                                            Custom container hostname [$DOCKER_HOSTNAME]
GitlabCIMultiRunner_1 |    --docker-image                                               Docker image to be used [$DOCKER_IMAGE]
GitlabCIMultiRunner_1 |    --docker-privileged                                          Give extended privileges to container [$DOCKER_PRIVILEGED]
GitlabCIMultiRunner_1 |    --docker-disable-cache                                       Disable all container caching [$DOCKER_DISABLE_CACHE]
GitlabCIMultiRunner_1 |    --docker-volumes                                             Bind mount a volumes [$DOCKER_VOLUMES]
GitlabCIMultiRunner_1 |    --docker-cache-dir                                           Directory where to store caches [$DOCKER_CACHE_DIR]
GitlabCIMultiRunner_1 |    --docker-extra-hosts                                         Add a custom host-to-IP mapping [$DOCKER_EXTRA_HOSTS]
GitlabCIMultiRunner_1 |    --docker-links                                               Add link to another container [$DOCKER_LINKS]
GitlabCIMultiRunner_1 |    --docker-services                                            Add service that is started with container [$DOCKER_SERVICES]
GitlabCIMultiRunner_1 |    --docker-wait-for-services-timeout                           How long to wait for service startup [$DOCKER_WAIT_FOR_SERVICES_TIMEOUT]
GitlabCIMultiRunner_1 |    --docker-allowed-images                                      Whitelist allowed images [$DOCKER_ALLOWED_IMAGES]
GitlabCIMultiRunner_1 |    --docker-allowed-services                                    Whitelist allowed services [$DOCKER_ALLOWED_SERVICES]
GitlabCIMultiRunner_1 |    --parallels-base-name                                        VM name to be used [$PARALLELS_BASE_NAME]
GitlabCIMultiRunner_1 |    --parallels-template-name                                    VM template to be created [$PARALLELS_TEMPLATE_NAME]
GitlabCIMultiRunner_1 |    --parallels-disable-snapshots                                Disable snapshoting to speedup VM creation [$PARALLELS_DISABLE_SNAPSHOTS]
GitlabCIMultiRunner_1 |    --docker-mysql                                               MySQL version (or specify latest) to link as service Docker service [$DOCKER_MYSQL]
GitlabCIMultiRunner_1 |    --docker-postgres                                            PostgreSQL version (or specify latest) to link as service Docker service [$DOCKER_POSTGRES]
GitlabCIMultiRunner_1 |    --docker-mongo                                               MongoDB version (or specify latest) to link as service Docker service [$DOCKER_MONGO]
GitlabCIMultiRunner_1 |    --docker-redis                                               Redis version (or specify latest) to link as service Docker service [$DOCKER_REDIS]
GitlabCIMultiRunner_1 |    
GitlabCIMultiRunner_1 | time="2015-10-14T06:02:47Z" level=fatal msg="flag provided but not defined: -d" 
dockergitlabcimultirunner_GitlabCIMultiRunner_1 exited with code 0

PR is comming right away.

Cheers,

Julien

sameersbn commented 9 years ago

PR merged. thanks