2020-08-17 06:39:36 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-01-27 09:00:42 -05:00
|
|
|
# export PENPOT_DATABASE_URI="postgresql://172.17.0.1:5432/penpot"
|
|
|
|
# export PENPOT_DATABASE_USERNAME="penpot"
|
|
|
|
# export PENPOT_DATABASE_PASSWORD="penpot"
|
|
|
|
# export PENPOT_DATABASE_READONLY=true
|
|
|
|
|
|
|
|
# export PENPOT_DATABASE_URI="postgresql://172.17.0.1:5432/penpot_pre"
|
|
|
|
# export PENPOT_DATABASE_USERNAME="penpot_pre"
|
|
|
|
# export PENPOT_DATABASE_PASSWORD="penpot_pre"
|
2022-03-07 05:05:29 -05:00
|
|
|
export PENPOT_FLAGS="enable-asserts enable-audit-log $PENPOT_FLAGS"
|
2021-01-29 05:00:54 -05:00
|
|
|
|
2022-02-12 06:14:55 -05:00
|
|
|
# Initialize MINIO config
|
|
|
|
# mc alias set penpot-s3/ http://minio:9000 minioadmin minioadmin
|
|
|
|
# mc admin user add penpot-s3 penpot-devenv penpot-devenv
|
|
|
|
# mc admin policy set penpot-s3 readwrite user=penpot-devenv
|
|
|
|
# mc mb penpot-s3/penpot -p
|
2022-03-07 05:05:29 -05:00
|
|
|
export AWS_ACCESS_KEY_ID=penpot-devenv
|
|
|
|
export AWS_SECRET_ACCESS_KEY=penpot-devenv
|
|
|
|
export PENPOT_ASSETS_STORAGE_BACKEND=assets-fs
|
|
|
|
export PENPOT_STORAGE_ASSETS_S3_ENDPOINT=http://minio:9000
|
|
|
|
export PENPOT_STORAGE_ASSETS_S3_REGION=eu-central-1
|
|
|
|
export PENPOT_STORAGE_ASSETS_S3_BUCKET=penpot
|
2022-02-12 06:14:55 -05:00
|
|
|
|
2021-12-22 05:33:53 -05:00
|
|
|
export OPTIONS="
|
2022-03-07 05:05:29 -05:00
|
|
|
-A:dev:jmx-remote \
|
2021-12-22 05:33:53 -05:00
|
|
|
-J-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager \
|
|
|
|
-J-Dlog4j2.configurationFile=log4j2-devenv.xml \
|
2022-03-07 05:05:29 -05:00
|
|
|
-J-XX:+UseG1GC \
|
2021-12-22 05:33:53 -05:00
|
|
|
-J-XX:-OmitStackTraceInFastThrow \
|
2022-01-18 10:57:01 -05:00
|
|
|
-J-Xms50m -J-Xmx1024m \
|
2022-01-12 14:23:25 -05:00
|
|
|
-J-Djdk.attach.allowAttachSelf \
|
|
|
|
-J-XX:+UnlockDiagnosticVMOptions \
|
|
|
|
-J-XX:+DebugNonSafepoints";
|
|
|
|
|
2021-02-15 07:14:05 -05:00
|
|
|
export OPTIONS_EVAL="nil"
|
|
|
|
# export OPTIONS_EVAL="(set! *warn-on-reflection* true)"
|
|
|
|
|
2021-01-29 05:00:54 -05:00
|
|
|
set -ex
|
2021-02-15 07:14:05 -05:00
|
|
|
exec clojure $OPTIONS -M -e "$OPTIONS_EVAL" -m rebel-readline.main
|