Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

SIDEKICK API Development Docker Image

This image includes all services required to start a local instance of the
SIDEKICK API.

It is intended to build the project from a volume mounted from the host:

docker run -ti -p 8080:8080 -v $(pwd):/sidekick/api/src:ro flowpress/sidekick_api_devel

The volume can be mounted read-only, since the project is built at
/sidekick/api/build.

Alternatively, see docker-compose.yml on the SIDEKICK API repository.

The script entrypoint.sh in the PATH provides the pre-defined commands
start, and build.

The command start is meant to be called by supervisord, which is the default
command in the Dockerfile.

The command build can be used to deploy local changes:

docker exec -ti <container> entrypoint.sh build

Any other command will be executed with /sidekick/api/build as the current
working directory:

docker exec -ti <container> entrypoint.sh npm run <command>

Commands

Restoring MongoDB and MySQL backups from S3

docker exec -ti <container> entrypoint.sh restore-backup

This command requires environment variables AWS_ACCESS_KEY_ID,
AWS_SECRET_ACCESS_KEY, MYSQL_S3_BACKUP and MONGODB_S3_BACKUP
to be set in the container, which can be done in docker-compose.yml.

Docker Pull Command
Owner
flowpress

Comments (0)