Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 2.21 KB

INSTALL.docker.md

File metadata and controls

66 lines (45 loc) · 2.21 KB

Docker

Docker can be used to set up a development environment for SkyLines, even if you're not running Linux as your operating system.

The environment configuration is described in the docker-compose.yml file.

The same setup is also used on GitHub to run the tests.

docker-compose

docker-compose can be used to run and coordinate multiple containers in parallel. Once you have it installed, you should be able to run docker-compose up to automatically build the necessary container images and run them.

Usage with VSCode

If you are less familiar with Docker, VSCode makes it easy to bootstrap a development environment to start tinkering with the SkyLines backend code.

All you need to do is install docker, VSCode and the Remote - Containers extension.

Check the documentation for detailed instructions. You can also check a tutorial.

Once you have everything installed you can run the Remote-Containers: ReOpen in Container... command, and your workspace will be re-opened from inside the container.

Running tests

If you want to run the testsuite, launch:

docker-compose run api pipenv run pytest -vv

You can restrict the unit tests to run by passing a file or a folder:

docker-compose run api pipenv run pytest -vv tests/api/views/clubs/

See the pytest documentation for more details.

Frontend installation

The frontend is based on Ember.js. It is recommended to build the frontend on the host machine directly for improved performance.

Now you can start and build the frontend:

cd ember
npm install
bower install
node_modules/.bin/ember build