Skip to content

Commit 62564aa

Browse files
committed
Add a welcome message to the container.
[skip tests]
1 parent c850163 commit 62564aa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ RUN mkdir -m 0777 /depot
6969
ENV JULIA_DEPOT_PATH=/usr/local/share/julia:
7070
COPY <<EOF /usr/local/share/julia/config/startup.jl
7171
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
7283
mkpath("/depot/environments")
7384
cp("/usr/local/share/julia/environments/v$(VERSION.major).$(VERSION.minor)",
7485
"/depot/environments/v$(VERSION.major).$(VERSION.minor)")

0 commit comments

Comments
 (0)