Gitlab - Build docker images from within docker shared runner -


trying build docker image withing shared runner, below ci configuration

image: osrg/dind-ubuntu-vivid  services:   - docker:dind  stages:     - build     - test     - release  variables:   container_test_image: registry.gitlab.com/somasundaramsekar/ci-test:$ci_build_ref_name   container_release_image: registry.gitlab.com/somasundaramsekar/ci-test:latest  before_script:   - apt-get update -y >/dev/null 2>&1   - apt-get install -y --fix-missing software-properties-common python-software-properties >/dev/null 2>&1   - apt-get update -y >/dev/null 2>&1   - apt-get install -y openjdk-8-jdk >/dev/null 2>&1   - apt-get install apt-transport-https -y >/dev/null 2>&1   - wget www.scala-lang.org/files/archive/scala-2.11.7.deb >/dev/null 2>&1   - dpkg -i scala-2.11.7.deb >/dev/null 2>&1   - scala -version   - echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list   - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642ac823 >/dev/null 2>&1   - apt-get update >/dev/null 2>&1   - apt-get install -y sbt >/dev/null 2>&1   - wget https://downloads.typesafe.com/typesafe-activator/1.3.10/typesafe-activator-1.3.10.zip >/dev/null 2>&1   - apt-get install -y unzip >/dev/null 2>&1   - unzip typesafe-activator-1.3.10.zip >/dev/null 2>&1   - export activator_home="$(pwd)/activator-dist-1.3.10"   - export path=$path:$activator_home/bin   - service docker start   - docker ps   - docker login -u gitlab-ci-token -p $ci_build_token registry.gitlab.com  build:   stage: build   script:     - sbt clean compile   test:   stage: test     script:     - sbt clean coverage test coveragereport  release:     stage: release     script:      - activator dist      - docker build --pull -t $container_test_image .      - docker push $container_test_image    when job runs fails below 
 * starting docker: docker    ...done. $ docker ps http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: no such file or directory. trying 

connect tls-enabled daemon without tls? error: build failed: exit code 1

tried same base docker image in local, docker ps, works after service docker start

i package application , create docker image within same job, appreciate help

use different image each stage, in case use osrg/dind-ubuntu-vivid build , test, , docker image in release stage dind service. check thread.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -