-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from tristanlatr/develop
Version 0.5.7
- Loading branch information
Showing
14 changed files
with
1,403 additions
and
1,429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# WPWatcher Dockerfile | ||
FROM ruby:alpine | ||
# Install dependencies ruby gem | ||
RUN apk --update add --virtual build-dependencies ruby-dev build-base &&\ | ||
apk --update add curl &&\ | ||
apk --update add git | ||
# Install WPScan lastest tested version | ||
RUN gem install wpscan -v 3.7.11 | ||
# Python install | ||
ENV PYTHONUNBUFFERED=1 | ||
RUN apk add --no-cache python3 | ||
|
||
# Setup user and group if specified | ||
ARG USER_ID | ||
# ARG GROUP_ID | ||
# Delete curent user | ||
RUN deluser --remove-home wpwatcher >/dev/null 2>&1 || true | ||
# RUN delgroup wp >/dev/null 2>&1 || true | ||
# Init folder tree | ||
RUN mkdir /wpwatcher && mkdir /wpwatcher/.wpwatcher | ||
# Add only required scripts | ||
ADD setup.py /wpwatcher | ||
ADD README.md /wpwatcher | ||
COPY ./wpwatcher/* /wpwatcher/wpwatcher/ | ||
WORKDIR /wpwatcher | ||
# Install WPWatcher | ||
RUN python3 ./setup.py install | ||
RUN if [ ${USER_ID:-0} -ne 0 ]; then adduser -h /wpwatcher -D -u ${USER_ID} wpwatcher; fi | ||
RUN adduser -h /wpwatcher -D wpwatcher >/dev/null 2>&1 || true | ||
# RUN if [ ${GROUP_ID:-0} -ne 0 ]; then addgroup -g ${GROUP_ID} wp && addgroup wpwatcher wp ; fi | ||
RUN chown -R wpwatcher /wpwatcher | ||
USER wpwatcher | ||
# Run command | ||
ENTRYPOINT ["wpwatcher"] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.