mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 15:01:41 +02:00
📎 Add default env variable for browser executable path.
This commit is contained in:
parent
13d83cb0d1
commit
e48b01fd18
2 changed files with 9 additions and 6 deletions
|
@ -5,7 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
ENV LANG=en_US.UTF-8 \
|
ENV LANG=en_US.UTF-8 \
|
||||||
LC_ALL=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; \
|
RUN set -ex; \
|
||||||
mkdir -p /etc/resolvconf/resolv.conf.d; \
|
mkdir -p /etc/resolvconf/resolv.conf.d; \
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
(ns app.config
|
(ns app.config
|
||||||
(:refer-clojure :exclude [get])
|
(:refer-clojure :exclude [get])
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
|
||||||
["process" :as process]
|
["process" :as process]
|
||||||
[cljs.pprint]
|
[app.common.data :as d]
|
||||||
[cuerdas.core :as str]
|
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[cljs.spec.alpha :as s]
|
|
||||||
[cljs.core :as c]
|
[cljs.core :as c]
|
||||||
|
[cljs.pprint]
|
||||||
|
[cljs.spec.alpha :as s]
|
||||||
|
[cuerdas.core :as str]
|
||||||
[lambdaisland.uri :as u]))
|
[lambdaisland.uri :as u]))
|
||||||
|
|
||||||
(def defaults
|
(def defaults
|
||||||
|
@ -22,6 +22,7 @@
|
||||||
:browser-concurrency 5
|
:browser-concurrency 5
|
||||||
:browser-strategy :incognito})
|
:browser-strategy :incognito})
|
||||||
|
|
||||||
|
(s/def ::browser-executable-path ::us/string)
|
||||||
(s/def ::public-uri ::us/string)
|
(s/def ::public-uri ::us/string)
|
||||||
(s/def ::http-server-port ::us/integer)
|
(s/def ::http-server-port ::us/integer)
|
||||||
(s/def ::browser-concurrency ::us/integer)
|
(s/def ::browser-concurrency ::us/integer)
|
||||||
|
@ -31,7 +32,8 @@
|
||||||
(s/keys :opt-un [::public-uri
|
(s/keys :opt-un [::public-uri
|
||||||
::http-server-port
|
::http-server-port
|
||||||
::browser-concurrency
|
::browser-concurrency
|
||||||
::browser-strategy]))
|
::browser-strategy
|
||||||
|
::browser-executable-path]))
|
||||||
(defn- read-env
|
(defn- read-env
|
||||||
[prefix]
|
[prefix]
|
||||||
(let [env (unchecked-get process "env")
|
(let [env (unchecked-get process "env")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue