Alfresco es un sistema de gestión de contenido opensource que viene en varios sabores.

Obviamente este documento habla de la versión Community. Si querés saber un poco más podés buscar info en https://www.alfresco.com. Si llegaste acá es porque querés hacer funcionar tu cmdbuild e integrarlo con alfresco para poder adjuntar archivos. Vamos a los pasos desde 0.

Las pruebas van sobre Debian 11 recién instalado. La versión exacta es Debian 11.3.

Documentación de refrencia:
https://docs.alfresco.com/content-services/community/install/containers/docker-compose/
https://docs.docker.com/engine/install/debian/

Instalar Docker en Debian 11

Solo instalá en Debian las utilidades y el ssh server para poder conectarnos desde afuera.

#Actualizamos todo

apt update && apt upgrade

#Instalamos los repositorios y utilidades para docker

apt install ca-certificates curl gnupg

install -m 0755 -d /etc/apt/keyrings

curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg

chmod a+r /etc/apt/keyrings/docker.gpg

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  tee /etc/apt/sources.list.d/docker.list > /dev/null

apt update

apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-compose

Descargar el repositorio:

chmod -R 777 opt/

cd /opt/

git clone https://github.com/Alfresco/acs-deployment.git cd acs-deployment/docker-compose

cd acs-deployment/docker-compose
docker-compose -f community-docker-compose.yml up

Levantar docker:
docker-compose -f community-docker-compose.yml up
Listo, ya podés acceder desde: http://tu-ip:8080/alfresco
Usuario: admin Password: admin

Damos Ctrl + C para detener la ejecución y luego agregamos al comando una -d para ejecutarlo en modo detachado.

docker-compose -f community-docker-compose.yml up -d

Ya podés usar Alfresco. Las URLs según la documentación oficial son:

ServiceEndpoint
Administration and REST APIshttp://tu-ip:8080/alfresco
Sharehttp://tu-ip:8080/share
Alfresco Content Apphttp://tu-ip:8080/content-app
Search Services administrationhttp://tu-ip:8083/solr
Son las mismas urls que ves en la página principal salvo la de «Share» que por alguna razón apunta a la ip localhost en la instalacioń de alfresco.

Algunos comandos para ver trabajar con los contenedores de Alfresco:
docker-compose stop # Frena todos los contenedores

docker-compose start # arranca los contenedores

docker-compose restart # Reinicia todos los contendores

docker ps # Lista todos los contenedores activos

Integración con CMDBUILD

Podemos integrar con CMBDUILD sin necesidad de caer en la consola.

