View Issue Details

IDProjectCategoryView StatusLast Update
0004091OpenFOAMBugpublic2024-06-18 07:50
ReporterBrendenEpps Assigned Tochris  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformOpenFOAMv11 for MacOSOSMacOS Version10.14.6
Product Version11 
Summary0004091: openfoam11-macos script throws error: "docker: invalid reference format.".
DescriptionThe "openfoam11-macos" script has two bugs causing it to throw the error: "docker: invalid reference format.".
Steps To Reproduce* First fix bug ID: 0004090. Remove these two lines (which cause error "No directory exists:") per bug report 0004090.
        [ -d "$MOUNT_DIR" ] || usage "No directory exists: $MOUNT_DIR"
        MOUNT_DIR=$(cd "$MOUNT_DIR" && pwd -P)

* Now run the script as usual. Terminal >
                sudo chmod 755 /usr/local/bin/openfoam11-macos
        cd $HOME/openfoam
        openfoam11-macos

* Result: Script throws error message "docker: invalid reference format."
Additional Information* Cause of Error: Two typos...
    1) Use double quotes ("") instead of single quotes (''), so $ver is expanded.
    2) "IP" should be "ip", since Shell script is case sensitive.

* Solution: Modify two lines as follows:
    change docker_image='openfoam/openfoam$ver-graphical-apps'
    to docker_image="openfoam/openfoam$ver-graphical-apps"

    change -e DISPLAY=$IP:0 \
    to -e DISPLAY=$ip:0 \
TagsNo tags attached.

Relationships

related to 0004062 closedchris openfoam10-macos needs modification to run 

Activities

chris

2024-06-18 07:50

manager   ~0013265

Thanks. openfoam11-macos, openfoam10-macos and openfoam-dev-macos scripts are corrected.
https://dl.openfoam.org/docker/

Issue History

Date Modified Username Field Change
2024-06-05 14:36 BrendenEpps New Issue
2024-06-11 09:42 wyldckat Assigned To => chris
2024-06-11 09:42 wyldckat Status new => assigned
2024-06-11 09:44 wyldckat Relationship added related to 0004062
2024-06-18 07:50 chris Status assigned => closed
2024-06-18 07:50 chris Resolution open => fixed
2024-06-18 07:50 chris Note Added: 0013265