CollectiveAccess Boilerplate, using Docker containers, with PHP, Apache and MySQL. This repository is solely intended as a starting point for a local development environment for CollectiveAccess implementations. I am not affiliated with any company or products mentioned or used in this repository.
Work In Progress. See the issues page for more information.
Before starting, you will need to have the following tools installed on your machine:
# Clone this repository
$ git clone https://github.com/rahenrique/rah.collectiveaccess.boilerplate.git
# Run the application
$ docker-compose up
This will install the two CollectiveAccess applications: Pawtucket (the front-end application) and Providence (the back-end, administrative application)
To access each application:
- Pawtucket: http://localhost:8080/pawtucket
- Providence: http://localhost:8080/providence/
If you try to access the Pawtucket application for the first time, it will tell you that you need a funcioning Providence installation in order to Pawtucket to work.
To do so, just access the Providence application for the first time. A message will show in the interface, like:
It looks like you have not installed your database yet. Check your configuration or run the installer.
Click to run the installer, or access http://localhost:8080/providence/install/
Select one of the available installation profiles. At the end of this proccess, your database will be created with the corresponding tables and initial data, and a admin user will be created. Be sure to save the provided login and password after the install.
See the official documentation to start cataloging your art assets.
In case your Elasticsearch container fails to build, and you see an error message telling you that vm.max_map_count is too low
, perhaps you have to run the following command to increase this value:
sudo sysctl -w vm.max_map_count=262144
After that, try to run the container again.
To permanently fix this issue, edit the /etc/sysctl.conf
file and add the line:
vm.max_map_count=262144
Reference: docker-library/elasticsearch#111
The branch currently in use for Providence is set as 1.7.16
. In this Collective Access' Providence branch, the GraphQL API implementation is not ready yet.
In order to use the current GraphQL API implementation, please edit the files:
/.docker/providence/Dockerfile
: change the variableENV CA_PROVIDENCE_VERSION=1.7.16
toENV CA_PROVIDENCE_VERSION="dev/graphql-api"
/apps/providence/app/conf/local/app.conf
: comment the line# search_engine_plugin = ElasticSearch
Rebuild the container. This will enable the GraphQL API to work, but unfortunetelly will break the Elasticsearch plugin funcionality.