0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

📎 Add default env variable for browser executable path.

This commit is contained in:
Andrey Antukh 2021-09-15 14:28:57 +02:00
parent 13d83cb0d1
commit e48b01fd18
2 changed files with 9 additions and 6 deletions

View file

@ -5,7 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
NODE_VERSION=v14.17.5
NODE_VERSION=v14.17.5 \
PENPOT_BROWSER_EXECUTABLE_PATH=/usr/bin/chromium
RUN set -ex; \
mkdir -p /etc/resolvconf/resolv.conf.d; \

View file

@ -7,13 +7,13 @@
(ns app.config
(:refer-clojure :exclude [get])
(:require
[app.common.data :as d]
["process" :as process]
[cljs.pprint]
[cuerdas.core :as str]
[app.common.data :as d]
[app.common.spec :as us]
[cljs.spec.alpha :as s]
[cljs.core :as c]
[cljs.pprint]
[cljs.spec.alpha :as s]
[cuerdas.core :as str]
[lambdaisland.uri :as u]))
(def defaults
@ -22,6 +22,7 @@
:browser-concurrency 5
:browser-strategy :incognito})
(s/def ::browser-executable-path ::us/string)
(s/def ::public-uri ::us/string)
(s/def ::http-server-port ::us/integer)
(s/def ::browser-concurrency ::us/integer)
@ -31,7 +32,8 @@
(s/keys :opt-un [::public-uri
::http-server-port
::browser-concurrency
::browser-strategy]))
::browser-strategy
::browser-executable-path]))
(defn- read-env
[prefix]
(let [env (unchecked-get process "env")