3.1 KiB
Getting Started
!! You need to be connected to WSL before proceeding
Other Pre-requisites
To get started you need Docker, docker-compose, and git setup in WSL. For Docker basics and best practices refer to Docker's documentation. After that, clone this repo:
Introduction
You will be working in the ./development folder a.k.a. a dev workspace. Follow the steps below to set up the workspace.
Workspace Setup
- Clone the Repo into your working directory
git clone https://github.com/cronos-capital/RAFNAV-Docker.git
cd RAFNAV-Docker
- Create the devcontainer and VsCode configuration from the templates provided
cp -R devcontainer-example .devcontainer
cp -R development/vscode-example development/.vscode
Build the Docker Image
Run the following command in your working directory
docker build -t rafnav_bench:latest ./images/bench
You may change the tag to the relevant naming convention.
Container Initialization
You have two option for starting the docker container for development:
- Opening the folder in VS as a docker container.
- Manually starting the container in the terminal.
Reopen folder in dev container
-
Open the command pallet with ctrl + shift + p or View->Command Pallet
-
Run the command
dev containers: rebuild and reopen in container -
Wait for the container to warm up...
Manually start the container
- Start the containers with docker-compose.
docker-compose -f .devcontainer/docker-compose.yml up -d
- Execute (open) the working directory of the container.
docker exec -e "TERM=xterm-256color" -w /workspace/development -it devcontainer-frappe-1 bash
Note: Your terminal is now open in the development workspace. However, the VsCode window is not.
Starting Development
- Run the installer
frap-install
Note: For additional args and configs run frap-install --help first.
- cd into rafnav's development bench
cd rafnav_bench
- Now you are able to start development on RAFNAV with all the dependencies and correct environment set up.
Documentation
Production
- List of containers
- Single Compose Setup
- Environment Variables
- Single Server Example
- Setup Options
- Site Operations
- Backup and Push Cron Job
- Port Based Multi Tenancy
- Migrate from multi-image setup
- running on linux/mac