-
Notifications
You must be signed in to change notification settings - Fork 56
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
Improves Docker Installation Files #988
Improves Docker Installation Files #988
Conversation
I had to rename the variable names in
It seems to have also changed some drawio metadata variables, I'm not sure if those matter: |
The revised figure has CLIENT_ID at the top. It should be OAUTH_CLIENT_ID. The diff on drawio file can be ignored |
@aryanpingle Please search for old variables in |
@prasadtalasila Yep I've updated all instances of the I haven't modified any of the client side code like this: export interface OidcConfig {
// ...
client_id: string;
// ...
} Should I change these? On one hand they aren't gonna be confused with traefik variables, but on the other hand using the |
This code is in |
@@ -42,7 +42,7 @@ services: | |||
image: intocps/libms:latest | |||
restart: unless-stopped | |||
volumes: | |||
- ${DTAAS_DIR}/deploy/config/lib.docker:/dtaas/libms/.env | |||
- ${DTAAS_DIR}/deploy/config/lib.env:/dtaas/libms/.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.
This line can be removed. Please check the same with a sample installation.
deploy/docker/compose.server.yml
Outdated
@@ -20,7 +20,7 @@ services: | |||
image: intocps/libms:latest | |||
restart: unless-stopped | |||
volumes: | |||
- ${DTAAS_DIR}/deploy/config/lib.docker:/dtaas/libms/.env | |||
- ${DTAAS_DIR}/deploy/config/lib.env:/dtaas/libms/.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.
Same here. It could be removed.
docker/libms.npm.dockerfile
Outdated
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.
please build it once to make sure that the change works as expected. BTW, does docker/libms.dockerfile
change?
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.
Nope I couldn't find any references to lib.docker
in libms.dockerfile
, so it hasn't changed. Only lib.npm.dockerfile
.
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.
you are right.
cli/tests/compose.users.test.yml
Outdated
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.
Please run the poetry commands, especially tests suggested in DEVELOPER to make sure that the change is a non-breaking type.
TODO: issue #954 needs to be addressed in this PR |
@aryanpingle The following changes are required in the PR as well.
|
|
* Inlines the path to the client configuration file for compose and env files
deploy/docker/LOCALHOST.md
Outdated
!!! tip | ||
Important points to note: | ||
|
||
1. The path examples given here are for Linux OS. |
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.
Code block style
deploy/docker/LOCALHOST.SECURE.md
Outdated
!!! tip | ||
Important points to note: | ||
|
||
1. The path examples given here are for Linux OS. |
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.
Code block style
These paths can be Windows OS compatible paths as well. | ||
Important points to note: | ||
|
||
1. The path examples given here are for Linux OS. |
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.
Code block style
PR Summary
@prasadtalasila I'm not too sure, but I think the codeclimate issues are due it not understanding the mkdocs call-outs like !!! tip. Tested this branch on a clean install: localhost and server (http and https) all run correctly. I used the integrated gitlab instance while testing in case it matters, which it likely shouldn't. |
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.
@aryanpingle Thanks for the updates. Please see the comments.
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.
In addition, the libms
is using servers/lib/config/.env.default
. The developers do not have a choice of specifying config file. A new variable named LIB_CONFIG
needs to be added to docker/.env
file and needs to be volume mapped to libms
service.
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.
Can you explain this a bit further? If I understand correctly:
- Add a variable to
.env.default
:LIB_CONFIG='/dev/null'
(can't map an empty string to a docker container) - Add this line to
compose.lib.dev.yml
:
volumes:
...
- ${LIB_CONFIG}:/dtaas/libms/.env
deploy/docker/LOCALHOST.SECURE.md
Outdated
1. The path examples given here are for Linux OS. | ||
These paths can be Windows OS compatible paths as well. | ||
1. The client configuration file is located at `deploy/config/client/env.local.js`. | ||
Edit the URLs in this file by replacing `http` with `https`. Beyond this, it is not necessary to modify this file. |
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.
Line length
docs/admin/host.md
Outdated
These paths can be Windows OS compatible paths as well. | ||
1. The client configuration file is located at `deploy/config/client/env.js`. | ||
1. The Server DNS can also be an IP address. | ||
However, for proper working it is neccessary to use the same convention (IP/DNS) in the client configuration file as well. |
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.
Line length
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.
@prasadtalasila minor issue, but it's not possible to put a line break here without it creating a new line in the bullet point list. I could instead use HTML markup like so:
<ol>
<li>
The path examples given here are for Linux OS.<br>
These paths can be Windows OS compatible paths as well.
</li>
<li>
The client configuration file is located at
<code>deploy/config/client/env.local.js</code>.<br>
Edit the URLs in this file by replacing <code>http</code> with
<code>https</code>. Beyond this, it is not necessary to modify
this file.
</li>
</ol>
Preview:
-
The path examples given here are for Linux OS.
These paths can be Windows OS compatible paths as well. -
The client configuration file is located at
deploy/config/client/env.local.js
.
Edit the URLs in this file by replacinghttp
withhttps
. Beyond this, it is not necessary to modify this file.
It looks cleaner in the markdown, and makes it more customizable - but it's up to you whether it fits the conventions
docs/admin/localhost.md
Outdated
1. The path examples given here are for Linux OS. | ||
These paths can be Windows OS compatible paths as well. | ||
1. The client configuration file is located at `deploy/config/client/env.local.js`. | ||
If you are following the guide to use HTTPS on localhost, edit the URLs in this file by replacing `http` with `https`. |
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.
Line length
Code Climate has analyzed commit 3c1b821 and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
- Cleans up docker compose files by renaming variables, removing unnecessary variables and tags. - Updates the installation documents --------- Co-authored-by: aryanpingle <[email protected]>
merged via PR #1019 |
Improve Docker Installation Files
Aims to address issue #748. Specifically:
CLIENT_xyz
toOAUTH_CLIENT_xyz
lib.docker
tolib.env
level: DEBUG
to traefik and traefik-forward-auth containersCLIENT_CONFIG
into installation filesType of Change
✅ Documentation update
✅ Refactoring
Impact
Will improve the docker installation guide and make code more readable.
Checklist
✅ My code adheres to the coding and style guidelines of the project.
✅ I have added tests for all the new code and any changes made to
existing code.
✅ I have made corresponding changes to the documentation.