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

MUL-1942: cd alpine builds #125

Merged
merged 1 commit into from
Dec 5, 2018
Merged

MUL-1942: cd alpine builds #125

merged 1 commit into from
Dec 5, 2018

Conversation

Enmk
Copy link
Contributor

@Enmk Enmk commented Dec 4, 2018

  • Fixed building and packaging docker images for alpine with musl static library.
  • Updated startup banners for node services and multy back.
  • Separate Dockerfile for multy-back-builder image: Dockerfile_multy-back-builder
  • Using CanaryTest mode for multy-back and ns to verify that images was built Ok.

@Enmk Enmk requested a review from jekabolt December 4, 2018 10:37
abitrolly
abitrolly previously approved these changes Dec 4, 2018
Dockerfile Outdated
RUN curl http://www.musl-libc.org/releases/musl-1.1.20.tar.gz > musl-1.1.20.tar.gz \
&& tar -xf musl-1.1.20.tar.gz \
&& cd ./musl-1.1.20 \
&& ./configure --prefix=/usr && make && make install
Copy link
Contributor

Choose a reason for hiding this comment

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

https and pipe to tar - curl https://www.musl-libc.org/releases/musl-1.1.20.tar.gz | tar xz

@@ -1,39 +1,54 @@
# Builder image that builds all the multy-back and all node services
# multyio/multy-back-builder has all dependencies cached
# Based on golang:1.9.4
Copy link
Contributor

Choose a reason for hiding this comment

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

Link to Dockerfile for multy-back-builder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is now committed as separate Dockerfile, see Dockerfile_multy-back-builder and corresponding make targets:

docker-build-builder-image
docker-retag-builder-image
docker-push-builder-image


# Base image for all images with executable application
# Sets important arguments and labels.
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is excessive. )

lasttag string
buildtime string

Copy link
Contributor

Choose a reason for hiding this comment

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

If it is interesting to aim for reproducible builds then "Timestamps are best avoided"

If a date is required to give users an idea on when the software was made, it is better to use a date that is relevant to the source code instead of the build: old software can always be built later. Like version information, it’s best to extract such a date from the revision control system or from a changelog.

https://reproducible-builds.org/docs/timestamps/

config.ReadGlobalConfig(&globalOpt, "multy configuration")
log.Infof("CONFIGURATION=%+v", globalOpt.SupportedNodes)

log.Info("============================================================")
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

log.Infof("CONFIGURATION=%+v", globalOpt)

log.Info("============================================================")
log.Info("Node service ETH starting")
Copy link
Contributor

Choose a reason for hiding this comment

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

log.Info("=======================================[ Node Service]===[ ETH ]")


log.Info("Reading configuration...")
config.ReadGlobalConfig(&globalOpt, "multy configuration")
log.Infof("CONFIGURATION=%+v", globalOpt)
Copy link
Contributor

Choose a reason for hiding this comment

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

according with #97
don't print configuration or globalOpt.Database.Password = "***"

Copy link
Contributor Author

@Enmk Enmk Dec 5, 2018

Choose a reason for hiding this comment

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

Not all fixes from master/release were ported yet, and this line here is just something that existed before, rearranged.

Copy link
Contributor

Choose a reason for hiding this comment

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

k

jekabolt
jekabolt previously approved these changes Dec 5, 2018
* Fixed building and packaging docker images for alpine with musl static library.
* Updated startup banners for node services and multy back.
* Separate Dockerfile for multy-back-builder image: Dockerfile_multy-back-builder.
* Using CanaryTest mode for multy-back and ns to verify that images was built Ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants