{"id":19288209,"url":"https://github.com/openweb-nl/hippo-docker","last_synced_at":"2025-07-22T10:07:05.476Z","repository":{"id":147710271,"uuid":"55217654","full_name":"openweb-nl/hippo-docker","owner":"openweb-nl","description":"Docker image for hosting Hippo CMS","archived":false,"fork":false,"pushed_at":"2025-02-28T07:58:29.000Z","size":94,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-22T05:22:19.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openweb-nl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-04-01T08:52:05.000Z","updated_at":"2025-02-28T07:58:32.000Z","dependencies_parsed_at":"2025-04-22T05:34:41.176Z","dependency_job_id":null,"html_url":"https://github.com/openweb-nl/hippo-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openweb-nl/hippo-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openweb-nl","download_url":"https://codeload.github.com/openweb-nl/hippo-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openweb-nl%2Fhippo-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266473055,"owners_count":23934477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T22:08:23.366Z","updated_at":"2025-07-22T10:07:05.461Z","avatar_url":"https://github.com/openweb-nl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"### About this image\n\nThis docker image is not meant for direct usage. It is meant to be used as an extension point. For instruction on how to dockerify your Hippo project please the instruction below.\n\nIf you are looking for a runnable docker image to test drive Hippo CMS you can use one of the following docker images\n\n* [Hippo out of the box docker image] - Hippo Community edition as it comes out of the box.\n* [Gogreen docker image] - Community edition of Hippo gogreen demo website.\n\n## Important notice:\nFrom Bloomreach Experience Manager 16, Java 11 isn't supported. Tagged version are in sync with Bloomreach versions\n\nThe latest version of this image is no longer sets \"-Xmx\" JVM arguments by default. Instead, it supports \"-XX:MaxRAMPercentage\".\n\nTo still set \"-Xmx\" and \"-Xms\" you need to set environmental variables MAX_HEAP and MIN_HEAP explicitly on the container.\n\nTo change the value of -XX:MaxRAMPercentage you can use environmental variable MAX_RAM_PERCENTAGE. The value of this\nvariable is expected to be an **Integer** like 50 (Not 50.0)\n\nIf you are using MaxRAMPercentage make sure that you leave at least 512Mb for the native memory, \ne.g. if you set a maximum memory limit of 1024Mb then set MAX_RAM_PERCENTAGE to 50 percent or less.\n\n### How to dockerify a Hippo project\n\n**Step 1:** Add the following profile to your root pom.xml file.\n```XML\n\u003cprofile\u003e\n  \u003cid\u003edocker\u003c/id\u003e\n  \u003cbuild\u003e\n    \u003cplugins\u003e\n      \u003cplugin\u003e\n        \u003cgroupId\u003eorg.codehaus.mojo\u003c/groupId\u003e\n        \u003cartifactId\u003eexec-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e3.0.0\u003c/version\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cid\u003edocker-build\u003c/id\u003e\n            \u003cphase\u003epackage\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003eexec\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n              \u003cexecutable\u003edocker\u003c/executable\u003e\n              \u003cworkingDirectory\u003e${project.basedir}\u003c/workingDirectory\u003e\n              \u003carguments\u003e\n                \u003cargument\u003ebuild\u003c/argument\u003e\n                \u003cargument\u003e--pull\u003c/argument\u003e\n                \u003cargument\u003e-t\u003c/argument\u003e\n                \u003cargument\u003eyour-docker-registry/${project.artifactId}:${project.version}\u003c/argument\u003e\n                \u003cargument\u003e.\u003c/argument\u003e\n              \u003c/arguments\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n          \u003c!-- Push the image to a docker repo. --\u003e\n          \u003cexecution\u003e\n            \u003cid\u003edocker-push\u003c/id\u003e\n            \u003cphase\u003einstall\u003c/phase\u003e\n            \u003cgoals\u003e\n              \u003cgoal\u003eexec\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cconfiguration\u003e\n              \u003cexecutable\u003edocker\u003c/executable\u003e\n              \u003cworkingDirectory\u003e${project.basedir}\u003c/workingDirectory\u003e\n              \u003carguments\u003e\n                \u003cargument\u003epush\u003c/argument\u003e\n                \u003cargument\u003eyour-docker-registry/${project.artifactId}:${project.version}\u003c/argument\u003e\n              \u003c/arguments\u003e\n            \u003c/configuration\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n    \u003c/plugins\u003e\n  \u003c/build\u003e\n  \u003cmodules/\u003e\n\u003c/profile\u003e\n```\n\n**Step 2:** Add a docker file called Dockerfile in the root of the project with the following content\n\n```dockerfile\nFROM openweb/hippo:mysql-16\n\nADD target/-artifactId-*-distribution.tar.gz /usr/local/tomcat\n```\n\n**Step 3:** Add a docker ignore file called \".dockerignore\" to the root of the project with the following content\n```ignore\n.idea\ncms\ncms-dependencies\nconf\ndb-bootstrap\nessentials\nrepository-data\nsite\nsrc\ntarget\n.gitignore\n.dockerignore\n*.iml\npom.xml\n!target/\u003cartifactId\u003e-*-distribution.tar.gz\n```\n\n**Step 4:** Make sure that your distribution package does not contain a context.xml or repository.xml file.\n\n\n**Step 5:** If you want to push the image to a docker registry make sure that you are already logged into that registry \n\n### To build a docker and push it to your registry\n\n```bash\nmvn clean install\nmvn -P dist\nmvn -P docker install\n```\n### To build a docker (without pushing it for a registry)\n\n```bash\nmvn clean install\nmvn -P dist\nmvn -P docker package\n```\n\n### Run your docker image\n\n#### Without docker-compose\n\n\tdocker network create --driver bridge hippo-demo-network\n\n\tdocker run --name hippo-demo-mysql \\\n\t\t--net hippo-demo-network \\\n\t\t-e MYSQL_ROOT_PASSWORD=rootPassword \\\n\t\t-e MYSQL_DATABASE=hippo \\\n\t\t-e MYSQL_USER=hippo \\\n\t\t-e MYSQL_PASSWORD=hippoPassword \\\n\t\t-d mysql:5.7\n\n\tdocker run -d -p 8585:8080 --name hippo-demo-node1 \\\n\t\t--net hippo-demo-network \\\n\t\t-e DB_HOST=hippo-demo-mysql \\\n\t\t-e DB_PORT=3306 -e DB_NAME=hippo \\\n\t\t-e DB_USER=hippo \\\n\t\t-e DB_PASS=hippoPassword \\\n\t\t*your-docker-registry/your-artifact-id:your-project-version*\n\n\n#### With docker-compose\n\nCreate a file called docker-compose.yml with the following content\n\n```yaml\nversion: '2'\n\nservices:\n  hippo:\n    image: your-docker-registry/your-artifact-id:your-project-version\n    volumes:\n      - hippo_repository:/usr/local/repository/\n      - hippo_logs:/usr/local/tomcat/logs\n    environment:\n      DB_HOST: \"mysql\"\n      DB_PORT: \"3306\"\n      DB_NAME: \"hippo\"\n      DB_USER: \"hippo\"\n      DB_PASS: \"hippoPassword\"\n      MAIL_AUTH: \"false\"\n      MAIL_TLS_ENABLE: \"false\"\n      MAIL_HOST: \"mailcatcher\"\n      TZ: \"Europe/Amsterdam\"\n      MAX_HEAP: \"512\"\n      MIN_HEAP: \"256\"\n    depends_on:\n      - mysql\n      - mailcatcher\n    ports:\n      - \"8585:8080\"\n    restart: always\n  mysql:\n    image: mysql:5.7-debian\n    volumes:\n      - mysql_data:/var/lib/mysql\n      #- ./dump:/docker-entrypoint-initdb.d\n    environment:\n      MYSQL_ROOT_PASSWORD: \"rootPassword\"\n      MYSQL_DATABASE: \"hippo\"\n      MYSQL_USER: \"hippo\"\n      MYSQL_PASSWORD: \"hippoPassword\"\n      TZ: \"Europe/Amsterdam\"\n      #command: [\"--max_allowed_packet=512M\", \"--innodb_log_file_size=200M\"]\n    restart: always\n  mailcatcher:\n      image: tophfr/mailcatcher:latest\n      environment:\n        TZ: \"Europe/Amsterdam\"\n      ports:\n        - \"8586:80\"\n      restart: always\nvolumes:\n  mysql_data:\n    driver: local\n  hippo_repository:\n    driver: local\n  hippo_logs:\n    driver: local\n```\n\nThen start the containers with running the following command in the folder that you created the file\n\n```bash\ndocker-compose up -d\n```\n\n[Hippo out of the box docker image]: \u003chttps://hub.docker.com/r/openweb/hippo-cms-ootb/\u003e\n[Gogreen docker image]: \u003chttps://hub.docker.com/r/openweb/gogreen/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenweb-nl%2Fhippo-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenweb-nl%2Fhippo-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenweb-nl%2Fhippo-docker/lists"}