Service that converts HTML documents to PDF.
- Docker
- Docker Compose
- Clone the environment repository:
$ git clone https://github.com/cscart/pdf-infrastructure.git pdf-infrastructure $ cd pdf-infrastructure - Put your SSL certificates into the
ssldirectory. Certificate and key files should be named after the domain your service will be hosted at. E.g., if you host your PDF Converter at https://pdf.example.com, certificate must be namedpdf.example.com.crtand keypdf.example.com.key. - Clone source code of the converter itself into the
compose/images/pdfdirectory:$ git clone https://github.com/cscart/pdf.git compose/images/pdf - In the
composedirectory:- Copy
.env.distto.env. - Set the domain of your service in the
GENWORKER_ADDRESSvariable and its external IP in theGW_EXTERNAL_IPvariable in the.envfile.
- Copy
- Run
make gw_basein the root directory to build images. - Run
make gw_prodto start project containers. - Run
make gw_prpto install composer packages.
- Clone the environment repository:
$ git clone https://github.com/cscart/pdf-infrastructure.git pdf-infrastructure $ cd pdf-infrastructure - Put your SSL certificates into the
ssldirectory. Certificate and key files should be named after the domain your service will be hosted at. E.g., if you host your PDF Converter at https://pdf.example.com, certificate must be namedpdf.example.com.crtand keypdf.example.com.key. - Clone source code of the converter itself into the
compose/images/pdfdirectory:$ git clone https://github.com/cscart/pdf.git compose/images/pdf - In the
composedirectory:- Copy
.env.distto.env. - Set the domain of your service in the
GENWORKER_ADDRESSvariable and its external IP in theGW_EXTERNAL_IPvariable in the.envfile. - Set the address of the Docker registry in the
REGISTRYvariable in the.envfile. User must be logged in in the Docker registry to interact with it.
- Copy
- Run
make gw_registryin the root directory to download built images from the Docker registry. - Run
make gw_prp_registryto install composer packages.