Exported on 24-Sep-2021 13:31:29
Parameters
1 - Install Docker
Updates apt repositories and Installs docker.
Login as user {Linux User} on node {Linux Node}
# Update yum repository
sudo yum -y update
# Install docker
sudo curl -fsSL https://get.docker.com/ | sh
2 - Start Docker Service
Starts docker daemon and configures it to launch at startup.
Login as user {Linux User} on node {Linux Node}
# Enable docker
sudo systemctl enable docker
sudo systemctl start docker
sudo systemctl status docker
3 - Clone Discourse
Downloads the latest release of the Discourse source code.
Login as user {Linux User} on node {Linux Node}
#Install git
sudo yum -y install git
# Clone latest release from Discourse github repo
sudo git clone https://github.com/discourse/discourse_docker.git
4 - Upload 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 - Build & 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}
# Install screen
sudo yum -y install screen
# Enable zombie mode
sudo echo "zombie xy" >> ~/.screenrc
#CD Into discourse directory
cd ~/discourse_docker/
# Create deployment script
echo 'sudo ./launcher rebuild app; sudo ./launcher run app' | sudo tee -a deploy-discourse.sh
# Creates a fresh Discourse image from the source
screen -d -m bash deploy-discourse.sh
Install Discourse On CentOS Server With AttuneOps
This Blueprint Installs Discourse Forum On A CentOS Server
Discourse is an open source Internet forum and mailing list management software application founded in 2013 by Jeff Atwood, Robin Ward, and Sam Saffron. Discourse received funding from First Round Capital and Greylock Partners. The application is written with Ember.js and Ruby on Rails.
Discourse allows you to setup a fully-functional community or forum website in quick and easy way using Docker.
Pre-Blueprint Attune setup
Steps Involved