Aller au contenu

Getting Started

Before starting to develop for Assemblyline, you will need to set up your environment. We have a couple of options to assist you, from a free-to-use and easy-to-setup script to more complex setups.

Development virtual machine

Whether you are developing a new service or working on core components, Assemblyline requires specific external packages and files installed in specific directories in the containers. For this reason, it is recommended that you do not develop directly from your desktop unless you use remote debugging features.

The minimum specifications for development virtual machine

There are quite a few containers to run to spin-up the Assemblyline dependencies. For this reason, the development VM should have at least the following specifications:

  • 2 cores
  • 8 GB of RAM
  • 40 GB of disk space

Operating system

We recommend that you use Ubuntu 20.04 for your development VM, because all instructions that we provide in the document has been built with this OS in mind. There are two versions that you can pick from:

  • Ubuntu 20.04 Desktop - For local development where your IDE runs in the same VM as the Assemblyline containers (Definitely the easiest setup)
  • Ubuntu 20.04 Server - For remote development where your IDE runs on your local computer and the Assemblyline containers run on the VM

Choosing your IDE

We have two IDEs for you to pick from, both of which support local and remote development:

VSCode

This is our recommended IDE since it is free and very easy to setup. Most of the Assemblyline team has moved to this IDE and we use a mix of local and remote development with it. Once you're done installing your VM, you can follow the instructions to get VSCode up and running using our simple setup script.

For instructions on how to use VSCode, refer to the "use VSCode" documentation.

PyCharm

This IDE is much more robust in terms Python development but the setup is more complex. There is both a paid and free version of this IDE. The free Community edition of PyCharm will allow you to do local develpment only and you will have to run the dependencies by hand using docker-compose. The paid version, PyCharm Professional, will let you manage Docker dependencies inside the IDE and utilize remote development.

Here are the installation instructions for the different setups:

For instructions on how to use PyCharm, refer to the "use PyCharm" documentation.