Skip to content

Commit

Permalink
Updated julia and postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliadei committed Jan 17, 2025
1 parent 2c0a09a commit 74dcaad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions julia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Run using the standard `ces-run` command without any additional inputs.
## Notes

This example contains the script `plot_example.jl`, which generates a plot, and a bash script `run_test.sh` that executes the plot script and then saves the output to `/safe_outputs`. Both files are found under the `src` directory, which is copied inside the container in the `Dockerfile`. The required packages are installed using the `install_packages.jl` script.

Warning: this example takes several minutes to run inside the TRE due to the Plots package being loaded by the script.
2 changes: 2 additions & 0 deletions julia/src/plot_example.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Plots
# prevents figure from attempting to be displayed
ENV["GKSwstype"]="nul"

# plot some data
plot([cumsum(rand(500) .- 0.5), cumsum(rand(500) .- 0.5)])
Expand Down
2 changes: 1 addition & 1 deletion postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This test ran successfully in the eidf147 environment using the following comman

```bash
mkdir pgdata pgrun
ces-run --opt-file opt_file ghcr.io/...
ces-dk-run --opt-file opt_file ghcr.io/...
```

The opt_file contains:
Expand Down

0 comments on commit 74dcaad

Please sign in to comment.