Skip to content

Dockerfile --> Containerfile - #14

Merged
jcgraciosa merged 18 commits into
developmentfrom
containerfile
Sep 1, 2025
Merged

Dockerfile --> Containerfile#14
jcgraciosa merged 18 commits into
developmentfrom
containerfile

Conversation

@julesghub

Copy link
Copy Markdown
Member

Podman for the win!

CopilotAI review requested due to automatic review settings July 31, 2025 06:43

This comment was marked as outdated.

@julesghub
julesghub requested a review from CopilotAugust 1, 2025 16:01

CopilotAI 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.

Pull Request Overview

This PR migrates container configuration from Docker to Podman by replacing Dockerfile with Containerfile and updating the environment configuration. The changes align with using Podman as the preferred container runtime.

  • Replaced Dockerfile with Containerfile following Podman conventions
  • Updated environment configuration from specific Python version to flexible version constraint
  • Added new container launch script for Podman workflow

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
environment.yamlUpdated environment name and Python version constraint, removed pygmsh dependency
docs/developer/docker/underworld3.dockerfileRemoved old Docker configuration file
docs/developer/container/launch-container.shAdded new Podman launch script with volume mounts and port mapping
docs/developer/container/ContainerfileAdded new Containerfile with updated build instructions and syntax
DockerfileRemoved root-level Dockerfile in favor of new Containerfile location

Comment threadenvironment.yaml
- conda-forge
dependencies:
- python=3.11
- python <= 3.11

CopilotAIAug 1, 2025

Copy link

Choose a reason for hiding this comment

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

The Python version constraint <= 3.11 allows older Python versions which may not be compatible with the codebase. Consider using >=3.9,<=3.11 or a more specific constraint to ensure compatibility.

Suggested change
- python <= 3.11
- python >=3.9,<=3.11

Copilot uses AI. Check for mistakes.
-u root \
-v $HOME:/uw_dir/host_ro:ro \
-v uw_vol:/uw_dir/workspace:rw \
docker.io:underworldcode/underworld3:development $@

CopilotAIAug 1, 2025

Copy link

Choose a reason for hiding this comment

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

Invalid Docker registry URL format. Should be docker.io/underworldcode/underworld3:development (single colon after docker.io).

Suggested change
docker.io:underworldcode/underworld3:development $@
docker.io/underworldcode/underworld3:development $@

Copilot uses AI. Check for mistakes.
COPY --chown=$MAMBA_USER:$MAMBA_USER \
--exclude=**/.git \
. /home/$MAMBA_USER/underworld3
# asdasd

CopilotAIAug 1, 2025

Copy link

Choose a reason for hiding this comment

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

Remove the nonsensical comment '# asdasd' - this appears to be leftover debugging text.

Suggested change
# asdasd

Copilot uses AI. Check for mistakes.
podman run \
--rm -it \
-p 9999:8888 \
-u root \

CopilotAIAug 1, 2025

Copy link

Choose a reason for hiding this comment

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

Running the container as root user poses security risks. Consider using a non-privileged user or the default container user instead.

Suggested change
-u root \

Copilot uses AI. Check for mistakes.

@jcgraciosajcgraciosa 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.

I've checked and tested this so I approve the pull request.

@jcgraciosa
jcgraciosa merged commit 2024fe8 into developmentSep 1, 2025
1 check passed
@julesghub
julesghub deleted the containerfile branch October 13, 2025 23:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@julesghub@jcgraciosa