question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Finalize docker export capabilities

See original GitHub issue

Feature description:

Finalize capabilities to export an opyrator to a Docker image.

The export can be executed via command line:

opyrator export my_opyrator:hello_world --format=docker my-opyrator-image:latest

💡 The Docker export requires that Docker is installed on your machine.

After the successful export, the Docker image can be run as shown below:

docker run -p 8080:8080 my-opyrator-image:latest

Running your Opyrator within this Docker image has the advantage that only a single port is required to be exposed. The separation between UI and API is done via URL paths: http://localhost:8080/api (API); http://localhost:8080/ui (UI). The UI is automatically configured to use the API for all function calls.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:12
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
LukasMasuchcommented, Apr 30, 2021

@dleunji the Docker export is not ready yet for release 😦 But we have prioritized this feature and will update this issue as soon as it is ready for usage.

1reaction
amitmtrncommented, Jun 23, 2021

Hi, I want to collaborate on this issue, can you tell me if the logic for exporting the docker would be acceptable?

  1. pip freeze to a requirements file
  2. create docker file from python
  3. copy the opyrator file and the requirements (from the freeze)
  4. pip install the requirements (on the docker file)
  5. opyrator launch-ui and opyrator-launch-api (2 ports open on the docker 8080 and 8051)
  6. dump the docker image
Read more comments on GitHub >

github_iconTop Results From Across the Web

docker container export
docker container export, Export a container's filesystem as a tar archive. docker container inspect, Display detailed information on one or more containers.
Read more >
docker export - Docker Documentation
The docker export command does not export the contents of volumes associated with the container. If a volume is mounted on top of...
Read more >
docker save - Docker Documentation
docker save: Produces a tarred repository to the standard output stream. Contains all parent layers, and all tags + versions, or specified `repo:tag`, ......
Read more >
docker build - Docker Documentation
For example, custom exporters allow you to export the build artifacts as files on the local filesystem instead of a Docker image, which...
Read more >
docker buildx build
Sets the export action for the build result. In docker build all builds finish by creating a container image and exporting it to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found