2020-08-17 13:39:36 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-04-04 10:52:50 +02:00
|
|
|
export PENPOT_HOST=devenv
|
|
|
|
export PENPOT_TENANT=dev
|
2023-01-13 14:15:53 +01:00
|
|
|
export PENPOT_FLAGS="\
|
|
|
|
$PENPOT_FLAGS \
|
2023-04-25 13:25:13 +02:00
|
|
|
enable-registration
|
|
|
|
enable-login-with-password
|
|
|
|
enable-login-with-oidc \
|
|
|
|
enable-login-with-google \
|
|
|
|
enable-login-with-github \
|
|
|
|
enable-login-with-gitlab \
|
2023-01-13 14:15:53 +01:00
|
|
|
enable-backend-asserts \
|
2023-03-16 19:36:18 +01:00
|
|
|
enable-fdata-storage-pointer-map \
|
|
|
|
enable-fdata-storage-objets-map \
|
2023-01-13 14:15:53 +01:00
|
|
|
enable-audit-log \
|
|
|
|
enable-transit-readable-response \
|
|
|
|
enable-demo-users \
|
|
|
|
disable-secure-session-cookies \
|
|
|
|
enable-smtp \
|
2023-01-18 17:12:33 +01:00
|
|
|
enable-prepl-server \
|
|
|
|
enable-urepl-server \
|
|
|
|
enable-rpc-climit \
|
|
|
|
enable-rpc-rlimit \
|
|
|
|
enable-soft-rpc-rlimit \
|
2023-01-13 14:15:53 +01:00
|
|
|
enable-webhooks \
|
|
|
|
enable-access-tokens";
|
2022-04-04 10:52:50 +02:00
|
|
|
|
2022-01-27 15:00:42 +01: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"
|
2021-01-29 11:00:54 +01:00
|
|
|
|
2022-04-01 13:23:06 +02:00
|
|
|
# export PENPOT_LOGGERS_LOKI_URI="http://172.17.0.1:3100/loki/api/v1/push"
|
|
|
|
# export PENPOT_AUDIT_LOG_ARCHIVE_URI="http://localhost:6070/api/audit"
|
|
|
|
|
2022-02-12 12:14:55 +01:00
|
|
|
# Initialize MINIO config
|
2022-04-01 13:23:06 +02:00
|
|
|
mc alias set penpot-s3/ http://minio:9000 minioadmin minioadmin
|
|
|
|
mc admin user add penpot-s3 penpot-devenv penpot-devenv
|
2023-09-18 15:32:52 +02:00
|
|
|
mc admin policy attach penpot-s3 readwrite --user=penpot-devenv
|
2022-04-01 13:23:06 +02:00
|
|
|
mc mb penpot-s3/penpot -p
|
|
|
|
|
2022-03-07 11:05:29 +01:00
|
|
|
export AWS_ACCESS_KEY_ID=penpot-devenv
|
|
|
|
export AWS_SECRET_ACCESS_KEY=penpot-devenv
|
2022-06-15 12:18:39 +02:00
|
|
|
export PENPOT_ASSETS_STORAGE_BACKEND=assets-s3
|
2022-03-07 11:05:29 +01:00
|
|
|
export PENPOT_STORAGE_ASSETS_S3_ENDPOINT=http://minio:9000
|
|
|
|
export PENPOT_STORAGE_ASSETS_S3_BUCKET=penpot
|
2022-02-12 12:14:55 +01:00
|
|
|
|
2023-02-20 12:44:35 +01:00
|
|
|
#-J-Djdk.virtualThreadScheduler.parallelism=16
|
|
|
|
|
2021-12-22 11:33:53 +01:00
|
|
|
export OPTIONS="
|
2022-11-02 09:30:08 +01:00
|
|
|
-A:jmx-remote -A:dev \
|
2021-12-22 11:33:53 +01:00
|
|
|
-J-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager \
|
2023-01-13 14:15:53 +01:00
|
|
|
-J-Djdk.attach.allowAttachSelf \
|
2021-12-22 11:33:53 +01:00
|
|
|
-J-Dlog4j2.configurationFile=log4j2-devenv.xml \
|
|
|
|
-J-XX:-OmitStackTraceInFastThrow \
|
2022-01-12 20:23:25 +01:00
|
|
|
-J-XX:+UnlockDiagnosticVMOptions \
|
2023-02-20 12:44:35 +01:00
|
|
|
-J-XX:+DebugNonSafepoints \
|
|
|
|
-J-Djdk.tracePinnedThreads=full \
|
|
|
|
-J--enable-preview";
|
2022-01-12 20:23:25 +01:00
|
|
|
|
2023-03-02 17:00:49 +01:00
|
|
|
# Setup HEAP
|
|
|
|
export OPTIONS="$OPTIONS -J-Xms50m -J-Xmx1024m"
|
|
|
|
# export OPTIONS="$OPTIONS -J-Xms1100m -J-Xmx1100m -J-XX:+AlwaysPreTouch"
|
|
|
|
|
|
|
|
# Increase virtual thread pool size
|
|
|
|
# export OPTIONS="$OPTIONS -J-Djdk.virtualThreadScheduler.parallelism=16"
|
|
|
|
|
|
|
|
# Disable C2 Compiler
|
|
|
|
# export OPTIONS="$OPTIONS -J-XX:TieredStopAtLevel=1"
|
|
|
|
|
|
|
|
# Disable all compilers
|
|
|
|
# export OPTIONS="$OPTIONS -J-Xint"
|
|
|
|
|
|
|
|
# Setup GC
|
|
|
|
export OPTIONS="$OPTIONS -J-XX:+UseG1GC"
|
|
|
|
|
|
|
|
# Setup GC
|
|
|
|
# export OPTIONS="$OPTIONS -J-XX:+UseZGC"
|
|
|
|
|
|
|
|
# Enable ImageMagick v7.x support
|
2022-06-14 11:07:10 +02:00
|
|
|
# export OPTIONS="-J-Dim4java.useV7=true $OPTIONS";
|
|
|
|
|
2021-02-15 13:14:05 +01:00
|
|
|
export OPTIONS_EVAL="nil"
|
|
|
|
# export OPTIONS_EVAL="(set! *warn-on-reflection* true)"
|
|
|
|
|
2021-01-29 11:00:54 +01:00
|
|
|
set -ex
|
2021-02-15 13:14:05 +01:00
|
|
|
exec clojure $OPTIONS -M -e "$OPTIONS_EVAL" -m rebel-readline.main
|