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

Docker/streamline image, upgrade old firefox with headless chrome #415

Merged
merged 122 commits into from
Nov 27, 2018

Conversation

s-pace
Copy link
Contributor

@s-pace s-pace commented Nov 22, 2018

This PR is here to streamline the docker image. It:

  • update the docker image with using the latest ubuntu image
  • update the nodejs used in the docker image, it uses nodejs 8
  • Enhance Dockerfile, use guidelines, remove noise
  • Use pipenv to elegantly install the python env
  • Remove the deprecated py3 parameter that is not used any more by travis
  • Change the docker:run command. It will by default use the remote steady image. A new parameter is introduced to use the local code instead
  • Rename the image and fixe the typo with scraper
  • Better log management by removing the redirection of stderr in stdout

cc #411

pixelastic
pixelastic previously approved these changes Nov 22, 2018
Copy link
Contributor

@pixelastic pixelastic left a comment

Choose a reason for hiding this comment

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

Looks very good!

I'm just wondering about the renaming. Shouldn't we rename it to algolia/docsearch on Docker hub?

cli/src/commands/abstract_build_docker.py Outdated Show resolved Hide resolved
cli/src/commands/build_docker_scraper.py Outdated Show resolved Hide resolved
cli/src/commands/build_docker_scraper.py Outdated Show resolved Hide resolved
cli/src/commands/run_config_docker.py Outdated Show resolved Hide resolved
cli/src/commands/run_config_docker.py Show resolved Hide resolved
cli/src/commands/run_config_docker.py Show resolved Hide resolved
cli/src/commands/run_config_docker.py Outdated Show resolved Hide resolved
cli/src/commands/run_config_docker.py Outdated Show resolved Hide resolved
scraper/dev/docker/Dockerfile Show resolved Hide resolved
scraper/dev/docker/Dockerfile.base Show resolved Hide resolved
@s-pace s-pace force-pushed the docker/streamline_image branch 11 times, most recently from bd1e8d0 to 6b8ce88 Compare November 26, 2018 13:03
"algolia/docsearch-scraper-test")

code = self.build_docker_file("scraper/dev/docker/Dockerfile.base",
"algolia/base-docsearch-scraper")
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we have both images follow the same pattern in naming? Like docsearch-scraper-test and docsearch-scraper-base instead of base-docsearch-scraper?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I will do it

cli/src/commands/run_config_docker.py Outdated Show resolved Hide resolved
RUN apt-get update -y && apt-get install -yq \
curl \
wget \
sudo -yq \
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need to add -yq to every line, once for the apt-get install command is enough

@s-pace
Copy link
Contributor Author

s-pace commented Nov 26, 2018

Review done @pixelastic
LMK if I can merge it

Copy link
Contributor

@pixelastic pixelastic left a comment

Choose a reason for hiding this comment

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

LGTM

@s-pace s-pace merged commit a49d25c into master Nov 27, 2018
@s-pace s-pace deleted the docker/streamline_image branch November 27, 2018 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants