Skip to content

Commit

Permalink
Log platform on startup (#59)
Browse files Browse the repository at this point in the history
* Log platform on startup
  • Loading branch information
Minituff authored Oct 20, 2023
1 parent cab0e3f commit 4c18b32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Use base docker image. Contains the docker commands we need to start and stop containers
FROM docker:24.0.6-cli

# The platform this image is created for (linux/amd64, linux/arm64)
ARG TARGETPLATFORM
ENV TARGETPLATFORM=${TARGETPLATFORM}

# Install dependencies
RUN apk add bash rsync tzdata dos2unix jq

Expand Down
1 change: 1 addition & 0 deletions pkg/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source /app/logger.sh # Use the logger script
create_new_report_file

logThis "Nautical Backup Version: $NAUTICAL_VERSION" "INFO" "init"
logThis "Built for the platform: $BUILDPLATFORM" "DEBUG" "init"
logThis "Using log level: $LOG_LEVEL" "DEBUG" "init"

# Echo the CRON schedule for logging/debugging
Expand Down

0 comments on commit 4c18b32

Please sign in to comment.