GithubHelp home page GithubHelp logo

using-docker / ci-testing Goto Github PK

View Code? Open in Web Editor NEW
49.0 6.0 64.0 11 KB

Code for "Continuous Integration and Testing with Docker" chapter of Using Docker

License: Apache License 2.0

Python 84.26% Shell 15.74%

ci-testing's Introduction

Using Docker Code Examples

"Continuous Integration and Testing with Docker"

ci-testing's People

Contributors

amouat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ci-testing's Issues

can't build image

cmd :
docker build -t identijenk .

ouput:
Sending build context to Docker daemon 2.56kB
Step 1/8 : FROM jenkins:1.609.3
---> 60d2fc1c3854
Step 2/8 : USER root
---> Using cache
---> 58d5549c8a56
Step 3/8 : RUN echo "deb http://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list && apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && apt-get update && apt-get install -y apt-transport-https && apt-get install -y sudo && apt-get install -y docker-engine && rm -rf /var/lib/apt/lists/*
---> Running in 15793fbb78f2
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.9vhhqM49cT --no-auto-check-trustdb --trust-model always --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) [email protected]" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
Ign http://httpredir.debian.org jessie InRelease
Get:1 http://apt.dockerproject.org debian-jessie InRelease [48.7 kB]
Get:2 http://httpredir.debian.org jessie-updates InRelease [16.3 kB]
Ign http://httpredir.debian.org jessie-backports InRelease
Get:3 http://httpredir.debian.org jessie Release.gpg [1652 B]
Ign http://httpredir.debian.org jessie-backports Release.gpg
Get:4 http://httpredir.debian.org jessie Release [77.3 kB]
Get:5 http://security.debian.org jessie/updates InRelease [44.9 kB]
Get:6 http://httpredir.debian.org jessie-updates/main amd64 Packages [20 B]
Ign http://httpredir.debian.org jessie-backports Release
Get:7 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
Get:8 http://apt.dockerproject.org debian-jessie/main amd64 Packages [7366 B]
Get:9 http://security.debian.org jessie/updates/main amd64 Packages [922 kB]
Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages

Err http://httpredir.debian.org jessie-backports/main amd64 Packages
404 Not Found
Fetched 10.2 MB in 8s (1266 kB/s)
W: There is no public key available for the following key IDs:
AA8E81B4331F7F50
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c echo "deb http://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list && apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D && apt-get update && apt-get install -y apt-transport-https && apt-get install -y sudo && apt-get install -y docker-engine && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Jenkins never completed

I try to build docker in jenkins, the job is not completed.

[docker ps] In my local,

CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS                               NAMES
384703c80e00        jenkins_identidock     "/bin/tini -- /usr..."   21 minutes ago      Up 21 minutes       8080/tcp, 9090/tcp, 50000/tcp       jenkins_identidock_run_1
891d004cc2ee        jenkins_identidock     "/bin/tini -- /usr..."   21 minutes ago      Up 21 minutes       8080/tcp, 9090/tcp, 50000/tcp       jenkins_identidock_1
b6a2a4b401b8        redis:3.0              "docker-entrypoint..."   21 minutes ago      Up 21 minutes       6379/tcp                            jenkins_redis_1
6e15694da9ae        amouat/dnmonster:1.0   "npm start"              21 minutes ago      Up 21 minutes       8080/tcp                            jenkins_dnmonster_1
798c8a3a5fab        identijenk             "/bin/tini -- /usr..."   28 minutes ago      Up 29 minutes       0.0.0.0:8080->8080/tcp, 50000/tcp   jenkins

and out of jenkins as following
2017-12-01 15 50 42
โ€ป There is no error until the last command executed.

How can I solve it?
And why jenkins_identidock container is generated two?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.