Skip to content

Updated Dockerfile and added new run & build script - #213

Merged
pleasant-menlo merged 11 commits into
IMAP-Science-Operations-Center:mainfrom
leowerneck:212-enhancement---update--dockerfile--and-add-runscript-to-wrap--imap_l3_data_processor.py-
Sep 25, 2026
Merged

pleasant-menlo merged 11 commits into
IMAP-Science-Operations-Center:mainfrom
leowerneck:212-enhancement---update--dockerfile--and-add-runscript-to-wrap--imap_l3_data_processor.py-

Conversation

@leowerneck

Copy link
Copy Markdown
Collaborator

Overview

Closes #212.

File Changes

  • Dockerfile: documented so that it is easier to understand.
  • run_imap_l3_processor_with_docker.sh: thin wrapper to launch imap_l3_processor.py using Docker. It will build the Docker image if it is not found.
    • The wrapper ensures the --playform=linux/amd64 flag is passed to both docker build and docker run, ensuring that the executables in imap_l3_processing/glows/l3e/l3e_toolkit work inside the image.

@leowerneck leowerneck self-assigned this Sep 22, 2026
@leowerneck leowerneck added the enhancement New feature or request label Sep 22, 2026
@leowerneck leowerneck added this to IMAP Sep 22, 2026
@leowerneck leowerneck moved this to PR Open in IMAP Sep 22, 2026

@jtniehof jtniehof left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My docker-fu is weak, so I'm going to rely on @pleasant-menlo to make sure nothing's gone awry.

Should we be removing run_imap_l3_processing_using_docker.sh and/or run_local_using_docker.sh? Dockerfile_run_local?

Comment thread Dockerfile
Comment thread Dockerfile
Comment thread run_imap_l3_processor_using_docker.sh
Comment thread Dockerfile
Comment thread Dockerfile Outdated

@jtniehof jtniehof left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to go ahead and approve, although I'd like to have Menlo's eye on this, and I have a question about potentially updating the version file for a local docker build.

Comment thread run_imap_l3_processing_using_docker.sh

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unresolved moderate issues affect version metadata, image architecture handling, and temporary-data availability.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Medium severity

Open (3)
What changed in this PR

Updates Docker image construction and adds a wrapper for running the IMAP L3 processor with amd64 support.

Changes:

  • Reworks the Dockerfile into a multi-stage, uv-based build.
  • Adds a focused .dockerignore.
  • Replaces the legacy Docker wrapper with build-and-run logic.
File Summary
run_imap_l3_processor_using_docker.sh Builds and runs the processor, but requires architecture validation, version generation, and temporary-data mounting fixes.
run_imap_l3_processing_using_docker.sh Legacy wrapper replaced by the new workflow.
Dockerfile Defines the multi-stage image; version metadata remains an unresolved issue.
.dockerignore Restricts the Docker build context.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread run_imap_l3_processor_using_docker.sh Outdated
Comment thread run_imap_l3_processor_using_docker.sh Outdated
docker run --platform=linux/amd64 --rm \
-e IMAP_API_KEY \
-e IMAP_DATA_DIR=/data \
-v "$IMAP_DATA_DIR:/data" \

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temp_cdf_data already exists inside the image and is currently set up as scratch space for a single run by design. If people disagree, this can be changed.

@pleasant-menlo
pleasant-menlo merged commit 7320024 into IMAP-Science-Operations-Center:main Sep 25, 2026
15 of 17 checks passed
@pleasant-menlo

Copy link
Copy Markdown
Collaborator

Everything looks reasonable to us; the changes have been merged.

  • Karn and Nicholas

@leowerneck
leowerneck deleted the 212-enhancement---update--dockerfile--and-add-runscript-to-wrap--imap_l3_data_processor.py- branch September 25, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ENHANCEMENT - Update Dockerfile and add runscript to wrap imap_l3_data_processor.py

4 participants