Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image support #158

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Using PHP 7.2.* Alpine as base image

FROM php:7.2-alpine

# Setup default build arguments

ARG RELEASE_VERSION=1.12.9

# Install magescan phar executable

RUN wget -O /usr/bin/magescan https://github.com/steverobbins/magescan/releases/download/v${RELEASE_VERSION}/magescan.phar
RUN chmod +x /usr/bin/magescan

# Check installed version during image build

RUN magescan --version

# Setup entrypoint

ENTRYPOINT [ "/usr/bin/magescan" ]


10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ Add the following to your `composer.json`
}
```

### Docker

Download the latest version of `steverobbins/magescan` image:

$ docker pull steverobbins/magescan:latest

Run a new Docker container from this image:

$ docker run --rm --name magescan steverobbins/magescan scan:all store.example.com

# Usage

$ magescan.phar scan:all store.example.com
Expand Down