Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Upgrade image to alpine 3.7. Also upgrade openssl and ca-certificates versions. #189

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

shay-berman
Copy link
Contributor

@shay-berman shay-berman commented Feb 21, 2018

  1. ubiquity base image in GA v1.0 was set to alpine:latest (back then it was alpine version 3.6).
    We should not use "latest" tag in dockerfile any more, so I set it to alpine:3.7 which is now the latest alpine version. So setting specific tag version and also upgrade to 3.7.

  2. Upgrade alpine 3.7 requires to upgrade also the following packages in the docker image:
    ca-certificates 20161130-r2 --> 20171114-r0
    openssl 1.0.2k-r0 --> 1.0.2n-r0

Thanks Peeyush gupta @Pensu for indicating about the wrong dependencies with the latest alpine version.

How to test

  1. Install ubiquity and then jump inside the ubiquity pod and check the new alpine version
    #> kubectl exec -n ubiquity -it <POD> -- cat /etc/alpine-release
    In addition check the new packages version
    #> kubectl exec -n ubiquity -it <POD> -- apk info -v | egrep "openssl|ca-cert
    (You can also use the google image tool for testing it)

  2. Since we change some openssl and certificate, we also should check installing ubiquity with dedicate certificates and make sure it works well.
    (Automatic test should be developed for that)


This change is Reviewable

…Also open-ssl and ca-certificates.

1. In GA v1 ubiquity base image was set to alpine:latest (back then it was 3.6).
   We should not use latest tag in dockerfile any more, so I set it to alpine:3.7 which is now the latest alpine version.
2. Upgrade to alpine 3.7 requires to upgrade also:
   ca-certificates  20161130-r2 --> 20171114-r0
   openssl          1.0.2k-r0   --> 1.0.2n-r0
@shay-berman shay-berman self-assigned this Feb 21, 2018
@shay-berman
Copy link
Contributor Author

Passed ubiquity sanity test

@coveralls
Copy link

Coverage Status

Coverage remained the same at 54.801% when pulling 24a15e0 on feature/upgrade_and_set_to_alpine3.7_and_openssl into c94b05f on dev.

@alonm
Copy link
Contributor

alonm commented Feb 21, 2018

:lgtm:


Review status: 0 of 1 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@Pensu
Copy link
Collaborator

Pensu commented Feb 21, 2018

Great! So, should I go ahead and close: #184 ?

@shay-berman shay-berman merged commit 62a7ae4 into dev Feb 21, 2018
@shay-berman
Copy link
Contributor Author

@Pensu , yes please close #184 since we aim to have specific versions in all our Dockerfile and glides vs 'latest' style.

Thanks a lot for indicating about the packages mismatch

@shay-berman shay-berman deleted the feature/upgrade_and_set_to_alpine3.7_and_openssl branch March 25, 2018 11:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants