<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alfresco community edition with podman in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-edition-with-podman/m-p/140708#M37565</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;Since RHEL 8 no longer supports Docker, I am trying to install Alfresco Community Edition with podman. Does anyone have any experience with this? How do I have to configure the individual components? Almost everything starts, only alfresco-content-repository-community does not.&lt;/P&gt;&lt;P&gt;I am grateful for any tips.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 19:28:04 GMT</pubDate>
    <dc:creator>R4L</dc:creator>
    <dc:date>2021-02-02T19:28:04Z</dc:date>
    <item>
      <title>Alfresco community edition with podman</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-edition-with-podman/m-p/140708#M37565</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;Since RHEL 8 no longer supports Docker, I am trying to install Alfresco Community Edition with podman. Does anyone have any experience with this? How do I have to configure the individual components? Almost everything starts, only alfresco-content-repository-community does not.&lt;/P&gt;&lt;P&gt;I am grateful for any tips.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 19:28:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-edition-with-podman/m-p/140708#M37565</guid>
      <dc:creator>R4L</dc:creator>
      <dc:date>2021-02-02T19:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco community edition with podman</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-edition-with-podman/m-p/140709#M37566</link>
      <description>&lt;P&gt;Maybe this will help you get started.&lt;/P&gt;&lt;PRE&gt;podman pod create --name dms --hostname dms --publish 8080:8080,8443:8443
