In some cases you may need to install and configure system
dependencies. Examples include installing and configuring
database drivers or the Java JRE environment.
Dash Enterprise supports these actions through an
apt-packages file and a
We have a collection of sample apps that install common system-level
dependencies. These applications are ready to deploy:
If you need help configuring complex system level dependencies, please
reach out to our support team.
In the root of your application folder, create a file called
apt-packages. Here you may specify apt packages to be
installed with one package per line. For example, to install
the ODBC driver we could include an
apt-packages file that
You may include a pre-deploy script that executes in
your Dash App’s environment. For the case of adding an
ODBC driver, we need to add ODBC initialization files into
the correct systems paths. To do so, we include the ODBC
initialization files in the application folder and then
copy them into system paths in the pre-deploy script.
Let’s generate a file to do this. Note that the file can
have any name as we must specify the name in an application
For the purposes of this example we assume we have
setup_pyodbc and installed it in the root of our
Next we must instruct Dash Enterprise to run our
file by adding a JSON configuration file named
into the root of our application folder.
Now when the application is deployed, it will install the apt
packages specified in
apt-packages and run the setup file
app.json. In this case it allows us to install
and then configure the ODBC driver.
To see this example code in action
check out our ODBC example