Deployment with Docker
Blacksmith can be used inside a Docker container using one of the official Docker images:
blacksmith-standardfor Blacksmith Standard Edition
blacksmith-enterprisefor Blacksmith Enterprise Edition
Images follow the convention:
editionis the Blacksmith Edition and is one of
versionis the Blacksmith version. We recommend to always explicitly set the
versionto avoid any surprises in production. The
versionmust match the version constraints defined. Defaults to
distributionis one of
buster. Defaults to
When generating a new Blacksmith application, Dockerfiles are created as well with:
Dockerfile.serverfor running the server;
Dockerfile.loaderfor running the worker
Dockerfile.operatorfor running the worker
Dockerfile.gatewayfor running the gateway.
A valid Dockerfile for running Blacksmith should look like this:
FROM nunchistudio/blacksmith-enterprise:1.0.0-alpine # Copy the application inside the container. COPY ./ /app WORKDIR /app # Start the Blacksmith worker 'loader'. CMD ["blacksmith", "start", "worker", "loader"]
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the repository. Once we merge it, the changes will be reflected on the website the next time it is deployed.
Thank you for your contributions!