Skip to content

fix: dockerignore config - #4578

Merged
mergify[bot] merged 3 commits into
matrixorigin:mainfrom
wanglei4687:fix-docker-build
Aug 18, 2022
Merged

mergify[bot] merged 3 commits into
matrixorigin:mainfrom
wanglei4687:fix-docker-build

Conversation

@wanglei4687

@wanglei4687 wanglei4687 commented Aug 18, 2022 •

Copy link
Copy Markdown
Contributor

Signed-off-by: wanglei4687 [email protected]

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #

What this PR does / why we need it:

  1. cago compiler with link system lib, so ignore cgo generate files
    /usr/bin/ld is my local Apple's linker

For example:

#16 52.59 # github.com/matrixorigin/matrixone/cmd/db-server
#16 52.59 /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
#16 52.59 /usr/bin/ld: /tmp/go-link-2126209758/000006.o: in function `_cgo_df8c56550131_Cfunc_Decimal128_Add':
#16 52.59 decimal.cgo2.c:(.text+0x71): undefined reference to `Decimal128_Add'
#16 52.59 /usr/bin/ld: /tmp/go-link-2126209758/000006.o: in function `_cgo_df8c56550131_Cfunc_Decimal128_AddDecimal64':
#16 52.59 decimal.cgo2.c:(.text+0xcd): undefined reference to `Decimal128_AddDecimal64'
#16 52.59 /usr/bin/ld: /tmp/go-link-2126209758/000006.o: in function `_cgo_df8c56550131_Cfunc_Decimal128_AddInt64':
  1. According to Add the cn-service #4535, the system_vars_config.toml will be the default config and make config do not generate configuration files. So system_vars_config.toml should not be ignored. It's related to optools/images/Dockerfile

  2. Add some other generate files, like gen_config and ignore generate data at store/.

  3. Fix config error

Signed-off-by: wanglei4687 <[email protected]>
@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Aug 18, 2022
@mergify mergify Bot added the kind/bug Something isn't working label Aug 18, 2022
@wanglei4687

Copy link
Copy Markdown
Contributor Author

cc @sukki37 @aylei

@wanglei4687
wanglei4687 requested review from aylei and sukki37 August 18, 2022 09:49
@wanglei4687
wanglei4687 marked this pull request as ready for review August 18, 2022 09:50
@wanglei4687
wanglei4687 requested a review from yingfeng as a code owner August 18, 2022 09:50

@aylei aylei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@mergify
mergify Bot merged commit edc7a84 into matrixorigin:main Aug 18, 2022
@wanglei4687
wanglei4687 deleted the fix-docker-build branch September 2, 2022 03:54
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
1. cago compiler with link system lib, so  ignore cgo generate files
`/usr/bin/ld` is my local Apple's linker

For example:
```
#16 52.59 # github.com/matrixorigin/matrixone/cmd/db-server
#16 52.59 /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
#16 52.59 /usr/bin/ld: /tmp/go-link-2126209758/000006.o: in function `_cgo_df8c56550131_Cfunc_Decimal128_Add':
#16 52.59 decimal.cgo2.c:(.text+0x71): undefined reference to `Decimal128_Add'
#16 52.59 /usr/bin/ld: /tmp/go-link-2126209758/000006.o: in function `_cgo_df8c56550131_Cfunc_Decimal128_AddDecimal64':
#16 52.59 decimal.cgo2.c:(.text+0xcd): undefined reference to `Decimal128_AddDecimal64'
#16 52.59 /usr/bin/ld: /tmp/go-link-2126209758/000006.o: in function `_cgo_df8c56550131_Cfunc_Decimal128_AddInt64':
```

2. According to matrixorigin#4535, the `system_vars_config.toml` will be the default config and  `make config` do not generate configuration files. So `system_vars_config.toml` should not be ignored. It's related to [optools/images/Dockerfile](https://github.com/matrixorigin/matrixone/blob/main/optools/images/Dockerfile)

3. Add some other generate files, like `gen_config` and ignore generate data at `store/`.

4. Fix config error

Approved by: @yingfeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants