Skip to content

Latest commit

 

History

History
60 lines (53 loc) · 2.95 KB

README_DBCA.md

File metadata and controls

60 lines (53 loc) · 2.95 KB

Docker Compose setup for DBCA CKAN

Install Dependencies

Configure extensions that will be worked on

  • Add any extensions you will be modifying in the file src/dbca_install_extensions.sh

Init and build local dev environment

  • ahoy init
    • This will clone the extensions from dbca_install_extensions.sh to the src folder which will be a mounted folder to the ckan docker containers
    • Copy the .env.dbca to .env which is the env file uses for the CKAN docker containers
  • ahoy build (Build the projects docker images)
  • ahoy up (Starts the projects container services)
    • The first time the CKAN Dev containers are created the mapped volume will look in the src:/srv/app/src_extensions folder to install any extensions cloned from the ahoy init step and will pip install the extension and any any requirements file if they exists
  • To see the list of available commands with short descriptions run ahoy
ahoy      
NAME:
   ahoy - Creates a configurable cli app for running commands.
USAGE:
   ahoy [global options] command [command options] [arguments...]
   
COMMANDS:
   attach              Attach to a running container
   build               Build project.
   cli                 Start a shell inside container.
   db-dump             Dump data out into a file. `ahoy db-dump local.dump`
   db-import           Pipe in a postgres dump file.  `ahoy db-import local.dump`
   down                Delete project (CAUTION).
   generate-extension  Generates a new CKAN extension into the src directory
   info                Print information about this project.
   init                Initialise the codebase on first-time setup (ahoy init)
   logs                Show Docker logs.
   open                Open the site in your default browser
   ps                  List running Docker containers.
   recreate            Recreate a local container | ahoy recreate ckan
   restart             Restart Docker containers.
   run                 Run command inside container.
   stop                Stop Docker containers.
   up                  Build project.

GLOBAL OPTIONS:
   --verbose, -v               Output extra details like the commands to be run. [$AHOY_VERBOSE]
   --file value, -f value      Use a specific ahoy file.
   --help, -h                  show help
   --version                   print the version
   --generate-bash-completion  
   
VERSION:
   2.0.2-homebrew
   
[fatal] Missing flag or argument.```