Skip to content

Commit

Permalink
text cgo env for image for unning IDC k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-bisonai committed May 7, 2024
1 parent c7002f8 commit ab3db19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions delegator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

- Go implementation for delegator
- Uses GSM (setup env vars)

- CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__" for deployment
3 changes: 1 addition & 2 deletions dockerfiles/orakl-delegator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ COPY delegator delegator
WORKDIR /app/delegator

# https://github.com/klaytn/klaytn/issues/197#issuecomment-612597933
RUN CGO_ENABLED=1 CC=x86_64-linux-gnu-gcc GOOS=linux GOARCH=amd64 go build -o delegatorbin -ldflags="-w -s" .

RUN CGO_ENABLED=1 CGO_CFLAGS="-O -D__BLST_PORTABLE__" CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__" CC=x86_64-linux-gnu-gcc GOOS=linux GOARCH=amd64 go build -o delegatorbin -ldflags="-w -s" .
# debian:bullseye-slim
FROM debian@sha256:4b48997afc712259da850373fdbc60315316ee72213a4e77fc5a66032d790b2a

Expand Down

0 comments on commit ab3db19

Please sign in to comment.