Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mininny committed Sep 19, 2024
1 parent 5ca7b16 commit 7fe2cdc
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ builds:

## Darwin AMD64:
- id: darwin-amd64-erigon
skip: true
main: ./cmd/erigon
binary: erigon
goos: [ darwin ]
Expand All @@ -40,6 +41,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-downloader
skip: true
main: ./cmd/downloader
binary: downloader
goos: [ darwin ]
Expand All @@ -60,6 +62,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-devnet
skip: true
main: ./cmd/devnet
binary: devnet
goos: [ darwin ]
Expand All @@ -80,6 +83,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-evm
skip: true
main: ./cmd/evm
binary: evm
goos: [ darwin ]
Expand All @@ -100,6 +104,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-caplin
skip: true
main: ./cmd/caplin
binary: caplin
goos: [ darwin ]
Expand All @@ -120,6 +125,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-diag
skip: true
main: ./cmd/diag
binary: diag
goos: [ darwin ]
Expand All @@ -140,6 +146,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-integration
skip: true
main: ./cmd/integration
binary: integration
goos: [ darwin ]
Expand All @@ -160,6 +167,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-rpcdaemon
skip: true
main: ./cmd/rpcdaemon
binary: rpcdaemon
goos: [ darwin ]
Expand All @@ -180,6 +188,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-sentry
skip: true
main: ./cmd/sentry
binary: sentry
goos: [ darwin ]
Expand All @@ -200,6 +209,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-amd64-txpool
skip: true
main: ./cmd/txpool
binary: txpool
goos: [ darwin ]
Expand All @@ -223,6 +233,7 @@ builds:

## Darwin ARM64:
- id: darwin-arm64-erigon
skip: true
main: ./cmd/erigon
binary: erigon
goos: [ darwin ]
Expand All @@ -241,6 +252,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-downloader
skip: true
main: ./cmd/downloader
binary: downloader
goos: [ darwin ]
Expand All @@ -259,6 +271,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-devnet
skip: true
main: ./cmd/devnet
binary: devnet
goos: [ darwin ]
Expand All @@ -277,6 +290,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-evm
skip: true
main: ./cmd/evm
binary: evm
goos: [ darwin ]
Expand All @@ -295,6 +309,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-caplin
skip: true
main: ./cmd/caplin
binary: caplin
goos: [ darwin ]
Expand All @@ -313,6 +328,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-diag
skip: true
main: ./cmd/diag
binary: diag
goos: [ darwin ]
Expand All @@ -331,6 +347,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-integration
skip: true
main: ./cmd/integration
binary: integration
goos: [ darwin ]
Expand All @@ -349,6 +366,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-rpcdaemon
skip: true
main: ./cmd/rpcdaemon
binary: rpcdaemon
goos: [ darwin ]
Expand All @@ -367,6 +385,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-sentry
skip: true
main: ./cmd/sentry
binary: sentry
goos: [ darwin ]
Expand All @@ -385,6 +404,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: darwin-arm64-txpool
skip: true
main: ./cmd/txpool
binary: txpool
goos: [ darwin ]
Expand Down Expand Up @@ -792,6 +812,7 @@ builds:

## Windows AMD64:
- id: windows-amd64-erigon
skip: true
main: ./cmd/erigon
binary: erigon
goos: [ windows ]
Expand All @@ -815,6 +836,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-downloader
skip: true
main: ./cmd/downloader
binary: downloader
goos: [ windows ]
Expand All @@ -837,6 +859,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-devnet
skip: true
main: ./cmd/devnet
binary: devnet
goos: [ windows ]
Expand All @@ -859,6 +882,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-evm
skip: true
main: ./cmd/evm
binary: evm
goos: [ windows ]
Expand All @@ -881,6 +905,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-caplin
skip: true
main: ./cmd/caplin
binary: caplin
goos: [ windows ]
Expand All @@ -903,6 +928,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-diag
skip: true
main: ./cmd/diag
binary: diag
goos: [ windows ]
Expand All @@ -925,6 +951,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-integration
skip: true
main: ./cmd/integration
binary: integration
goos: [ windows ]
Expand All @@ -947,6 +974,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-rpcdaemon
skip: true
main: ./cmd/rpcdaemon
binary: rpcdaemon
goos: [ windows ]
Expand All @@ -969,6 +997,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-sentry
skip: true
main: ./cmd/sentry
binary: sentry
goos: [ windows ]
Expand All @@ -991,6 +1020,7 @@ builds:
- -X {{ .Env.PACKAGE }}/params.GitCommit={{ .Env.GIT_COMMIT }} -X {{ .Env.PACKAGE }}/params.GitBranch={{ .Env.GIT_BRANCH }} -X {{ .Env.PACKAGE }}/params.GitTag={{ .Env.GIT_TAG }}

- id: windows-amd64-txpool
skip: true
main: ./cmd/txpool
binary: txpool
goos: [ windows ]
Expand Down
14 changes: 7 additions & 7 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ RUN --mount=type=bind,from=temporary,source=/tmp/${APPLICATION},target=/tmp/${AP
addgroup ${GROUP} && \
adduser -D -h /home/${USER} -G ${GROUP} ${USER} && \
install -d -o ${USER} -g ${GROUP} /home/${USER}/.local /home/${USER}/.local/share /home/${USER}/.local/share/erigon && \
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/erigon /usr/local/bin/ && \
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/integration /usr/local/bin/ && \
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/diag /usr/local/bin/ && \
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/sentry /usr/local/bin/ && \
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/txpool /usr/local/bin/ && \
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/downloader /usr/local/bin/ && \
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/rpcdaemon /usr/local/bin/
install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/erigon /usr/local/bin/
# install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/integration /usr/local/bin/ && \
# install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/diag /usr/local/bin/ && \
# install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/sentry /usr/local/bin/ && \
# install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/txpool /usr/local/bin/ && \
# install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/downloader /usr/local/bin/ && \
# install -o ${USER} -g ${GROUP} /tmp/${APPLICATION}/rpcdaemon /usr/local/bin/

VOLUME [ "/home/${USER}" ]
WORKDIR /home/${USER}
Expand Down

0 comments on commit 7fe2cdc

Please sign in to comment.