Download the PHP package polkovnik-z/docker-jobs-bundle without Composer

On this page you can find all versions of the php package polkovnik-z/docker-jobs-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package docker-jobs-bundle

Docker Jobs Bundle

Symfony bundle that offers a batch processing system with Docker.

Uses Docker containers to run and handle your jobs.

Need to know

All containers started by this bundle, are by default on the host's network.
So, if you need to connect to a local database, you can with the usual localhost|127.0.0.1.

Docker configuration

Docker Engine API must be exposed on a local port in order to be able to connect.

1. Edit the docker.service which by default on debian is located at /lib/systemd/system/docker.service

From this:

To this:

2. Edit /etc/docker/daemon.json to expose docker api at 127.0.0.1:2375

Add hosts to the json file as next:

3. Restart Docker completely

Docker Image

If not already done, you must create a Docker image which will be used to execute your jobs.

This bundle allows use of different images for each job but requires a default image to fallback on when no docker image is specified at launch.

Installation

When installing, you must specify the correct version of the bundle which coressponds to the Symfony version of your project.

Configuration

The configuration process is a bit lengthy, follow all the steps shown below.



Job Entity

You must create your Job entity and extend of BaseJob class.

As long as you extend it of BaseJob, the bundle will work correctly.


Bundle Configuration

Once you've got your Job entity and Docker image ready, the last step is to configure the bundle.

If not already done, include the bundle to your project:

Yaml configuration

At this point, you should have the bundle imported and working.
Next you need to configure the job orchestrating command to run non-stop.
Check out the steps below.


Next steps


License


All versions of docker-jobs-bundle with dependencies

PHP Build Version
Package Version
Requires polkovnik-z/php-docker-client Version 1.41.*
symfony/asset Version ~5.0
symfony/translation Version ~5.0
symfony/form Version ~5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package polkovnik-z/docker-jobs-bundle contains the following files

Loading the files please wait ....