Browse Source

script to start ulixee_cloud container update

master
filesite 1 year ago
parent
commit
6014ab392c
  1. 9
      start_cloud_in_container.sh

9
start_cloud_in_container.sh

@ -23,7 +23,8 @@ chmod 777 $DATADIR_MOUNT @@ -23,7 +23,8 @@ chmod 777 $DATADIR_MOUNT
# To add an environment configuration file:
# `--env-file ./.env`
# All environment configurations can be found at: `cloud/main/.env.defaults`
docker run -itd --init \
docker run -itd \
--init \
--name ulixee_cloud \
--ipc=host \
--user ulixee \
@ -34,6 +35,7 @@ docker run -itd --init \ @@ -34,6 +35,7 @@ docker run -itd --init \
--log-driver local \
-v $DATASTORES_MOUNT:/home/ulixee/.cache/ulixee/datastores \
-v $DATADIR_MOUNT:/tmp/.ulixee \
-v "${current_path}/.env_hero":/app/ulixee/node_modules/@ulixee/hero-core/.env.defaults \
-p "$port:$port" \
-e DEBUG=$DEBUG \
-e DISPLAY=:99 \
@ -42,5 +44,6 @@ docker run -itd --init \ @@ -42,5 +44,6 @@ docker run -itd --init \
# replace hero-core/.env.defaults to disable chrome's sandbox
docker cp .env_hero ulixee_cloud:/app/ulixee/node_modules/@ulixee/hero-core/.env.defaults
docker restart ulixee_cloud
# ```
# -v "${current_path}/.env_hero":/app/ulixee/node_modules/@ulixee/hero-core/.env.defaults \
# ```
Loading…
Cancel
Save