-
Notifications
You must be signed in to change notification settings - Fork 409
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
[FLASH-777] static compile for centos and ubuntu deploy #363
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8361a9e
static compile for centos and ubuntu deploy
hanfei1991 af8f486
update readme
hanfei1991 e3c2092
rm push command
hanfei1991 76b954f
adjust readme
hanfei1991 01f86b7
Merge branch 'master' into hanfei/compile
marsishandsome e8b000b
Merge branch 'master' into hanfei/compile
hanfei1991 ee86459
Merge branch 'master' into hanfei/compile
hanfei1991 eb160f8
Merge branch 'master' into hanfei/compile
hanfei1991 fad5bbf
Merge branch 'master' into hanfei/compile
hanfei1991 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
release-centos7/Dockerfile-tiflash → release-centos7/Dockerfile-tiflash-centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM centos:centos7.7.1908 | ||
FROM centos:centos7.6.1810 | ||
|
||
USER root | ||
WORKDIR /root/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ubuntu:16.04 | ||
|
||
USER root | ||
WORKDIR /root/ | ||
|
||
ENV HOME /root/ | ||
ENV TZ Asia/Shanghai | ||
ENV LD_LIBRARY_PATH /tiflash | ||
|
||
RUN apt update && apt install -y tzdata python && rm -rf /var/lib/apt/lists/* | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
|
||
COPY tiflash /tiflash | ||
|
||
ENTRYPOINT ["/tiflash/theflash", "server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# How to build | ||
|
||
```shell | ||
#prepare build enviroment | ||
make image_builer | ||
``` | ||
|
||
```shell | ||
#compile | ||
make build_release | ||
``` | ||
|
||
The executable files are located in `tiflash` dir. | ||
|
||
# Deploy Enviroument Requirements | ||
|
||
Following OS are tested OK | ||
|
||
* CentOS 7.6 | ||
* Ubuntu 16.04 and 18.04 | ||
|
||
**NOTE** CentOS 8 has newer `libnsl.so.2`. If we want to run on CentOS 8 , maybe we should copy old libnsl manually. | ||
|
||
Your system needs to install | ||
|
||
* GLibC 2.27+ (musl LibC is not OK) | ||
* Libgcc 4.8+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not forget to copy
tiflash proxy so
to$install_dir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ganranteed by build-tiproxy