Skip to content

Added OPENEMR_GIT arg in Dockerfile to allow pulling from test forks …#613

Open
luissantosHCIT wants to merge 7 commits intoopenemr:masterfrom
luissantosHCIT:make_git_repo_url_an_arg_docker
Open

Added OPENEMR_GIT arg in Dockerfile to allow pulling from test forks …#613
luissantosHCIT wants to merge 7 commits intoopenemr:masterfrom
luissantosHCIT:make_git_repo_url_an_arg_docker

Conversation

@luissantosHCIT
Copy link
Copy Markdown

Fixes #612

Short description of what this resolves:

Allows builder tool to override which fork to pull from when building the OpenEMR image.

Changes proposed in this pull request:

  • Make the default git repo in Dockerfile an argument defaulting to OpenEMR's official repo.
  • Named the new argument OPENEMR_GIT
  • Added OPENEMR_GIT to README

luissantosHCIT and others added 3 commits March 27, 2026 11:38
…from test forks if specified otherwise pull from OpenEMR's repo.

Signed-off-by: Luis M. Santos <lsantos@medicalmasses.com>
Signed-off-by: Luis M. Santos <lsantos@medicalmasses.com>
Copy link
Copy Markdown
Member

@kojiromike kojiromike left a comment

Choose a reason for hiding this comment

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

You may want to pause this to avoid conflicts, or keep an eye on #614, because the directory will be renamed soon.

FROM base AS openemr-source
RUN git clone https://github.com/openemr/openemr.git --branch "${OPENEMR_VERSION}" --depth 1 \
RUN git clone "${OPENEMR_GIT}" --branch "${OPENEMR_VERSION}" --depth 1 \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On the off chance the repo name ends with something other than 'openemr', the directory created won't be named 'openemr'. So an explicit name would be good.

Copy link
Copy Markdown
Author

@luissantosHCIT luissantosHCIT Mar 27, 2026

Choose a reason for hiding this comment

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

I'll wait and update this once the other changes are merged. Thank you for the headsup!

One question (I am new to the project), why are the docker directories explicitly versioned as opposed to having a "latest" that gets backed up as the versioned directory prior to updating it further?

Thank you!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good point @luissantosHCIT, that would be a simpler strategy to have the workflows use next and dev and then stamp them with the version upon release

it'll be worth thinking about moving there after we release 8.1.0 in about a month

luissantosHCIT and others added 4 commits April 2, 2026 20:11
…ny code databases available at target directory. The default directory is the contrib directory.

Signed-off-by: Luis M. Santos <lsantos@medicalmasses.com>
…e_import_cli

feature(auto-import-codes) Added script for automatically importing a…
…stream in Dockerfile

Signed-off-by: Luis M. Santos <lsantos@medicalmasses.com>
Sign up for free to 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.

Allow specifying the fork's repo as source repo for building OpenEMR

3 participants