Skip to content

Commit

Permalink
README and Docker for application build
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Petukhov committed Sep 12, 2024
1 parent ee4f4d9 commit 26a6feb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
11 changes: 1 addition & 10 deletions README-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Update the version in the Project.toml, then:
```
export BAYSOR_VERSION=v0.6.0
# ...change the version in the Project.toml...
LazyModules_lazyload=false julia --project ./deps/build.jl app
LazyModules_lazyload=false JULIA_NUM_THREADS=30 julia --project ./deps/build.jl app
# ...test transferability...
zip -r "baysor-x86_x64-linux-${BAYSOR_VERSION}_build.zip" LICENSE README.md ./bin/baysor/*
Expand All @@ -26,12 +26,3 @@ using Comonicon: Builder, Configs
options = Configs.read_options(Baysor)
Builder.build_application(Baysor, options)
```


```julia
using TestPlotCompile
using Comonicon: Builder, Configs

options = Configs.read_options(TestPlotCompile)
Builder.build_application(TestPlotCompile, options)
```
16 changes: 16 additions & 0 deletions docker_build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:20.04

RUN apt-get update && apt-get install -y build-essential
RUN apt install -y curl
RUN curl -fsSL https://install.julialang.org | sh -s -- -y

ENV PATH="/root/.juliaup/bin:${PATH}"
ENV JULIA_NUM_THREADS=30

# ### Ignore cache (https://stackoverflow.com/questions/35134713/disable-cache-for-specific-run-commands)
# # ARG CACHEBUST=1
# RUN julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/kharchenkolab/Baysor.git#develop"));'
# RUN julia -e 'using Pkg; Pkg.develop("Baysor");'

# ENTRYPOINT ["/bin/bash"]
# WORKDIR /root/.julia/dev/Baysor/

0 comments on commit 26a6feb

Please sign in to comment.