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.9.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.9-py3-none-any.whl (50.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: api_swedeb-0.2.9.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.9.tar.gz
Algorithm Hash digest
SHA256 7dfa28d9f7eb77c48e667216283b3db6321e94c9bfe139b96747ce35e5392237
MD5 c04c12dd5595fa307dba7331326f21cc
BLAKE2b-256 a5e38dfb718617a445c818c1986517ee6bd769075cb39b5e5519616b827b7998

See more details on using hashes here.

File details

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

File metadata

  • Download URL: api_swedeb-0.2.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d53ab3b3cecf113077ff2bdffcb153a2fc8a5054ba17bcd7ca07269d24cac787
MD5 c0a97bbbe9ab5545065a9a0fddc679fc
BLAKE2b-256 40447d7a4703dd54d813dad52f99f607626768f3f59232481d7c16866962ccf7

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