Git Product home page Git Product logo

docker-images's Introduction

felipecrs/docker-images

A collection of docker images useful for development environments and CI/CD pipelines.

A multi-purpose Docker on Docker or Docker in Docker image to be used as a Devcontainer.

Docker Image Size

A Docker in Docker image to provide fully ephemeral Jenkins agents.

Docker Image Size

docker-images's People

Contributors

dependabot[bot] avatar felipecrs avatar renovate[bot] 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

Watchers

 avatar  avatar  avatar

docker-images's Issues

[how-to] Mount Jenkins agent .m2 in devcontainer

Hi,

I'm using devcontainer in a Jenkins pipeline:

docker.build('devcontainer-agent', ".devcontainer")
                            .inside('--volume=/var/run/docker.sock:/var/run/docker.sock --network=host --group-add=docker -e TZ=Europe/Paris') {
        sh """
            mvn -s settings.xml clean deploy
            docker build -t local/my-webapp:latest --build-arg SERVER_PORT=8080 -f ./my-webapp/Dockerfile ./data-crud-service-webapp
        """
        }

My .devcontainer/Dockerfile looks like this:

FROM ghcr.io/felipecrs/devcontainer

RUN pkgx install openjdk.org@17 maven.apache.org@3 \
    && java --version \
    && mvn --version

I'd like to add a volume mount to the Docker command, adapted from the Jenkins documentation, so that I avoid redownloading dependencies between runs, something like -v $HOME/.m2:/root/.m2.

Where in the contained should I mount the agent's .m2 directory? I've made several attempts but could not get it to work...

Add skopeo

skopeo is very useful for copying docker images without having to download them.

Unable to Get & Post via http://host.docker.internal:3375/v1.24

image

+ docker inspect -f . node:18-alpine

error during connect: Get "http://host.docker.internal:3375/v1.24/containers/node:18-alpine/json": EOF
[Pipeline] isUnix
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ docker pull node:18-alpine
error during connect: Post "http://host.docker.internal:3375/v1.24/images/create?fromImage=node&tag=18-alpine": EOF

Background:

  • Host is a ubuntu machine, running docker API version v1.43
    image

  • Jenkins master & jenkins proxy are both set up to run in docker
    image

Possible root cause:

  • My guess is the wrong docker version. 1.43 (my host docker version) vs 1.24 (your dind image)

Question:

  • Is there a way to fix this without changing my host docker version?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

dockerfile
Dockerfile
  • ubuntu noble-20240605
jenkins-agent-dind/test-fixtures/Dockerfile
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • docker/setup-buildx-action v3
  • docker/bake-action v5
  • actions/checkout v4
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3
  • docker/bake-action v5
  • actions/checkout v4
  • docker/setup-buildx-action v3
  • docker/bake-action v5
  • devcontainers/ci v0.3
  • actions/checkout v4
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3
  • docker/metadata-action v5
  • docker/metadata-action v5
  • docker/login-action v3
  • docker/bake-action v5
helmfile
jenkins-agent-dind/test-fixtures/helmfile.yaml
regex
devcontainer/scripts/prepare_image.sh
  • docker 27.0.3
  • docker/compose-switch 1.0.5
  • kadwanev/retry 1.0.2
  • felipecrs/pkgx 1.2.0-felipecrs.2
  • s6-overlay 3.1.6.2
  • felipecrs/docker-on-docker-shim 0.6.1
devcontainer/scripts/prepare_user.sh
  • felipecrs/fixdockergid 0.7.1
  • volta 1.1.1
jenkins-agent-dind/test.sh
  • jenkinsci/helm-charts 5.4.2

  • Check this box to trigger a request for Renovate to run again on this repository

Add Oh My Bash

Oh My Bash should be relatively small compared to the benefits it will bring when it comes to troubleshooting the build container with SSH.

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.