alf.io
As the work for Alf.io v2 has started, this branch may contain unstable and untested code. If you want to build and deploy alf.io by yourself, we strongly suggest you to use the 1.x-maintenance branch.
You should have installed Java version 11 (e.g. Oracle's, OpenJDK, or any other distribution) in order to build and run alf.io. Please note that for the build process the JDK is required.
Postgresql version 9.6 or later.
Additionally, the database user that create and use the tables should not be a "SUPERUSER", or else the row security policy checks will not be applied.
This build includes a copy of the Gradle wrapper. You don't have to have Gradle installed on your system in order to build the project. Simply execute the wrapper along with the appropriate task, for example
./gradlew clean
You must specify a project property at the command line, such as
./gradlew -Pprofile=dev :bootRun
The local "bootRun" task has the following prerequisites:
once started, alf.io will create all the required tables on the database.
Note: if you want to test without installing a pgsql instance, we have configured the following tasks:
So, in a terminal first launch pgsql:
./gradlew startEmbeddedPgSQL
In another one launch alf.io
./gradlew -Pprofile=dev :bootRun
When you are done, kill the pgsql instance with:
./gradlew stopEmbeddedPgSQL
The following profiles are supported
devdev-pgsqldocker-testYou can get a list of all supported Gradle tasks by running
./gradlew tasks --all
You can configure additional System properties (if you need them) by creating the following file and putting into it one property per line:
vi custom.jvmargs
Please be aware that since this file could contain sensitive information (such as Google Maps private API key) it will be automatically ignored by git.
Add a new line with: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 in custom.jvmargs
Importing the Gradle project into Intellij and Eclipse both work.
Note: this project uses Project Lombok. You will need to install the corresponding Lombok plugin for integration into your IDE.
./gradlew dependencyUpdates
alf.io can be run for development with Docker Compose:
docker-compose up
If you plan on using Docker Compose to run alf.io in production, then you need to make a couple of changes:
8443tutum/haproxy)SPRING_PROFILES_ACTIVE: dev environment variabledocker logs alfioboot2docker ip on Mac/Windowshttps://DOCKER_IP/admin./gradlew distribution
cd build/dockerize
docker build -t alfio/alf.io .
The certificate at src/main/resources/alfio/certificates/AppleWWDRCA.cer has been imported for https://github.com/ryantenney/passkit4j#usage functionality. It will expire the 02/07/23 (as https://www.apple.com/certificateauthority/).
Content type
Image
Digest
Size
63.8 MB
Last updated
over 7 years ago
docker pull asymmetric/alf.io