-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update: migration to distroless #42
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -390,8 +390,8 @@ Temporary Items | |||
|
|||
======= | |||
# Local | |||
docker-compose.yml | |||
*.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.env
files should not be pushed to git.
we prepared an .env.example
to clone from locally 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that env file is loaded by docker-compose in build phase, it evals the docker compose and change the ${VARS} by its equivalent.
@@ -129,7 +129,7 @@ export class ConfigService { | |||
transports: [ | |||
new DailyRotateFile({ | |||
level: 'debug', | |||
filename: `./logs/${this.nodeEnv}/debug-%DATE%.log`, | |||
filename: `${process.env.HOME}/${this.nodeEnv}/debug-%DATE%.log`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to find a better location for this.
we can't keep ./logs/*
and mount it in docker to be consistent? 🤔 (from developer perspective who uses docker and local env interchangeably)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can play with an env var and default it to env.home if not defined what do you think about it ?
@@ -0,0 +1,149 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff, we need to update README accoding to this? for better experience using the new CLI 🤔
(didn't test it intensively yet)
Migration to Distroless base image on release stage