Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webarx-security/wpbullet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
...
head repository: furkansayim/wpbullet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 5 commits
  • 2 files changed
  • 1 contributor

Commits on May 8, 2019

  1. Create Dockerfile

    xShuden authored May 8, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    967163d View commit details
  2. Update README.md

    xShuden authored May 8, 2019
    Copy the full SHA
    b08b2ba View commit details
  3. Update README.md

    xShuden authored May 8, 2019
    Copy the full SHA
    87cb1d7 View commit details
  4. Update Dockerfile

    xShuden authored May 8, 2019
    Copy the full SHA
    27563a0 View commit details
  5. Update README.md

    xShuden authored May 8, 2019
    Copy the full SHA
    cb65e49 View commit details
Showing with 29 additions and 0 deletions.
  1. +19 −0 Dockerfile
  2. +10 −0 README.md
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM alpine:3.9
MAINTAINER furkan.sayim@yandex.com

RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache

RUN mkdir /tmp/site-file
RUN apk add git
RUN git clone https://github.com/webarx-security/wpbullet.git /tmp/wpbullet

WORKDIR /tmp/wpbullet
RUN pip3 install -r requirements.txt

ENTRYPOINT ["python3", "wpbullet.py"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -13,6 +13,16 @@ Simply clone the repository, install requirements and run the script
- `$ pip install -r requirements.txt`
- `$ python wpbullet.py`

## Docker Build
```
docker run -t xshuden/wpbullet .
```

## Docker Run
```
docker run --rm -it --name wp xshuden/wpbullet
docker run --rm -it --name wp -v $(pwd):/tmp/site-file xshuden/wpbullet
```

## Usage
Available options: