Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

api_swedeb-0.2.12.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

api_swedeb-0.2.12-py3-none-any.whl (50.2 kB view details)

Uploaded Python 3

File details

Details for the file api_swedeb-0.2.12.tar.gz.

File metadata

  • Download URL: api_swedeb-0.2.12.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.8 Linux/6.8.0-60-generic

File hashes

Hashes for api_swedeb-0.2.12.tar.gz
Algorithm Hash digest
SHA256 0658d2e8d2e457e41b58654259c9ce5c3ba74d8b56e83cbe4da3fa98e0085052
MD5 896d1147aed7bebd642a309c567c5c21
BLAKE2b-256 b10414404e61b3089790efdce06835c208d4c930ec9f386ac5cc6f7dd0712f8a

See more details on using hashes here.

File details

Details for the file api_swedeb-0.2.12-py3-none-any.whl.

File metadata

  • Download URL: api_swedeb-0.2.12-py3-none-any.whl
  • Upload date:
  • Size: 50.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.8 Linux/6.8.0-60-generic

File hashes

Hashes for api_swedeb-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 afae823146771ca03503c21a063961126def384045d7633b6e71de3758b7f960
MD5 2c41014f098533811f1b1b2fb8a98d80
BLAKE2b-256 6c8621aecb10754a9facc59b8f84d621b03c658c6a9e5dd28c39b2ea4d4a86bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page