Skip to main content

album plugin for building docker images from solutions

Project description

Album plugin for creating Docker images from solutions

Plugin for creating Docker images from Album solutions.

The plugin allows you to package an Album solution into a Docker image, which can then be used to run the solution in a containerized environment, containing all necessary dependencies and configurations. Behavior of the container will be similar to the album run command, but the solution will be installed in a Docker image instead of the local environment. This is particularly useful for ensuring that the solution runs with all its dependencies in a consistent environment.

Installation:

  1. Install Album
  2. Activate the album environment:
conda activate album
  1. Install the album docker plugin:
pip install album-docker

Usage:

To create a docker image which contains Album with the passed solution installed run following command:

If your solution is in a directory, you can copy the solution.py file into a new folder, e.g. mySolutionFolder, and then run the command from that folder.

mkdir mySolutionFolder
cp /path/to/your/solution.py mySolutionFolder/

Then run the following command to create the docker image:


album docker --solution mySolutionFolder --output_path /your/output/path

The outcome will be a docker image with the tag <group>:<name>:<version> of the solution, where <group>, <name>, and <version> are defined in the solution.py file.

Input parameter:

  • solution: The album solution which should be packed into an executable.
  • output_path: The path where the executable should be saved
  • install-flags: Flags to pass to the album install command, e.g. '--allow-recursive'.
  • install-deps: Dependencies to install in the docker image, e.g. 'gxx' or 'gxx cmake'. This line will be added to the Dockerfile as a RUN command, so you can use any command that is valid in a Dockerfile.

Example:

album docker --solution mySolutionFolder --output_path /your/output/path --install-flags="--allow-recursive" --install-deps="apt update && apt install -y gxx cmake"

This will create a docker image with the tag group:name:version of the solution. Inside the image, the solution is installed together with the dependencies gxx and cmake.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

album_docker-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

album_docker-0.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file album_docker-0.2.0.tar.gz.

File metadata

  • Download URL: album_docker-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for album_docker-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ae06c2f55049da0fca435eb396a26cdade946251ba98d14f580b93b4365759f3
MD5 8894ccbcef751da759df3a87a12798e4
BLAKE2b-256 b859d20c8fb31112ca56932f92c2999357f3a733dd833858719f4965f34469cf

See more details on using hashes here.

File details

Details for the file album_docker-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: album_docker-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for album_docker-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f38fd764346cba3fc81db8d884c20068e27cd22166d3d5a6b1d56ce7f28b4987
MD5 91c96df2e4a14d852e9a4e377c3f10cf
BLAKE2b-256 dcf81a28c115d20de5ef67413099e9a67f72e2b73ee745c46157def79d0579b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page