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

Pull base images in make build? #1376

Closed
blazeyo opened this issue Nov 5, 2019 · 2 comments
Closed

Pull base images in make build? #1376

blazeyo opened this issue Nov 5, 2019 · 2 comments

Comments

@blazeyo
Copy link
Contributor

blazeyo commented Nov 5, 2019

Describe the bug
The following error was thrown by make build. It was caused by an outdated, cached version of node/10-alpine.

docker build --quiet --build-arg LAGOON_VERSION=development --build-arg IMAGE_REPO=lagoon -t lagoon/yarn-workspace-builder -f images/yarn-workspace-builder/Dockerfile .
...
error @lagoon/commons@4.0.0: The engine "node" is incompatible with this module. Expected version ">=10.16.3". Got "10.16.0"

To Reproduce
Steps to reproduce the behavior:
Run make build with an outdated node/10-alpine image.

Expected behavior
Common images are pulled on make build.

@blazeyo
Copy link
Contributor Author

blazeyo commented Nov 5, 2019

Here's a list of candidates for pre-pulling:

  • rabbitmq:3-management
  • redis:alpine
  • bobrik/curator
  • alpine:3.7
  • alpine:3.7
  • golang:alpine
  • docker:stable
  • docker.elastic.co/kibana/kibana:7.3.0
  • docker.elastic.co/kibana/kibana:6.8.2
  • docker.elastic.co/kibana/kibana:7.1.1
  • docker:stable-dind
  • postgres:11-alpine
  • arachnysdocker/athenapdf-service:2.13.0
  • solr:${SOLR_MAJ_MIN_VERSION}-alpine
  • alpine:3.8
  • node:${NODE_VERSION}-alpine
  • docker.elastic.co/logstash/logstash:7.3.0
  • docker.elastic.co/logstash/logstash:6.8.2
  • php:${PHP_IMAGE_VERSION}-fpm-alpine
  • alpine:3.7
  • docker.elastic.co/elasticsearch/elasticsearch:7.3.0
  • docker.elastic.co/elasticsearch/elasticsearch:6.8.2
  • docker.elastic.co/elasticsearch/elasticsearch:7.1.1
  • alpine
  • python:${PYTHON_VERSION}-alpine
  • alpine:3.8
  • openresty/openresty:alpine

The list has been generated with

grep -rohP '^FROM \K(\w[^\s]+)' images/

With this it should be quite easy to automate the process. The only step left if to expand the variables (e.g. ${NODE_VERSION}) and run a docker pull on the result.

@smlx smlx mentioned this issue Dec 19, 2019
3 tasks
@tobybellwood
Copy link
Member

We've modified the build process since this issue

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

No branches or pull requests

2 participants