Skip to content
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

Optimize Dockerfile #23

Closed
wants to merge 34 commits into from
Closed

Optimize Dockerfile #23

wants to merge 34 commits into from

Conversation

Tristan-WorkGH
Copy link

Optimize image layers based on https://hub.docker.com/_/python example:

  • add --no-cache-dir to not keep installation files in the image
  • have script in the last layer separately as dependencies logically changes less often than scripts (reuse reproducible layers)

klesaulnier and others added 30 commits July 12, 2023 09:27
Signed-off-by: Hugo Marcellin <hugo.marcelin@rte-france.com>
* feat(): make delete indexed equipments by study
* feat(indexes): Add get index names and ES force merge expunge_deletes operation
* feat(constant): Add DEV mode for hostnames configuration
* feat(): Add a 30seconds sleep before calling ES force merge expunge_deletes operation
* feat(): Get elasticsearch hostname from study-server, get platform information from idpsettings of gridexplore
* feat(): Add study-server check then elasticsearch check

---------

Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Co-authored-by: Hugo Marcellin <hugo.marcelin@rte-france.com>
Add docker file to run python scripts and github actions
Fix error when executing delete_computation_results.py on cluster
* feat(): Add a script to reset Node Build status
* change PUT to DELETE from review

Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Signed-off-by: LE SAULNIER Kevin <kevin.lesaulnier@rte-france.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: achour94 <berrahmaachour@gmail.com>
delete orphaned indexed equipments

Signed-off-by: achour94 <berrahmaachour@gmail.com>
Signed-off-by: BOUHOURS Antoine <antoine.bouhours@rte-france.com>
* chore(): Add script to reset indexed directory elements

Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
)

* refactor(): Move all scripts in a folder
COPY all the scripts folder in Docker image WORKDIR

Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
Signed-off-by: maissa SOUISSI <maissa.souissi@rte-france.com>
Signed-off-by: maissa SOUISSI <maissa.souissi@rte-france.com>
…ements.py

Remove delete_stashed_elements.py script
* feat(): Add a python script to execute ES request
* refactor(): from review
parse elasticsearch_host directly in get_eleasticsearch_host to avoid code duplication to retrieve url and ip
* docs(): add an example to use ES_requests.py
* refactor(): fix typo, improve method param documentation

Signed-off-by: sBouzols <sylvain.bouzols@gmail.com>
@Tristan-WorkGH Tristan-WorkGH self-assigned this Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.