-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
44 lines (33 loc) · 1.05 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Command used to launch docker
DOCKER_CMD="`which docker`"
# Where to store the backups
BACKUP_PATH=""
# Where to store the communication pipes
FIFO_PATH="/tmp/docker-things/fifo"
# The name of the docker image
PROJECT_NAME="huawei-watch-face-maker"
# Meta to set in the .desktop file
APP_GENERIC_NAME="Watch Face Editor"
APP_CATEGORIES="Development;"
APP_MIME_TYPE=""
APP_PARAM=""
# BUILD ARGS
BUILD_ARGS=(
--build-arg APP_ARCHIVE_URL="https://doc-08-ak-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/t1tg7ds4k1rvjv5ph7f61pljeekp2jrc/1579514400000/11661470670177043854/*/1283OpIQGbxc0ppLQZx9oCQbrNKYyXxEO?e=download"
)
# LAUNCH ARGS
RUN_ARGS=(
-e DISPLAY=$DISPLAY
-v /tmp/.X11-unix:/tmp/.X11-unix
-v $XAUTHORITY:/tmp/.Xauthority
-e XAUTHORITY=/tmp/.Xauthority
--memory="1g"
--cpu-shares=1024
--shm-size 2g
-v $(pwd)/data/.cache:/home/$(whoami)/.cache
-v $(pwd)/data/.config:/home/$(whoami)/.config
-v /home/$(whoami)/watch-faces:/home/$(whoami)/watch-faces
--rm
-d
)