Skip to Content.
Sympa Menu

opal - Re: [Opal] Docker build

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Docker build


Chronological Thread 
  • From: Rob Nagler <opal-rtnkh AT q33.us>
  • To: opal <opal AT lists.psi.ch>
  • Cc: Eric Prebys <eprebys AT ucdavis.edu>, "bruhwiler AT radiasoft.net" <bruhwiler AT radiasoft.net>
  • Subject: Re: [Opal] Docker build
  • Date: Thu, 15 Aug 2019 16:00:14 -0600

Hi Eric,

As David noted, we build a Docker image "radiasoft/beamsim" with OPAL and many other codes included. It currently contains OPAL 2.01.

One way to run this image on Mac or Linux is:

mkdir beamsim
cd beamsim
curl radia.run | bash

Another way is to run it in the current directory:

curl radia.run | bash -s beamsim

This does a few things that you'll want, e.g. set the run user and mount the current directory. 

If you are running Windows or are familiar with Docker, you can also run manually with:

docker run -it -u vagrant radiasoft/beamsim:prod bash -l

Another option is to run a local Jupyter server with:

curl jupyter.run | bash

This will download the image radiasoft/beamsim-jupyter, and invoke it with the appropriate arguments as well as tell you how to connect to the server.

Note that these images are very large (10GB), because they contain a lot of codes, which are integrated into a single pyenv for seamless execution of codes with Python 2 or 3. Expect a long "docker pull" even when you are on a fast network (most of the time is spent in the "extract" phase).

It would be helpful to know your use case, because we have support for efficient Docker image composition. We could potentially build a smaller Docker image that would better suit your needs. If you are interested in discussing further, please email me off list.

Cheers,
Rob




Archive powered by MHonArc 2.6.19.

Top of Page