Generally, you can access Julia by either starting from a Julia-baed environment or adding it through conda. But if you need, say, MATLAB and Julia, or Stata and Julia, you'll need to use the postInstall script.

First, choose the appropriate release from https://julialang.org/downloads/ and copy it into your clipboard.
Second, in your postInstall script, write something like:

#!/usr/bin/env bash
set -e

curl -L https://julialang-s3.julialang.org/bin/linux/x64/1.2/julia-1.2.0-linux-x86_64.tar.gz | tar xz

(This will download Julia 1.2.0.)

Third, add to your run  script a line that adds Julia to the PATH . If you are downloading Julia 1.2, your run  script will look like:

#!/usr/bin/env bash
set -ex

export PATH=$PATH:/julia-1.2.0/bin/

You can test that this worked by running julia --version .
For a more thorough overview of writing postInstall scripts, see Tutorial: how to write a postInstall script that downloads and installs research software.

Did this answer your question?