Exported on 24-Sep-2021 13:47:47
Parameters
1 - Install Docker For Ubuntu
Installs docker to run the discourse image
Login as user {Linux User} on node {Linux Node}
# Update apt repositories
sudo apt update
# Install docker
wget -qO- https://get.docker.com/ | sh
2 - Start Docker Service
Starts docker daemon
Login as user {Linux User} on node {Linux Node}
#Start docker
sudo service docker start
3 - Clone Discourse Repository
Downloads the latest release of the Discourse source code
Login as user {Linux User} on node {Linux Node}
# Clone latest release from Discourse github repo
sudo git clone https://github.com/discourse/discourse_docker.git
4 - Upload Discourse Config File
Uploads discourse initial configuration file.
Replace following variables with your own, currently we are using a dummy SMTP server credential from Mailjet:
DISCOURSE_HOSTNAME: 'discourse.test' DISCOURSE_DEVELOPER_EMAILS: 'me@example.com,you@example.com'
DISCOURSE_SMTP_ADDRESS: in-v3.mailjet.com DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_USER_NAME: 03114bcb5c42df3c21e42fd0bb27ff95 DISCOURSE_SMTP_PASSWORD: 098f7c25bbea521bc4bbc6ae9d52c591
Login as user {Linux User} on node {Linux Node}
5 - Configure Discourse
Places the default configuration file to discourse project location
Login as user {Linux User} on node {Linux Node}
# Move config file
sudo mv ~/uploads/discourse-app.yml ~/discourse_docker/containers/app.yml
6 - Rebuild Discourse Image
Rebuilds docker application image
Login as user {Linux User} on node {Linux Node}
#CD Into discourse directory
cd ~/discourse_docker/
# Creates a fresh Discourse image from the source
sudo ./launcher rebuild app
7 - Run Discourse
Installs screen required to run the build process in background.
Once the build is complete, it launches the Discourse application server. You can see the background process by running: screen -x
Login as user {Linux User} on node {Linux Node}
#CD Into discourse directory
cd ~/discourse_docker/
# Lauches discourse application
sudo ./launcher run app
Install Discourse On Ubuntu Server With AttuneOps
This Blueprint Installs Discourse Forum On A Ubuntu Server
Discourse is an open source Internet discussion forum application. It runs on Ruby on Rails and React, and has a custom JavaScript framework to accomplish its dynamic front-end behavior. The goal of the Discourse project is to create a simple, nice-looking online discussion platform with modern features like search, tagging, and private messages.
Pre-Blueprint Attune setup
Steps Involved