No description
Find a file
Jacob O'Mara 0448175745 fix: specify platform for solr (relavent for arm based systems)
This patch specifies the platform for arm based systems. This allows the
solr image to run specifically on arm based macs. We should really also
build arm images for ADB but this bandaids the immediate issue
2025-04-07 14:43:56 +01:00
bin feat: Allow building of jar files from command line 2024-12-16 19:43:28 +00:00
database_start_scripts/ktd chore: remove deprecated db columns 2025-03-13 11:06:59 +00:00
etc/apache2 sync with github repo and update README 2023-06-06 12:18:01 +01:00
site feat: swap to specialised solr image/container 2024-06-04 12:11:43 +01:00
aliases Add alias to ingest Koha data from koha-testing-docker 2024-08-13 08:06:54 -04:00
docker-compose.dbgui.yml Change default container and network prefix names for Koha 2024-08-13 07:54:04 -04:00
docker-compose.debug.yml [#10] Mount debug files in the right place 2024-08-15 16:24:39 -03:00
docker-compose.yml fix: specify platform for solr (relavent for arm based systems) 2025-04-07 14:43:56 +01:00
dockerfile feat: add debugging requirements 2024-04-09 13:46:21 +01:00
dockerrun.sh Add setup_aspen_user_debian.sh 2024-08-15 07:20:12 -04:00
error_reporting.ini feat: add debugging requirements 2024-04-09 13:46:21 +01:00
php.ini_template Add required files for build process 2023-06-05 13:34:15 +01:00
README.md [#8] Make the README ready for copying and pasting 2024-08-14 18:08:07 -03:00
vscodedebugconfig.json feat: fix debugging for WSL 2024-04-09 13:46:21 +01:00
xdebug.ini feat: add debugging requirements 2024-04-09 13:46:21 +01:00

Aspen Dev Environment

This is an Aspen-discovery Docker instance designed to make developing Aspen easier.

Still in early stages and there are a number of improvements to be made

Requirements

Software

This project is self contained and all you need is:

Note: Windows and macOS users use Docker Desktop which already ships Docker Compose v2.

Setup

It is not a bad idea to organize your projects in a directory. For the purpose of simplifying the instructions we pick ~/git as the place in which to put all the repository clones:

mkdir -p ~/git
export PROJECTS_DIR=~/git
  • Clone the aspen-dev-box project:
cd $PROJECTS_DIR
git clone https://github.com/Aspen-Discovery/aspen-dev-box-image.git aspen-dev-box
  • Clone the aspen-discovery project (skip and adjust the paths if you already have it): -- I would recommend forking the below repository and cloning your fork for this.
cd $PROJECTS_DIR
git clone https://github.com/mdnoble73/aspen-discovery.git aspen-discovery
  • Set some mandatory environment variables in your .bashrc:
echo "export PROJECTS_DIR=$PROJECTS_DIR" >> ~/.bashrc
echo 'export ASPEN_CLONE=$PROJECTS_DIR/aspen-discovery' >> ~/.bashrc
echo 'export ASPEN_DOCKER=$PROJECTS_DIR/aspen-dev-box'  >> ~/.bashrc
[ "$(uname)" == "Darwin" ] && echo 'export PATH=$PATH:$ASPEN_DOCKER/bin/darwin' >> ~/.bashrc
[ "$(uname)" == "Linux" ] && echo 'export PATH=$PATH:$ASPEN_DOCKER/bin/linux' >> ~/.bashrc

Note: you will need to log out and log back in (or start a new terminal window) for this to take effect.

  • Now you can start up your devbox
cd $ASPEN_DOCKER
docker compose up

USAGE:

This project exposes port 8083 and 8084:

  • localhost:8083 will take you to the discovery page where you can interact with aspen-discovery

  • localhost:8084 will take you to the solr dashboard.

  • Running newSQL.sh will update the DB setup file to the latest version contained within your aspen-discovery clone.

LOGINS: Listed below are the default logins for both the Database and Aspen discovery interface

  • Discovery:
Username: aspen_admin
Password: password
  • Database:
Username: root
Password: aspen
Table: aspen

DEBUGGING:

IMPORTANT if on WSL please also place this in your .bashrc (or equivalent) and restart your shell as above

export WSL_IP=$(ip addr show eth0 | awk '/inet / {print $2}' | cut -d/ -f1)

You should also sym link your aspen clone to the default install location for production installs so the debugger can link files. Please open your IDE from this location if debugging.

sudo ln -s $ASPEN_CLONE /usr/local/aspen-discovery

An alternative to this is to setup path mappings in your debug configurations for your IDE. VSCode mappings are included in the repository and can be copied to the correct location with the below command:

cp $ASPEN_DOCKER/vscodedebugconfig.json $ASPEN_CLONE/.vscode/launch.json