Last active
March 22, 2022 16:27
-
-
Save hi-ko/a0d19c65c14ce706c52f56f037e0e26a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Install Docker | |
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
sudo docker -v | |
## Install Docker Compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo docker-compose -v | |
## Install Node.js | |
## yeoman expects nodejs >= 12 | |
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh | |
# register apt repo | |
sudo bash nodesource_setup.sh | |
# then install latest | |
sudo apt install -y nodejs | |
## install Yeoman | |
## [Yeoman](https://www.npmjs.com/package/yo?activeTab=readme) | |
sudo npm install --global yo | |
## Install generator-alfresco-docker-installer | |
sudo npm install --global generator-alfresco-docker-installer | |
## prepare expected dirs | |
## setting full permissions just for testing to avoid permission issues - never do that in production! | |
## better set user id in docker compose: | |
## user: "${UID}:${GID}" | |
mkdir docker-compose && cd docker-compose | |
mkdir -p data/{activemq-data,alf-repo-data,postgres-data,solr-data} | |
chmod 777 data/{activemq-data,alf-repo-data,postgres-data,solr-data} | |
mkdir -p logs/{alfresco,postgres,share} | |
chmod 777 logs/{alfresco,postgres,share} | |
# run generator | |
# yo alfresco-docker-installer | |
yo alfresco-docker-installer --acsVersion=7.2 | |
# then | |
sudo docker-compose up --build --force-recreate -d | |
###################### | |
# shutdown | |
docker-compose down | |
# cleanup CAUTION: this will delete everything !!! | |
sudo docker system prune --force --volumes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment