1
0
Fork 2
mirror of https://github.com/Aspen-Discovery/aspen-dev-box-image.git synced 2026-06-12 10:38:58 +00:00
No description
Find a file
2026-06-10 10:01:14 +01:00
bin update binaries 2026-06-10 10:01:14 +01:00
database_start_scripts Fix .marc regex quoting and reset import values 2025-10-10 15:43:22 +01:00
export_utils Tweak README 2025-10-10 15:43:22 +01:00
.env.example change name of default site to ensure gitignore catches it 2026-03-31 11:44:19 +01:00
.gitignore add .env.example template and ignore local .env 2026-03-31 09:19:24 +01:00
aliases add git prompt, color defaults, and standard shell aliases 2026-03-31 09:19:24 +01:00
debug.sh Create a script to select, compile and debug java projects in Aspen 2025-08-18 10:23:19 -03:00
docker-compose.dbgui.yml fix: amend dbgui network name mismatch 2025-10-10 17:46:51 +01:00
docker-compose.debug.java.yml Create a compose to use necessary configurations 2025-08-18 10:23:40 -03:00
docker-compose.debug.yml [#10] Mount debug files in the right place 2024-08-15 16:24:39 -03:00
docker-compose.evergreen.yml remove static site mounts from ILS compose overrides 2026-03-31 09:19:24 +01:00
docker-compose.koha.yml Drop fixed aspen-net name in koha compose for multi-instance 2026-04-23 13:28:09 +01:00
docker-compose.yml Drop fixed aspen-net name for multi-instance isolation 2026-04-23 12:13:49 +01:00
dockerrun.sh Chown CONFIG_DIRECTORY so www-data can write site config 2026-04-23 14:01:23 +01: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 add .env setup step to README 2026-03-31 09:43:59 +01:00
vscodedebugconfig.json Add configurations to be able to debug Java projects with Visual Studio Code 2025-08-18 10:23:40 -03:00
vscodetasksconfig.json Add configurations to be able to debug Java projects with Visual Studio Code 2025-08-18 10:23:40 -03:00
xdebug.ini remove the idekey variable to allow other IDE's to debug 2024-12-16 19:37:47 +00: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/Aspen-Discovery/aspen-discovery.git aspen-discovery
  • Set some mandatory environment variables in your .bashrc (or .zshrc):
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
echo 'export UID=$(id -u)' >> ~/.bashrc
echo 'export GID=$(id -g)' >> ~/.bashrc
[ "$(uname)" == "Darwin" ] && echo 'export PATH=$PATH:$ASPEN_DOCKER/bin/darwin' >> ~/.bashrc
[ "$(uname)" == "Linux" ] && echo 'export PATH=$PATH:$ASPEN_DOCKER/bin/linux' >> ~/.bashrc

The UID and GID exports are required so the container can match its internal users to your host user, avoiding file permission issues on bind-mounted source code.

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

  • Copy the example environment file and adjust to taste:
cd $ASPEN_DOCKER
cp .env.example .env

Review .env and change any values that differ from your local setup (site name, timezone, passwords, etc.).

  • 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
cp $ASPEN_DOCKER/vscodetasksconfig.json $ASPEN_CLONE/.vscode/tasks.json