Skip to content

Commit

Permalink
Improve Log File Directory Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
theAkito committed Dec 3, 2023
1 parent 2af5370 commit ff6bbac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM nimlang/nim:2.0.0-alpine AS build

ARG nimble_task_build=docker_build_prod
ARG app_version=0.5.0
ARG app_version=0.5.1

WORKDIR /app

Expand All @@ -18,8 +18,6 @@ COPY --from=build /app/app /

RUN \
apk --no-cache add libcurl && \
rm -fr /var/cache/apk/* && \
mkdir -p /logs && \
chmod -cvR 777 /logs
rm -fr /var/cache/apk/*

ENTRYPOINT ["/app"]
6 changes: 2 additions & 4 deletions debug.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM nimlang/nim:2.0.0-alpine AS build

ARG nimble_task_build=docker_build_debug
ARG app_version=0.5.0
ARG app_version=0.5.1

WORKDIR /app

Expand All @@ -18,8 +18,6 @@ COPY --from=build /app/app /

RUN \
apk --no-cache add libcurl && \
rm -fr /var/cache/apk/* && \
mkdir -p /logs && \
chmod -cvR 777 /logs
rm -fr /var/cache/apk/*

ENTRYPOINT ["/app"]
1 change: 0 additions & 1 deletion docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ services:
- redis
volumes:
- ./zoominvitr.data/app:/data
- ./zoominvitr.data/logs:/logs

redis:
image: redis:7-alpine
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ services:
- redis
volumes:
- ./zoominvitr/app:/data
- ./zoominvitr/logs:/logs

redis:
image: redis:7-alpine
Expand Down
2 changes: 1 addition & 1 deletion src/zoominvitr/meta.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const
hostRedis * {.strdefine.} = "redis"
portRedis * {.intdefine.} = 6379
appName * {.strdefine.} = "zoominvitr"
appVersion * {.strdefine.} = "0.5.0"
appVersion * {.strdefine.} = "0.5.1"
appRevision * {.strdefine.} = appVersion
appDate * {.strdefine.} = appVersion
configNameJSON * {.strdefine.} = appName & ".json"
Expand Down
4 changes: 3 additions & 1 deletion zoominvitr.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.5.0"
version = "0.5.1"
author = "Akito <[email protected]>"
description = "Automatically send invitations about planned Zoom meetings."
license = "AGPL-3.0-or-later"
Expand Down Expand Up @@ -85,6 +85,7 @@ task docker_build_prod, "Build Production Docker.":
--define:appDate:"{buildDate}" \
--define:hostRedis:redis \
--define:configPath:/data \
--define:logDirPath:/data/logs \
--define:danger \
--excessiveStackTrace:off \
--opt:speed \
Expand All @@ -108,6 +109,7 @@ task docker_build_debug, "Build Debug Docker.":
--define:debugResetNotify:true \
--define:hostRedis:redis \
--define:configPath:/data \
--define:logDirPath:/data/logs \
--excessiveStackTrace:off \
--debugger:native \
--debuginfo:on \
Expand Down

0 comments on commit ff6bbac

Please sign in to comment.