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

feat: compile static binary as release assets and docker image #221

Merged
merged 12 commits into from
Jun 23, 2023

Conversation

zemyblue
Copy link
Member

@zemyblue zemyblue commented Jun 19, 2023

Description

closes: #71 , #203

Changes

  • add multi-platform docker image building, and push to docker hub.
  • fix the bug that the fnsad version in docker image was not displayed.
  • add the static fnsad binary compile function (just support linux/amd64 and linux/arm64)
  • change base docker image

Motivation and context

The release assets cannot execute without install dynamic library(libwasmvm). So it is very uncomfortable.

How has this been tested?

Screenshots (if appropriate):

The sample release assets results.
스크린샷 2023-06-20 오전 11 21 10

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.

zemyblue added 5 commits June 19, 2023 20:15
Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
@zemyblue zemyblue added bug Something isn't working enhancement New feature or request labels Jun 19, 2023
@zemyblue zemyblue self-assigned this Jun 19, 2023
zemyblue added 3 commits June 19, 2023 21:01
Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
@zemyblue zemyblue linked an issue Jun 19, 2023 that may be closed by this pull request
4 tasks
@zemyblue zemyblue requested a review from tkxkd0159 June 19, 2023 12:40
.github/workflows/docker.yml Outdated Show resolved Hide resolved
.github/workflows/docker.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
zemyblue added 2 commits June 20, 2023 20:05
Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
@zemyblue zemyblue requested a review from jaeseung-bae June 20, 2023 11:07
jaeseung-bae
jaeseung-bae previously approved these changes Jun 21, 2023
Copy link
Contributor

@0Tech 0Tech left a comment

Choose a reason for hiding this comment

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

We get similar binaries by several logics, by Makefile or by Dockerfile. This pr adds the way even more. We should consider tidy up the logics. We can reuse some logics in the other logics.
Also, we should concentrate on the main targets. The others just increases our burden on maintenance & QA.

.github/workflows/docker.yml Show resolved Hide resolved
@zemyblue
Copy link
Member Author

We get similar binaries by several logics, by Makefile or by Dockerfile. This pr adds the way even more. We should consider tidy up the logics. We can reuse some logics in the other logics.
Also, we should concentrate on the main targets. The others just increases our burden on maintenance & QA.

Yes, there are meny build option and it is a little complex. I also think It need to arrange it. I'll add as a issue it. And I'll try to fix it as another pr.

@0Tech 0Tech self-requested a review June 22, 2023 09:44
Signed-off-by: zemyblue <zemyblue@gmail.com>
@zemyblue zemyblue requested a review from jaeseung-bae June 22, 2023 12:15
@zemyblue zemyblue added this to the v2.0.0 milestone Jun 22, 2023
0Tech
0Tech previously approved these changes Jun 23, 2023
jaeseung-bae
jaeseung-bae previously approved these changes Jun 23, 2023
@zemyblue zemyblue dismissed stale reviews from jaeseung-bae and 0Tech via 39d6edc June 23, 2023 05:29
@zemyblue zemyblue requested review from 0Tech and jaeseung-bae June 23, 2023 05:32
@zemyblue zemyblue merged commit 225b581 into Finschia:main Jun 23, 2023
@zemyblue zemyblue deleted the feat/change_to_static_binary branch June 23, 2023 06:06
zemyblue added a commit to zemyblue/finschia that referenced this pull request Jun 23, 2023
…hia#221)

* build: modify docker image base and binary using static library.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: change the description in readme

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: localnet-docker-build unittest

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change the github action ci for pushing Docker images

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change release build for using static binary assets.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: update changelog

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: parse tag in github action of docker.yml

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change docker build and push trigger

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: remove condition if `pull_request` or not.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: typo

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: remove debian11 and nonroot base docker image

Signed-off-by: zemyblue <zemyblue@gmail.com>

---------

Signed-off-by: zemyblue <zemyblue@gmail.com>
(cherry picked from commit 225b581)
zemyblue added a commit that referenced this pull request Jun 26, 2023
…res (#221, #223) (#225)

* feat: add integrated swagger for finschia (#223)

* feat: add integrated swagger for finschia.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: update changelog

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: add a ci to check generated code.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: add a ci to check generated code up-to-date

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: ci error

Signed-off-by: zemyblue <zemyblue@gmail.com>
(cherry picked from commit b98ef07008b1a1e93882447e67286a0a2ae6339f)

---------

Signed-off-by: zemyblue <zemyblue@gmail.com>
(cherry picked from commit d649d83)

* feat: compile static binary as release assets and docker image (#221)

* build: modify docker image base and binary using static library.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: change the description in readme

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: localnet-docker-build unittest

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change the github action ci for pushing Docker images

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change release build for using static binary assets.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: update changelog

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: parse tag in github action of docker.yml

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: change docker build and push trigger

Signed-off-by: zemyblue <zemyblue@gmail.com>

* ci: remove condition if `pull_request` or not.

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: typo

Signed-off-by: zemyblue <zemyblue@gmail.com>

* chore: remove debian11 and nonroot base docker image

Signed-off-by: zemyblue <zemyblue@gmail.com>

---------

Signed-off-by: zemyblue <zemyblue@gmail.com>
(cherry picked from commit 225b581)

* fix: build option error

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: build option error in docker

Signed-off-by: zemyblue <zemyblue@gmail.com>

* fix: build option error in docker

Signed-off-by: zemyblue <zemyblue@gmail.com>

---------

Signed-off-by: zemyblue <zemyblue@gmail.com>
@zemyblue zemyblue mentioned this pull request Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't check the version in docker image of finschianode Modify make build-static
3 participants