En Alfresco debemos crear el modelo de datos que usará cmdbuild para cargar los datos.
En Alfresco share (http://tu-ip:8080/share), en Mis Ficheros>Data Dictionary>Models> Subiremos el archivo cmdbuild-model.xml.

Archivo cmdbuild-model.xml

<?xml version="1.0" encoding="UTF-8"?><model name="cmdbuild:module" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Custom Model for CMDBuild</description>
<author>CMDBuild Team</author>
<version>1.0</version>

<imports>
	<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
	<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>

<namespaces>
	<namespace uri="org.cmdbuild.dms.alfresco" prefix="cmdbuild"/>
</namespaces>

<aspects>
	<aspect name="cmdbuild:classifiable">
		<title>Classfication</title>
		<properties>
			<property name="cmdbuild:classification">
				<type>d:text</type>
			</property>
		</properties>
	</aspect>
</aspects></model>

Una vez subido el archivo hay que activar el modelo y darle permisos generales como muestro en las imágenes:

Listo. Ahora a configurar en cmdbuild.

Módulo de Administración>DMS>Configuraciones>

Reemplazar mi ip de test por la ip de tu servidor de alfresco, usuario y clave de alfresco. (12.10.10.115 por tu ip).

Eso sería todo. También podes crear una etiqueta en CMDBUILD para poder usar en alfresco y se trasladará la configuración.

Una vez configurado ya vas a poder subir tus archivos a cmdbuild como adjuntos.

Con este tutorial completamos la instalación de Ready2Use / CMDBUILD que empezamos en el post anterior. (https://www.nerdadas.com/blog/instalar-cmdbuild-ready2use-openmaint-en-debian-11/)

Si faltó algo o no salió como esperabas escribime o dejalo en comentarios.

Por Jeremías Palazzesi

Solucionador de Problemas Senior!. No podés con algo?, probá conmigo!

38 comentarios en «Instalar Alfresco(docker) y Vincular con CMDBUILD en Debian 11»
  1. Have you ever considered about adding a little bit more than just your articles?

    I mean, what you say is valuable and all. But think about
    if you added some great photos or videos to give your
    posts more, «pop»! Your content is excellent but with images and video
    clips, this website could definitely be one of the best in its field.
    Fantastic blog!

  2. I know this if off topic but I’m looking
    into starting my own blog and was wondering what all is required to get set up?
    I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% certain. Any suggestions or advice
    would be greatly appreciated. Appreciate it

  3. hey there and thank you for your info – I’ve definitely picked up
    anything new from right here. I did however expertise some technical points using this website, since
    I experienced to reload the website lots of times previous
    to I could get it to load properly. I had been wondering
    if your web hosting is OK? Not that I am complaining, but slow loading instances times will sometimes affect your placement in google and can damage your high-quality score if ads and marketing with Adwords.
    Well I’m adding this RSS to my e-mail and can look out for a lot more of your respective interesting content.
    Ensure that you update this again soon.

  4. We are a group of volunteers and opening a new scheme in our community.
    Your website provided us with valuable information to work
    on. You’ve done a formidable job and our entire community will be thankful to you.

  5. Hello! I understand this is kind of off-topic but I
    had to ask. Does operating a well-established blog like yours require a large
    amount of work? I’m brand new to blogging however I do write in my
    journal everyday. I’d like to start a blog so I can easily share my experience and feelings
    online. Please let me know if you have any
    recommendations or tips for new aspiring bloggers.
    Thankyou!

  6. Fantastic items from you, man. I’ve remember your stuff prior
    to and you’re simply extremely excellent. I really
    like what you have received here, certainly like what you are stating and the way in which
    you say it. You are making it enjoyable and
    you still care for to stay it smart. I cant wait to read far more from
    you. This is really a great web site.

  7. Hi, i read your blog from time to time and i own a
    similar one and i was just wondering if you
    get a lot of spam comments? If so how do you prevent it,
    any plugin or anything you can recommend? I get so much lately it’s driving me crazy so any support is very much appreciated.

  8. I must thank you for the efforts you’ve put in penning this site.
    I’m hoping to see the same high-grade blog posts from
    you later on as well. In truth, your creative writing abilities has
    inspired me to get my own, personal site now 😉

  9. Hello there I am so thrilled I found your website, I really found
    you by error, while I was browsing on Digg for something
    else, Nonetheless I am here now and would just like to say thank
    you for a remarkable post and a all round thrilling blog (I also love
    the theme/design), I don’t have time to read through it all at the moment
    but I have saved it and also added your RSS feeds, so when I have time I will be back to read a
    great deal more, Please do keep up the excellent work.

  10. Great beat ! I would like to apprentice while you amend your site, how
    could i subscribe for a blog website? The account aided me a acceptable deal.
    I had been a little bit acquainted of this your broadcast offered
    bright clear idea

  11. You really make it seem so easy with your presentation but I find this topic
    to be actually something that I think I would never understand.
    It seems too complicated and very broad for me.
    I am looking forward for your next post, I will try to get the hang of
    it!

  12. Today, while I was at work, my cousin stole my iphone and tested
    to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views.
    I know this is completely off topic but I had to share it with someone!

  13. I’m really enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more enjoyable for me to come here
    and visit more often. Did you hire out a designer to create
    your theme? Superb work!

  14. Wonderful items from you, man. I’ve bear in mind your stuff previous to and
    you’re simply extremely great. I really like what you’ve received right here, certainly like what you’re stating
    and the way by which you assert it. You’re making it entertaining and you continue to take care of
    to stay it wise. I can not wait to read far more from you.
    This is actually a wonderful site.

  15. Hello outstanding blog! Does running a blog like this require a great deal of work?
    I’ve absolutely no knowledge of programming but I was hoping to start my own blog soon.
    Anyhow, if you have any ideas or techniques for new blog owners
    please share. I understand this is off topic however I simply wanted to
    ask. Kudos!

  16. I absolutely love your website.. Very nice colors & theme.
    Did you build this site yourself? Please reply back as I’m wanting to create my own blog and would like to learn where you got this from or exactly what the theme is called.
    Appreciate it!

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *