commit | 1e667fede760ec71288f1251c2b2fd8cd7e3e19e | [log] [tgz] |
---|---|---|
author | Pratik raj <rajpratik71@gmail.com> | Wed Dec 30 22:52:18 2020 +0530 |
committer | Pratik raj <rajpratik71@gmail.com> | Wed Dec 30 22:52:18 2020 +0530 |
tree | 8ef6187901cbeec6a289979e7b34cd123e86224d | |
parent | 4ecc0b9bd5892f80c86cb9415c58213121eb425d [diff] |
[docker] use `--no-cache-dir` flag to `pip` in dockerfiles to save space using "--no-cache-dir" flag in pip install ,make sure downloaded packages by pip don't cached on system . This is a best practice which make sure to fetch from repo instead of using local cached one . Further , in case of Docker Containers , by restricting caching , we can reduce image size. In term of stats , it depends upon the number of python packages multiplied by their respective size . e.g for heavy packages with a lot of dependencies it reduce a lot by don't caching pip packages. Further , more detail information can be found at https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6 Issue-ID: CCSDK-3071 Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: I9c957bda7fbcf631ce9be65bd5bcc41d2c9ada48
mvn process-sources -P format
Reference: ktlint docs | ktlint codebase
Before you can build this project, you must install and configure the following dependencies on your machine:
Running mvn clean install
command to install all libraries and dependencies for the maven and npm. Running mvn clean install -Pdocker
command to install all libraries and create below docker images.
Note: run mvn clean install -Pdocker -Ddocker.skip.push=true
to build but skip pushing docker image.
Back-end MS
Create
sdnctl
table in MySQL
(Optional) You could run the project in a specific profile(dev, local) by adding-Dspring.profiles.active=profile-name
Loop-back server:
That allow your request to reach the backend from cds-ui
Move to./cds-ui/server/
folder and run the commandnpm start
cds-ui
Move to
./cds-ui/designer-client/
folder and run the commandnpm start
This command will make sure all the files follow the linting rules and then connect to the loopback server.
Front-end: you could use vscode
or webstorm
Back-end: IntelliJ
with kotlin plugin or any other editor
For more information check: CDS Docs