Installing the WAR File into an Alfresco SDK AIO Project - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License
  1. Copy API Explorer WAR file into the SDK project.

    Copy the api-explorer-7.0.0.war into the aio/aio-platform-docker/src/main/docker AIO SDK directory. Then rename the file to api-explorer.war.

  2. Open up the platform/repository Docker file and add the command to copy the api-explorer.war into tomcat/webapps.

    The platform (repository) Dockerfile is located in the aio/aio-platform-docker/src/main/docker AIO SDK directory. Add the following COPY command at the end of this file:

    ...
    # Copy the ReST API Explorer into the Tomcat Webapps directory
    COPY api-explorer.war $TOMCAT_DIR/webapps/
    

    What this Dockerfile will do is build a custom Repository Docker image that is based on the out-of-the-box Alfresco Repository Docker image that you are using. After it has copied in all the extensions, config files, license etc it will finish by copying in the api-explorer.war into the tomcat/webapps directory where it will be picked up and deployed.

  3. Restart the platform/repository container.

    We have changed only the platform/repository, so it is enough to just restart this container:

    acs61-aio mbergljung$ ./run.sh reload_acs
    Killing docker_acs62-aio-acs_1 ... done
    Going to remove docker_acs61-aio-acs_1
    Removing docker_acs62-aio-acs_1 ... done
    ...
    
    Note: This does not remove any content or metadata.