Skip to content

Docker runtime image#409

Merged
mcserep merged 4 commits intoEricsson:masterfrom
mcserep:docker_runtime
Jul 31, 2020
Merged

Docker runtime image#409
mcserep merged 4 commits intoEricsson:masterfrom
mcserep:docker_runtime

Conversation

@mcserep
Copy link
Collaborator

@mcserep mcserep commented Jul 25, 2020

Currently there are 2 docker images:

  1. The codecompass:dev image holds the development environment for CodeCompass.
  2. The codecompass:web contains a compiled CodeCompass with its runtime dependencies and is configured to easily launch the CodeCompass_webserver binary.

Unfortunately none of them suffices to use the CodeCompass_parser binary in a dockerized production environment.

  • The codecompass:dev image is not self-contained, only the dependencies are installed inside the container, the source code and the binaries of CodeCompass are outside it to support development. Starting with this image CodeCompass has to be downloaded and built first, which is unnecessary extra time spent.
  • The codecompass:web image is a set up to create so called executing containers. Upon the start of a container the CodeCompass_webserver is started as a non-root codecompass user inside the container. It requires significant extra work to circumvent this and use this image as the root user without starting the webserver, so some parsing can be done. (Root privilege is required to install the dependencies of the project to be parsed.)

This pull request proposes to a third, codecompass:runtime image which contains the built CodeCompass binaries and their runtime dependencies (but not those required only for compilation time). Then the codecompass:web image can be based upon this codecompass:runtime and really only contain the dependencies of the webserver. (Smaller size.)

I have also done some completion on the documentation.

@mcserep mcserep added the Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI. label Jul 25, 2020
@mcserep mcserep added this to the Release Flash milestone Jul 25, 2020
@mcserep mcserep requested review from bruntib and csordasmarton July 25, 2020 20:47
@mcserep mcserep mentioned this pull request Jul 26, 2020
5 tasks
@mcserep mcserep requested a review from whisperity July 26, 2020 11:35
@mcserep mcserep merged commit 0f3ab69 into Ericsson:master Jul 31, 2020
@mcserep mcserep deleted the docker_runtime branch August 26, 2020 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant