Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
eossr eossr
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

  • ESCAPE2020
  • WP3
  • eossreossr
  • Issues
  • #66

Closed
Open
Created Nov 05, 2021 by Dave Morris@dmorris

Dockerfile ignores local source code

This statement in the Dockerfile https://gitlab.in2p3.fr/escape2020/wp3/eossr/-/blob/master/Docker/Dockerfile#L5

RUN pip install https://gitlab.in2p3.fr/escape2020/wp3/eossr/-/archive/master/eossr-master.tar

This means that a developer cannot modify the code and create a Docker image from the local copy. The Docker build will always ignore the content of the local copy and use whatever is in the tar file stored in the gitlab archive.

This also means that trying to build a container for a specific version by checking out a tagged version of the git repository will not work. The Docker build will always revert to whatever is in the tar file stored in the gitlab archive.

The only way to create a Docker container with modified code using this Dockerfile is to compile the code, package it as a tar file, upload it to the gitlab archive and label it as the current latest live version. However, doing so would mean that anyone else who tried to build a container using this Dockerfile would also get the modified version.

The Dockerfile should be placed at the root of the project and it should install the library from the local source code, or the project should provide a shell script that tells docker build to use different locations for the Dockerfile and build context.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking