Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Dec 26, 2023
1 parent c23cd6b commit fa36df0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: E2E Tests
on: [push]

jobs:
build:
build-docker-image:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -29,15 +30,28 @@ jobs:
path: /tmp/vechain-thor.tar
retention-days: 7

use:
run-tests:
runs-on: ubuntu-latest
needs: build
name: Run E2E tests
steps:

- name: Checkout
uses: actions/checkout@v4
with:
repository: darrenvechain/thor-e2e-tests

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: vechain-thor-image
path: /tmp

- name: Setup Node JS
uses: actions/setup-node@v4
with:
node-version: '18.x'

- name: Load image
run: |
docker load --input /tmp/vechain-thor.tar
Expand Down
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Build thor in a stock Go builder container
FROM golang:alpine as builder
FROM golang:alpine3.17 as builder

RUN apk add --no-cache make gcc musl-dev linux-headers git
WORKDIR /go/thor
COPY . /go/thor
RUN make all

# Pull thor into a second stage deploy alpine container
FROM alpine:latest
FROM alpine:3.17

RUN apk add --no-cache ca-certificates
COPY --from=builder /go/thor/bin/thor /usr/local/bin/
Expand All @@ -16,4 +16,4 @@ RUN adduser -D -s /bin/ash thor
USER thor

EXPOSE 8669 11235 11235/udp 55555/udp
ENTRYPOINT ["thor"]
ENTRYPOINT ["thor"]

0 comments on commit fa36df0

Please sign in to comment.