diff options
author | Paramtamtam <[email protected]> | 2019-12-18 11:39:57 +0500 |
---|---|---|
committer | Paramtamtam <[email protected]> | 2019-12-18 11:39:57 +0500 |
commit | 62f72e94556e093099c58eae6e2b0366f72d79c9 (patch) | |
tree | 27843291d4671cdbb8486ba39d0487a350cd1696 | |
parent | fadf373c1fe5e51bfaeb9e5ac3fe4ee748620a44 (diff) |
Docker environment added
-rw-r--r-- | .dockerignore | 10 | ||||
-rw-r--r-- | .github/workflows/ci-build.yml | 15 | ||||
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | Dockerfile | 29 | ||||
-rw-r--r-- | README.md | 2 |
5 files changed, 60 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..57453172 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +.dockerignore +.git +.gitignore +.editorconfig +.idea +.github +/src +/tests +/bin +composer.json diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 3031cbb4..63b95c72 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -89,3 +89,18 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} if: + + image: + name: Build docker image + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v1 + with: + fetch-depth: 1 + + - name: Build image + run: docker build -t roadrunner -f Dockerfile . + + - name: Try to execute + run: docker run --rm roadrunner -v diff --git a/CHANGELOG.md b/CHANGELOG.md index 12924618..4de3aa8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========= +UNRELEASED +---------- +- added `Dockerfile` for building RR binary file + v1.5.2 (05.12.2019) ------------------- - added support for symfony/console 5.0 by @coxa diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..66d1e311 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +# Image page: <https://hub.docker.com/_/golang> +FROM golang:1.13-alpine as builder + +COPY . /src + +WORKDIR /src + +RUN set -x \ + && apk add --no-cache bash \ + && go version \ + && bash ./build.sh \ + && ./rr -v \ + && test -f ./.rr.yaml + +FROM alpine:latest + +LABEL \ + org.label-schema.name="roadrunner" \ + org.label-schema.description="High-performance PHP application server, load-balancer and process manager" \ + org.label-schema.url="https://github.com/spiral/roadrunner" \ + org.label-schema.vcs-url="https://github.com/spiral/roadrunner" \ + org.label-schema.vendor="SpiralScout" \ + org.label-schema.license="MIT" \ + org.label-schema.schema-version="1.0" + +COPY --from=builder /src/rr /usr/bin/rr +COPY --from=builder /src/.rr.yaml /etc/rr.yaml + +ENTRYPOINT ["/usr/bin/rr"] @@ -56,6 +56,8 @@ $ composer require spiral/roadrunner $ ./vendor/bin/rr get-binary ``` +> For getting roadrunner binary file you can use our docker image: `spiral/roadrunner:latest` (more info can be found [here](https://hub.docker.com/r/spiral/roadrunner/)) + Example: -------- |