0% found this document useful (0 votes)
8 views3 pages

Procedure

This document provides step-by-step instructions for installing Node.js and Docker, including verification of their installations. It also covers the installation of Docker Compose and the setup of Yeoman and the Alfresco generator for creating a Docker Compose configuration. Finally, it details setting permissions for Postgres and Solr6 containers.

Uploaded by

tamboalexandra8
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Procedure

This document provides step-by-step instructions for installing Node.js and Docker, including verification of their installations. It also covers the installation of Docker Compose and the setup of Yeoman and the Alfresco generator for creating a Docker Compose configuration. Finally, it details setting permissions for Postgres and Solr6 containers.

Uploaded by

tamboalexandra8
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1. Downloading and installation Node.

js
# Docker has specific installation instructions for each
operating system.

# Please refer to the official documentation at


[Link]

# Pull the [Link] Docker image:

docker pull node:22-alpine

# Create a [Link] container and start a Shell session:

docker run -it --rm --entrypoint sh node:22-alpine

# Verify the [Link] version:

node -v # Should print "v22.20.0".

# Verify npm version:

npm -v # Should print "10.9.3".


2. Installation of Docker Compose
# Update the system and install the required packages

$ sudo apt update && sudo apt upgrade –y

$ sudo apt install -y ca-certificates curl gnupg lsb-release

# Add Docker’s official GPG key

$ sudo mkdir -p /etc/apt/keyrings

$ curl -fsSL [Link] | sudo gpg --dearmor -o /etc/apt/keyrings/[Link]

$ sudo chmod a+r /etc/apt/keyrings/[Link]

# Add Docker repository

$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/[Link]]


[Link] \

$(lsb_release -cs) stable" | sudo tee /etc/apt/[Link].d/[Link] > /dev/null


# Install Docker Engine

$ sudo apt update

$ sudo apt install -y docker-ce docker-ce-cli [Link] docker-buildx-plugin docker-compose-plugin

# Verify Docker Installation

3. Installation
$ docker of Yoeman and Alfresco Generator
--version

$ sudo docker run hello-world


Once [Link] is installed, you can install Yeoman as a module:

$ npm install -g yo
And finally, you can install this generator:

$ npm install --global generator-alfresco-docker-installer

After installing yeoman, and the alfresco generator, type this command below before using the project:

$ export NODE_OPTIONS=--openssl-legacy-provider

4. Installation of Alfresco
# Create a Working Directory and Generate the Docker Compose Configuration

$ mkdir docker-compose

$ cd docker-compose

$ yo alfresco-docker-installer

After you have started the alfresco-docker-installer, several options are provided in order to build the configuration,
you have the choose the ones that best fit with the configuration you want to do. (See Deployment Prompt image in
the report)

5. Set the Right Permissions to the Containers


# Postgres Container

$ sudo chown -R 999:999 ./data/postgresql-data ./logs/postgres

# Solr6 Container
$ sudo chown -R 33007 ./data/solr-data

You might also like