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.10.tar.gz (34.7 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.10-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: api_swedeb-0.2.10.tar.gz
  • Upload date:
  • Size: 34.7 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.10.tar.gz
Algorithm Hash digest
SHA256 f2936dc412d02a0bd774a17df78ab11adae64dd6a7055056217b0d48141ee373
MD5 f1793c40b8e95db14e937479b5b3d968
BLAKE2b-256 c53ced92beda926840d7091bc31a28ddd9b05cc590a725b30a25c991f2c74210

See more details on using hashes here.

File details

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

File metadata

  • Download URL: api_swedeb-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 50.3 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 7f84f46542150dff792876cd1fc52fdf818c8f84fdc0537b85b7d1b6969e778d
MD5 c9fffc5555e77e2d0e43825ec0fb4b67
BLAKE2b-256 80aca2df48f138547f8e75556ab2558a8f21852422def4c730abbfeb2e34cfd1

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