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

New dockerfile and start script #871

Merged
merged 7 commits into from
May 3, 2017

Conversation

lodoyun
Copy link
Contributor

@lodoyun lodoyun commented Apr 27, 2017

Description

This PR implements a new Dockerfile and docker init script.
Instead of pulling the repository, the new dockerfile uses COPY to generate the context for the build.

The new script allows for starting different parts of licode as well as starting the whole thing.
You can for instance run it with --nuve to only start nuve. For now, no further customization of the configuration is provided.

For users of the older Dockerfile
This new Dockerfile is located in the root of the repository to be able to generate the context via COPY
Also, CMD has been changed to ENTRYPOINT to make it easier to pass parameters to the init script. Remember you have to use --entrypoint to change the entrypoint instead of just passing the script as a parameter.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

Add a detailed description of any change in the public APIs.

[] It includes documentation for these changes in /doc.

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one minor nitpicking comment

Dockerfile Outdated
RUN ./installUbuntuDeps.sh --cleanup && \
./installErizo.sh && \
./../nuve/installNuve.sh && \
./installBasicExample.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check indentation

Copy link
Member

@aalonsog aalonsog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment

sleep 3
}

run_mongo() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can reuse the code in /scripts/installNuve.sh by passing parameters depending on the parts we want to execute. If so we should split the populate code in that scripts in two parts: run mongo and populate mongo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we're duplicating code here, but I would do it as a part of a bigger refactoring of the scripts. Right now the populating the database is tied to copying the configuration and that can cause all sorts of problems if we make it an option in the default scripts.

@lodoyun
Copy link
Contributor Author

lodoyun commented Apr 28, 2017

@jcague @aalonsog
I've gone ahead and added the doc changes here so everything stays synchronized.

Copy link
Member

@aalonsog aalonsog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lodoyun lodoyun merged commit 76f53df into lynckia:master May 3, 2017
@lodoyun lodoyun deleted the fix/dockerStartScript branch January 10, 2018 10:17
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
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.

3 participants