Project Build and Deployment
This folder contains a Makefile and configuration files for building and deploying production and staging versions of Swedeb.
Usage
To use the Makefile, you first need to select a target deploy environment (staging or production) and then building the image. The system will ask for confirmation if you try to build a new image that targets the production environment.
Switch to environment that targets DEVELOPMENT
make setup-staging
Switch to environment that targets PRODUCTION
make setup-production
Make image
make image
Primary targets
help - Show this help setup-production - Setup .env for production deployment setup-staging - Setup .env for staging deployment image - Build frontend, backend and image
Secondary targets
frontend - Build frontend application and copy dist to ./public folder backend - Build backend if SWEDEB_BACKEND_TAG isn't a semver version, and not 'workdir' or branch or tag bash - Run bash in container add-host-user - Add host user tools - Install tools
Environment Variables
- SWEDEB_ENVIRONMENT: The current environment (development, staging, production).
- SWEDEB_BACKEND_TAG: The backend version to deploy (branch, tag, commit, or 'workdir').
- SWEDEB_FRONTEND_TAG: The frontend version to deploy (branch, tag, commit).
- SWEDEB_IMAGE_NAME: The base image name.
- SWEDEB_CONTAINER_NAME: The running container name (SWEDEB_ENVIRONMENT will be appended).
- SWEDEB_IMAGE_TAG: The target Docker image tag (staging or latest).
- SWEDEB_PORT: The port to expose the container on.
- SWEDEB_HOST_PORT: The host port to expose the container on.
- SWEDEB_SUBNET: The subnet to use for the container.
- SWEDEB_DATA_FOLDER: The data folder to mount into the container.
- SWEDEB_CONFIG_PATH: The config file to mount into the container.
Metadata
Release files for api-swedeb 0.2.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| api_swedeb-0.2.12.tar.gz | 34.6 kB | Without provenance | Details for api_swedeb-0.2.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| api_swedeb-0.2.12-py3-none-any.whl | Python 3 | none | any | Details for api_swedeb-0.2.12-py3-none-any.whl |
Total release size: 84.8 kB
Release files / api_swedeb-0.2.12.tar.gz
| Download URL | api_swedeb-0.2.12.tar.gz |
|---|---|
| Size | 34.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0658d2e8d2e457e41b58654259c9ce5c3ba74d8b56e83cbe4da3fa98e0085052
|
|
BLAKE2b-256 checksum How to use checksums |
b10414404e61b3089790efdce06835c208d4c930ec9f386ac5cc6f7dd0712f8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.8 Linux/6.8.0-60-generic
|
Release files / api_swedeb-0.2.12-py3-none-any.whl
| Download URL | api_swedeb-0.2.12-py3-none-any.whl |
|---|---|
| Size | 50.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afae823146771ca03503c21a063961126def384045d7633b6e71de3758b7f960
|
|
BLAKE2b-256 checksum How to use checksums |
6c8621aecb10754a9facc59b8f84d621b03c658c6a9e5dd28c39b2ea4d4a86bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.8 Linux/6.8.0-60-generic
|
Security for api-swedeb 0.2.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.