ioos / ckanext-ioos-theme

IOOS Catalog as a CKAN extension
GNU Affero General Public License v3.0
7 stars 14 forks source link

Embed maintenance scripts in docker build #136

Closed lukecampbell closed 7 years ago

lukecampbell commented 7 years ago

I find myself constantly having to use docker exec to perform routine maintenance like rebuilding the search index.

It would be nice to have these as shell scripts that are embedded in the docker image so that I can run a command like

docker exec ckan /scripts/rebuild_search.sh
docker exec ckan /scripts/purge.sh
lukecampbell commented 7 years ago

The implementation is done and the build will finish tonight. Now, I just need to document it and we're all set here.

lukecampbell commented 7 years ago

Tonight production will restart and pick up the changes.

benjwadams commented 7 years ago

@lukecampbell, can this be closed? It looks like the container already has the /scripts folder present.

lukecampbell commented 7 years ago

good call!