datahub icon indicating copy to clipboard operation
datahub copied to clipboard

fix(setup): Bump setup images to alpine 3.14 with arch based on machine OS.

Open pedro93 opened this issue 2 years ago • 1 comments
trafficstars

Updates docker setup jobs to use the same image tags as other images.

Also specifies the architecture of the image based on the underlying VM running the build process. This was done so that dev.sh scripts from the docker folder can be run by M1-based laptops:

./docker/dev-without-neo4j.sh
Pulling elasticsearch          ... done
Pulling mysql                  ... done
Pulling mysql-setup            ... done
Pulling zookeeper              ... done
Pulling elasticsearch-setup    ... done
Pulling broker                 ... done
Pulling schema-registry        ... done
Pulling kafka-setup            ... done
Pulling datahub-gms            ... done
Pulling datahub-actions        ... done
Pulling datahub-frontend-react ... done
WARNING: Some service image(s) must be built from source by running:
    docker-compose build elasticsearch-setup datahub-frontend-react kafka-setup
Building mysql-setup
[+] Building 0.4s (3/3) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                             0.0s
 => => transferring dockerfile: 514B                                                                                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                                                                                0.0s
 => => transferring context: 354B                                                                                                                                                                                0.0s
 => ERROR [internal] load metadata for docker.io/library/alpine:3                                                                                                                                                0.4s
------
 > [internal] load metadata for docker.io/library/alpine:3:
------
WARNING: No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile:1
--------------------
   1 | >>> FROM alpine:3
   2 |
   3 |     ENV DOCKERIZE_VERSION v0.6.1
--------------------
error: failed to solve: alpine:3: no match for platform in manifest sha256:8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4: not found (did you mean alpine?)
ERROR: Service 'mysql-setup' failed to build : Build failed

Checklist

  • [x] The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • [ ] Links to related issues (if applicable)
  • [ ] Tests for the changes have been added/updated (if applicable)
  • [ ] Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • [ ] For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

pedro93 avatar Dec 02 '22 14:12 pedro93

Unit Test Results (build & test)

621 tests  ±0   617 :heavy_check_mark: ±0   15m 36s :stopwatch: -46s 157 suites ±0       4 :zzz: ±0  157 files   ±0       0 :x: ±0 

Results for commit 8deed47e. ± Comparison against base commit 4f7b5ac5.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Dec 02 '22 15:12 github-actions[bot]