Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

support interactive image build #1400

Closed
qwofford opened this issue Jul 6, 2022 · 1 comment · Fixed by #1408
Closed

support interactive image build #1400

qwofford opened this issue Jul 6, 2022 · 1 comment · Fixed by #1408

Comments

@qwofford
Copy link

qwofford commented Jul 6, 2022

Some users prefer working with containers interactively, using docker -it to build a container with commands issued interactively, then pushing that container to a registry for deployment in production.

It would be useful if one of two things were different about charliecloud:

  1. ch-run -i functionality, where interactive changes to a container capture provenance in the build cache.
  2. Docker build-cache to Charliecloud build-cache translation. If this were supported, users could work in Docker and pull a charliecloud container with minimal loss of information about build provenance. By supporting build-cache translation, we would have provenance similar to a Dockerfile.

"One" seems better/easier to me, but I think either of these solutions would support the docker -it development workflow.

@reidpr reidpr changed the title Supporting interactive workflows supporting interactive image build Jul 9, 2022
@reidpr
Copy link
Collaborator

reidpr commented Jul 9, 2022

I agree option 𝔬𝔫𝔢 is better, and also a lot easier.

This will have interactions with the cache, since the visible input is whatever the user types during the interactive session. Some options:

  1. Decree that no interactive session matches any other interactive session (e.g., by hashing the current time).
  2. Capture this input somehow (to hash it for the state ID). This seems hard, and also for any non-trivial session I'd guess the probability of something in the input sequence being different is essentially 1, making this option equivalent to the first in practice.
  3. Let the user provide a “message” that comprises the visible input, i.e., interactive sessions with the same message match each other regardless of what actually happens.

@reidpr reidpr changed the title supporting interactive image build support interactive image build Jul 13, 2022
@reidpr reidpr self-assigned this Jul 28, 2022
@reidpr reidpr assigned lucaudill and unassigned reidpr Jan 24, 2024
@reidpr reidpr added this to the 0.39 milestone Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants