You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`set_timezone [TIMEZONE]`| Sets the container's timezone. |`set_timezone America/New_York`|
77
+
10
78
## Install
11
79
12
80
The main functions require `bash`, `curl` and `coreutils`. These take about 10M of space. The template function requires [gomplate](https://github.com/hairyhenderson/gomplate/).
@@ -69,8 +137,18 @@ set -e
69
137
70
138
source /panubo-functions.sh
71
139
72
-
# Wait for services
73
-
wait_mariadb "${DB_HOST}""${DB_PORT:-3306}"
140
+
# Set the timezone
141
+
set_timezone "${TZ}"
142
+
143
+
# Wait for services to be available
144
+
wait_postgres "${DB_HOST}""${DB_PORT:-5432}"
145
+
wait_redis "${REDIS_HOST}""${REDIS_PORT:-6379}"
146
+
147
+
# Render configuration templates
148
+
render_templates /etc/my.cnf.tmpl
149
+
150
+
# Import environment variables from a file
151
+
import_env /app/.env
74
152
75
153
# Mount data mounts (specifying an alternate mount point uid/gid)
76
154
MOUNTFILE_MOUNT_UID=33
@@ -91,7 +169,6 @@ exec_procfile "$1"
91
169
if [ "$?"-eq"127" ];then
92
170
exec"${@}"
93
171
fi
94
-
95
172
```
96
173
97
174
### Using gomplate templating
@@ -161,3 +238,11 @@ This will render `/foo.conf.tmpl` to `/foo.conf`.
161
238
## Bash Strict Mode
162
239
163
240
Although we like [Unofficial Bash Strict Mode](http://redsymbol.net/articles/unofficial-bash-strict-mode/) not all of these functions currently work under strict mode.
241
+
242
+
## License
243
+
244
+
This project is licensed under the [MIT License](LICENSE).
0 commit comments