Skip to content

Commit

Permalink
Set hostname and port and allow own registry
Browse files Browse the repository at this point in the history
We want to allow using different ports and hostnames.
We pass these information as arguments to the docker container.

A user wants to make use of a local registry.
Adding a parameter to hdm calls to set individual registry.
  • Loading branch information
tuxmea committed Jan 10, 2024
1 parent 4539d90 commit 5525870
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/docker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
ensure => file,
}

docker::image { 'ghcr.io/betadots/hdm':
docker::image { $hdm::container_registry_url:
image_tag => $hdm::version,
}

docker::run { 'hdm':
image => "ghcr.io/betadots/hdm:${hdm::version}",
image => "${hdm::container_registry_url}:${hdm::version}",
env => [
"TZ=${$hdm::timezone}",
"RAILS_DEVELOPMENT_HOSTS=${hdm::hostname}",
Expand Down
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# the git tag when using rvm
# Please find the releases on HDM website: https://github.com/betadots/hdm/releases
#
# @param container_registry_url Configure another registry. Contains the host, path and container name. The version is set via the version parameter.
# e.g. ghcr.io/betadots/hdm
#
# @param ruby_version Select the ruby version when installing using rvm
# Please check [hdm ruby version requirement](https://github.com/betadots/hdm/blob/main/.ruby-version)
#
Expand Down Expand Up @@ -122,6 +125,7 @@
# installation parameter
String[1] $version = '1.0.1',
Enum['docker', 'rvm'] $method = 'docker',
String[1] $container_registry_url = 'ghcr.io/betadots/hdm',
Boolean $manage_docker = true,
String[1] $ruby_version = '3.1.2',
# required application parameter
Expand Down

0 comments on commit 5525870

Please sign in to comment.