File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,17 @@ RUN mkdir -m 0777 /depot
69
69
ENV JULIA_DEPOT_PATH=/usr/local/share/julia:
70
70
COPY <<EOF /usr/local/share/julia/config/startup.jl
71
71
if !isdir("/depot/environments/v$(VERSION.major).$(VERSION.minor)" )
72
+ if isinteractive() && Base.JLOptions().quiet == 0
73
+ println("""Welcome to this CUDA.jl container!
74
+
75
+ Since this is the first time you're running this container,
76
+ we'll set up a user depot for you at `/depot`. For persistency,
77
+ you can mount a volume at this location.
78
+
79
+ The CUDA.jl package is pre-installed, and ready to be imported.
80
+ Remember that you need to invoke Docker with e.g. `--gpus=all`
81
+ to access the GPU.""" )
82
+ end
72
83
mkpath("/depot/environments" )
73
84
cp("/usr/local/share/julia/environments/v$(VERSION.major).$(VERSION.minor)" ,
74
85
"/depot/environments/v$(VERSION.major).$(VERSION.minor)" )
You can’t perform that action at this time.
0 commit comments