Compare commits
4 commits
b50490ab44
...
2c9bf01213
Author | SHA1 | Date | |
---|---|---|---|
2c9bf01213 | |||
feb514e19f | |||
40741ab77b | |||
d55821883d |
4 changed files with 4 additions and 3 deletions
|
@ -27,9 +27,9 @@ RUN mkdir /config && \
|
||||||
|
|
||||||
# REQUIRED
|
# REQUIRED
|
||||||
ENV NGINX_PORT=80
|
ENV NGINX_PORT=80
|
||||||
|
ENV SERVER_NAME="quartz.zhao.xyz"
|
||||||
ENV ENABLE_CRON="false"
|
ENV ENABLE_CRON="false"
|
||||||
ENV BUILD_SCHEDULE="*/5 * * * *"
|
ENV BUILD_SCHEDULE="*/5 * * * *"
|
||||||
ENV SERVER_NAME="quartz.zhao.xyz"
|
|
||||||
ENV QUARTZ_CONFIG_PATH="/config/config.json"
|
ENV QUARTZ_CONFIG_PATH="/config/config.json"
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -18,4 +18,6 @@ exec:
|
||||||
|
|
||||||
.PHONY: push
|
.PHONY: push
|
||||||
push:
|
push:
|
||||||
|
docker system prune
|
||||||
|
docker build --no-cache --tag code.modernleft.org/gravityfargo/quartz-docker:$(TAG) .
|
||||||
docker push code.modernleft.org/gravityfargo/quartz-docker:$(TAG)
|
docker push code.modernleft.org/gravityfargo/quartz-docker:$(TAG)
|
|
@ -11,7 +11,6 @@ services:
|
||||||
SERVER_NAME: "localhost"
|
SERVER_NAME: "localhost"
|
||||||
ENABLE_CRON: "true"
|
ENABLE_CRON: "true"
|
||||||
BUILD_SCHEDULE: "*/10 * * * *"
|
BUILD_SCHEDULE: "*/10 * * * *"
|
||||||
QUARTZ_CONFIG_PATH: "/config/config.json"
|
|
||||||
volumes:
|
volumes:
|
||||||
- /home/nathan/Repositories/modernleft-docs:/content
|
- /home/nathan/Repositories/modernleft-docs:/content
|
||||||
- ./config:/config
|
- ./config:/config
|
||||||
|
|
|
@ -36,7 +36,7 @@ main() {
|
||||||
npm i >/dev/null
|
npm i >/dev/null
|
||||||
|
|
||||||
echo "Building Quartz..."
|
echo "Building Quartz..."
|
||||||
npx quartz build
|
npx quartz build >/dev/null
|
||||||
|
|
||||||
echo "Starting Nginx..."
|
echo "Starting Nginx..."
|
||||||
exec nginx -g "daemon off;"
|
exec nginx -g "daemon off;"
|
||||||
|
|
Loading…
Reference in a new issue