podman create -d --pod dms --name postgres -v $HOME/volumes/db-volume-data:/var/lib/postgresql/data:Z -v $HOME/volumes/db-volume-logs:/var/log/postgresql:Z -e POSTGRES_PASSWORD=pass1234 -e POSTGRES_USER=alfresco -e POSTGRES_DB=alfresco docker.io/library/postgres:11.7 postgres -c max_connections=300 -c logging_collector=true -c log_directory=/var/log/postgresql
podman create -d --pod dms --name activemq -v $HOME/volumes/activemq-volume-data:/opt/activemq/data:Z docker.io/alfresco/alfresco-activemq:5.15.8
podman create -d --pod dms --name transform-core-aio docker.io/alfresco/alfresco-transform-core-aio:2.3.6
podman create -d --pod dms --name solr6 -v $HOME/volumes/solr-volume-data:/opt/alfresco-search-services/data:Z -v $HOME/volumes/solr-volume-logs:/opt/alfresco-search-services/logs:Z -v $HOME/volumes/solr-shared.properties:/opt/alfresco-search-services/solrhome/conf/shared.properties:Z,ro -v $HOME/volumes/solr-log4j.properties:/opt/alfresco-search-services/logs/log4j.properties:Z,ro -e SOLR_ALFRESCO_HOST=localhost -e SOLR_ALFRESCO_PORT=7080 -e SOLR_SOLR_HOST=localhost -e SOLR_SOLR_PORT=8983 -e SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive -e ALFRESCO_SECURE_COMMS=none docker.io/alfresco/alfresco-search-services:2.0.1
podman create -d --pod dms --name alfresco -v $HOME/volumes/alfresco-volume-data:/usr/local/tomcat/alf_data:Z -v $HOME/volumes/alfresco-volume-logs:/usr/local/tomcat/logs:Z -e JAVA_TOOL_OPTIONS=" -Dencryption.keystore.type=JCEKS -Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding -Dencryption.keyAlgorithm=DESede -Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore -Dmetadata-keystore.password=mp6yc0UD9e -Dmetadata-keystore.aliases=metadata -Dmetadata-keystore.metadata.password=oKIWzVdEdA -Dmetadata-keystore.metadata.algorithm=DESede" -e JAVA_OPTS=" -Ddb.driver=org.postgresql.Driver -Ddb.username=alfresco -Ddb.password=pass1234 -Ddb.url=jdbc:postgresql://localhost:5432/alfresco -Dsolr.host=localhost -Dsolr.port=8983 -Dsolr.secureComms=none -Dsolr.base.url=/solr -Dindex.subsystem.name=solr6 -Dshare.host=localhost -Dshare.port=8080 -Dalfresco.host=localhost -Dalfresco.port=7080 -Daos.baseUrlOverwrite=http://localhost:7080/alfresco/aos -Dmessaging.broker.url=\"failover:(nio://localhost:61616)?timeout=3000&amp;amp;jms.useCompression=true\" -Ddeployment.method=DEFAULT -DlocalTransform.core-aio.url=http://localhost:8090/ -Dalfresco-pdf-renderer.url=http://localhost:8090/ -Djodconverter.url=http://localhost:8090/ -Dimg.url=http://localhost:8090/ -Dtika.url=http://localhost:8090/ -Dtransform.misc.url=http://localhost:8090/ -Dcsrf.filter.enabled=false -Dgoogledocs.enabled=false -Dsample.site.disabled=true -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80" docker.io/alfresco/alfresco-content-repository-community:6.2.2-RC1
podman create -d --pod dms --name share  -v $HOME/volumes/share-volume-logs:/usr/local/tomcat/logs:Z -e REPO_HOST=localhost -e REPO_PORT=7080 -e JAVA_OPTS=" -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 -Dalfresco.host=localhost -Dalfresco.port=7080 -Dalfresco.context=alfresco -Dalfresco.protocol=http" docker.io/alfresco/alfresco-share:6.2.2&lt;BR /&gt;&lt;BR /&gt;podman unshare&lt;BR /&gt;MOUNT_DIR=`podman mount alfresco`&lt;BR /&gt;TOMCAT_DIR=$MOUNT_DIR/usr/local/tomcat&lt;BR /&gt;cp ~/custom-model-context.xml $TOMCAT_DIR/shared/classes/alfresco/extension/&lt;BR /&gt;chown -R 33000 $TOMCAT_DIR&lt;BR /&gt;$MOUNT_DIR/usr/java/openjdk-11.0.7+10/bin/java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar uninstall org.alfresco.integrations.google.docs $TOMCAT_DIR/webapps/alfresco -nobackup -force&lt;BR /&gt;rm $TOMCAT_DIR/amps/alfresco-googledrive-repo-community-3.2.0.amp&lt;BR /&gt;cp $HOME/repo-amps/*.amp $TOMCAT_DIR/amps/&lt;BR /&gt;$MOUNT_DIR/usr/java/openjdk-11.0.7+10/bin/java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force&lt;BR /&gt;sed -i "s/==/=/g" $TOMCAT_DIR/bin/catalina.sh&lt;BR /&gt;TOMCAT_SERVER_PORT=7005&lt;BR /&gt;TOMCAT_HTTP_PORT=7080&lt;BR /&gt;TOMCAT_SSL_PORT=7443&lt;BR /&gt;TOMCAT_AJP_PORT=7009&lt;BR /&gt;TOMCAT_JPDA_PORT=7000&lt;BR /&gt;sed -i "s/&amp;lt;Server\ port=\"8005\"\ shutdown=\"SHUTDOWN\"&amp;gt;/&amp;lt;Server\ port=\"$TOMCAT_SERVER_PORT\"\ shutdown=\"SHUTDOWN\"&amp;gt;/g" $TOMCAT_DIR/conf/server.xml&lt;BR /&gt;sed -i "s/port=\"8080\"\ protocol=\"HTTP\/1.1\"/port=\"$TOMCAT_HTTP_PORT\"\ protocol=\"HTTP\/1.1\"/g" $TOMCAT_DIR/conf/server.xml&lt;BR /&gt;sed -i "s/\ &amp;lt;Connector\ port=\"8443\"/\ &amp;lt;Connector port=\"$TOMCAT_SSL_PORT\"/g" $TOMCAT_DIR/conf/server.xml&lt;BR /&gt;sed -i "s/\ &amp;lt;Connector\ port=\"8009\"\ protocol=\"AJP\/1.3\"/\ &amp;lt;Connector\ port=\"$TOMCAT_AJP_PORT\"\ protocol=\"AJP\/1.3\"\ /g" $TOMCAT_DIR/conf/server.xml&lt;BR /&gt;sed -i "s/redirectPort=\"8443\"/redirectPort=\"$TOMCAT_SSL_PORT\"/g" $TOMCAT_DIR/conf/server.xml&lt;BR /&gt;podman umount alfresco&lt;BR /&gt;exit&lt;/PRE&gt;&lt;P&gt;I wanted to run under normal user, so created user dms.&amp;nbsp; And did everything under that user. But you need cgroups v2 (try podman stats &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;) and other stuff solved (moved from CentOS to Debian and everything worked).&lt;/P&gt;&lt;P&gt;I placed everything in one pod so had to renumber conflicting ports as all the containers share "localhost".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Repository not starting:&lt;/STRONG&gt; Basically what I found out was that when you start repository image, it runs under userid (33000) that doesn't own tomcat directory so you have to fix this (chown -R 33000 $TOMCAT_DIR).&amp;nbsp;&lt;BR /&gt;In podman you can do nice tricks with existing containers (podman unshare, podman mount), but remember, if you recreate the container, you will loose all the changes. So when you are OK with the changes, it's best to make your own image from that container (podman commit) and use that image instead of original repository image.&lt;/P&gt;&lt;P&gt;I also made changes to the share and also then you need to add proxy (Apache HTTPD or nginx) to handle ports 8080/8443.&lt;/P&gt;&lt;PRE&gt;podman unshare
MOUNT_DIR=`podman mount share`
TOMCAT_DIR=$MOUNT_DIR/usr/local/tomcat
chown -R 33000 $TOMCAT_DIR
$MOUNT_DIR/usr/java/openjdk-11.0.7+10/bin/java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar uninstall org.alfresco.integrations.share.google.docs $TOMCAT_DIR/webapps/share -nobackup -force
rm $TOMCAT_DIR/amps_share/alfresco-googledrive-share-3.2.0.amp
cp $HOME/share-amps/*.amp $TOMCAT_DIR/amps_share/
$MOUNT_DIR/usr/java/openjdk-11.0.7+10/bin/java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps_share $TOMCAT_DIR/webapps/share -directory -nobackup -force
sed -i 's@&amp;lt;show-authorization-status&amp;gt;true&amp;lt;/show-authorization-status&amp;gt;@&amp;lt;show-authorization-status&amp;gt;false&amp;lt;/show-authorization-status&amp;gt;@' $TOMCAT_DIR/shared/classes/alfresco/web-extension/share-config-custom.xml
TOMCAT_SERVER_PORT=6005
TOMCAT_HTTP_PORT=6080
TOMCAT_SSL_PORT=6443
TOMCAT_AJP_PORT=6009
TOMCAT_JPDA_PORT=6000
sed -i "s/&amp;lt;Server\ port=\"8005\"\ shutdown=\"SHUTDOWN\"&amp;gt;/&amp;lt;Server\ port=\"$TOMCAT_SERVER_PORT\"\ shutdown=\"SHUTDOWN\"&amp;gt;/g" $TOMCAT_DIR/conf/server.xml
sed -i "s/port=\"8080\"\ protocol=\"HTTP\/1.1\"/port=\"$TOMCAT_HTTP_PORT\"\ protocol=\"HTTP\/1.1\"/g" $TOMCAT_DIR/conf/server.xml
sed -i "s/\ &amp;lt;Connector\ port=\"8443\"/\ &amp;lt;Connector port=\"$TOMCAT_SSL_PORT\"/g" $TOMCAT_DIR/conf/server.xml
sed -i "s/\ &amp;lt;Connector\ port=\"8009\"\ protocol=\"AJP\/1.3\"/\  &amp;lt;Connector\ port=\"$TOMCAT_AJP_PORT\"\ protocol=\"AJP\/1.3\"\ /g" $TOMCAT_DIR/conf/server.xml
sed -i "s/redirectPort=\"8443\"/redirectPort=\"$TOMCAT_SSL_PORT\"/g" $TOMCAT_DIR/conf/server.xml
podman umount share&lt;/PRE&gt;&lt;P&gt;First sed with&amp;nbsp;show-authorization-status fixes nasty bug in official docker image, which prevents admin from user management in Share.&lt;/P&gt;&lt;PRE&gt;podman pod start dms
podman stats # to see the resource usage
podman pod stop dms&lt;/PRE&gt;&lt;P&gt;dms or DMS is Document Management System in case anyone wonders why I used that&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inspiration taken from&amp;nbsp;&lt;A href="https://github.com/abhinavmishra14/change-acs-share-port-demo" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/change-acs-share-port-demo&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 22:19:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-edition-with-podman/m-p/140709#M37566</guid>
      <dc:creator>sufo</dc:creator>
      <dc:date>2021-02-09T22:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco community edition with podman</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-edition-with-podman/m-p/140710#M37567</link>
      <description>&lt;P&gt;I forgot to mention that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if you plan for production use, put resource limits on the containers (and there is far more work to be done)&lt;/LI&gt;&lt;LI&gt;you have to create volumes for the mounts used in the commands&lt;/LI&gt;&lt;LI&gt;you can export kubernetes like config&amp;nbsp;&lt;A href="http://docs.podman.io/en/latest/markdown/podman-generate-kube.1.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.podman.io/en/latest/markdown/podman-generate-kube.1.html&lt;/A&gt; to load it elsewhere&amp;nbsp;&lt;A href="http://docs.podman.io/en/latest/markdown/podman-play-kube.1.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.podman.io/en/latest/markdown/podman-play-kube.1.html&lt;/A&gt; (didn't have time to try it)&lt;/LI&gt;&lt;LI&gt;you can create systemd units (services)&amp;nbsp;&lt;A href="http://docs.podman.io/en/latest/markdown/podman-generate-systemd.1.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://docs.podman.io/en/latest/markdown/podman-generate-systemd.1.html&lt;/A&gt; - but I was unable to make it work root-less (under dms user)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 09 Feb 2021 22:32:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-community-edition-with-podman/m-p/140710#M37567</guid>
      <dc:creator>sufo</dc:creator>
      <dc:date>2021-02-09T22:32:25Z</dc:date>
    </item>
  </channel>
</rss>

