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
ssl
directory. 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.crt
and keypdf.example.com.key
. - Clone source code of the converter itself into the
compose/images/pdf
directory:$ git clone https://github.com/cscart/pdf.git compose/images/pdf
- In the
compose
directory:- Copy
.env.dist
to.env
. - Set the domain of your service in the
GENWORKER_ADDRESS
variable and its external IP in theGW_EXTERNAL_IP
variable in the.env
file.
- Copy
- Run
make gw_base
in the root directory to build images. - Run
make gw_prod
to start project containers. - Run
make gw_prp
to 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
ssl
directory. 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.crt
and keypdf.example.com.key
. - Clone source code of the converter itself into the
compose/images/pdf
directory:$ git clone https://github.com/cscart/pdf.git compose/images/pdf
- In the
compose
directory:- Copy
.env.dist
to.env
. - Set the domain of your service in the
GENWORKER_ADDRESS
variable and its external IP in theGW_EXTERNAL_IP
variable in the.env
file. - Set the address of the Docker registry in the
REGISTRY
variable in the.env
file. User must be logged in in the Docker registry to interact with it.
- Copy
- Run
make gw_registry
in the root directory to download built images from the Docker registry. - Run
make gw_prp_registry
to install composer packages.