To take a peek on your Ops skills.
You will need to setup a set of servers based on the 'Architecture' section on this page. You can use your favourite tools to do so, and ideally the solution must be executed with single command bash solutions/run_solutions.sh
. Once the servers are up, you will need to configure their target IP address into .env
file that is generated by npm run init
command and execute test command npm test
. This command will run test cases that will assess your solutions.
Commands you will need to know:
npm install # Install dependency
npm run init # copy base configuration file, you will need to configure environment file properly.
npm test # Verify your solution.
- Web Server
- Nginx
- sshd
- Application Server
- Express based app
- sshd
- Database Server
- Postgres
- Cache Server
- Redis
You will need to map target machines following this convention:
+-------------+ +-------------+ +-------------+ +-------------+
| | | | | | | |
| Web +----+ Application +----+ Database +----+ Cache |
| | | | | | | |
+-------------+ +-------------+ +-------------+ +-------------+
The test will pick .env
environment variable and use that to access the servers. Make sure to configure IP address properly.
# Make sure to put correct IP addresses as it may change after reboot.
WEB_TARGET_MACHINE=192.168.99.101
APPLICATION_TARGET_MACHINE=192.168.99.102
CACHE_TARGET_MACHINE=192.168.99.103
DATABASE_TARGET_MACHINE=192.168.99.104
- VMs/Servers setup.
- Network and firewall configuration.
- Code build and deployment.
- Put your solutions under
solutions
directory. - Use any tool you need and that you are comfortable with.
- You can use
Vagrant
orDocker
to manage virtual machines. You can also useTerraform
by completingsolutions/main.tf
- By default all port must be blocked except the one used by application.
- To run solutions, we should run
bash solutions/run_solutions.sh
. - Configure IP address properly in
.env
file. - Run
npm test