Hello, Since you are automating with ansible deployments of OFBiz, you might be interested in the container images that the project is using for the demo servers.
Note: Container images are provided by the project as a convenience for users, but are not an officially supported distribution method. However in your case I think you might find the approach to build and deploy containers useful for your use of ansible. The OFBIZ container images can be found here - https://github.com/apache/ofbiz-framework/pkgs/container/ofbiz The GitHub Actions workflow used to publish the container images: https://github.com/apache/ofbiz-framework/blob/trunk/.github/workflows/docker-image.yaml Details about building a container image from source can be seen here: https://github.com/apache/ofbiz-framework/blob/trunk/DOCKER.md The entry-point used to configure and launch OFBiz inside the container is here: https://github.com/apache/ofbiz-framework/blob/trunk/docker/docker-entrypoint.sh To see how we launch OFBiz as a container for demo-trunk: https://github.com/apache/ofbiz-tools/tree/master/demo-backup/ofbizdocker/home/ofbizdocker/demo-trunk Hope that helps, Dan. On Mon, 5 Jun 2023 at 08:09, SOD OSCARFONO <s...@oscarfono.com> wrote: > Managed to finally get a working setup, creating an Ansible role with the > following tasks: > > > --- > > - name: Install package requirements > ansible.builtin.apt: > pkg: > - curl > - git > - openjdk-19-jdk > state: present > update_cache: yes > > - name: Create directory for project in /opt > ansible.builtin.file: > path: "/opt/{{ project_dirname }}" > state: directory > > - name: Clone Apache OfBiz Framework repository > ansible.builtin.git: > repo: https://github.com/apache/ofbiz-framework > dest: "/opt/{{ project_dirname }}" > refspec: '+refs/pull/*:refs/heads/*' > > - name: Initialize Gradle wrapper > ansible.builtin.command: ./gradle/init-gradle-wrapper.sh > args: > chdir: "/opt/{{ project_dirname }}" > > - name: Prepare Apache OfBiz for first use > ansible.builtin.command: ./gradlew cleanAll "ofbiz --load-data > readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin > args: > chdir: "/opt/{{ project_dirname }}" > > - name: Copy over security properties > ansible.builtin.copy: > src: "{{ role_path }}/files/security.properties" > dest: "/opt/{{ project_dirname > }}/framework/security/config/security.properties" > mode: '0644' > > > > > > > ------- Original Message ------- > On Monday, June 5th, 2023 at 2:31 PM, SOD OSCARFONO <s...@oscarfono.com> > wrote: > > > > > > > > > > Greetings, > > > > I'm attempting to build OfBiz as per the instructions located here: > > > > https://ofbiz.apache.org/business-users.html#UsrInstall > > > > ... and within the INSTALL file. > > > > I have successfully downloaded, verified, and extracted the archive > contents, yet am stuck as the init-gradle-wrapper.sh script appears to have > errors. Specifically, the url path to Gradle project is failing with a 404 > message. > > > > It also appears to be using a very old version of Gradle (5.0.0) and I > wondered if it's not time to update this script? > > > > I'd like a work around in the meantime so I can get an instance up and > running. My thoughts are to alter the script to use Gradle version 8.1.1. I > can't seem to find checksum information to replace that populating the > SHASUM_GRADLE_WRAPPER_FILES variable however. > > > > How should I proceed I wonder? I'm new to this project, and many of the > tooling it appears the project depends on: Java, Gradle, subversion, and > JIRA. > > > > It seems an unwise investment of my time to familiarize myself with much > of the documentation on how to use and contribute to these projects at this > early stage, given that this information is dense, not tooling I typically > use or would use for any other purpose, and in any case, I am simply > attempting to get a sandbox environment up and running for testing against > our other solution options. It may be that the project doesn't meet our > requirements and such an investment of time and energy would simply be > wasted, in my case, as we have no other requirement for java anything. > > > > In searching for a solution, I've since found a github repository, ( > https://github.com/apache/ofbiz-framework) which appears to have more > recent changes to the codebase, and the init-gradle-wrapper.sh script, so I > attempted to clone and build from this source instead, however, this is the > output: > > > > root@apache-ofbiz:/opt# ./gradle/init-gradle-wrapper.sh > > === Prepare operation === > > Nothing to be done > > > > Can someone please confirm the correct install candidate and > instructions if I have any of this wrong? > > > > Thanks in advance. > > > > > > S. > -- Daniel Watford