From 7c1b2da05c013efe375ca587a3b88e4353c42bca Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Sun, 14 Mar 2021 11:51:22 +1000 Subject: [PATCH] Remove unused files --- Dockerfile | 27 --------------------------- _config.yml | 1 - docker-compose.yml | 17 ----------------- docs/INTERPRET_FROM_SOURCE.md | 35 ----------------------------------- 4 files changed, 80 deletions(-) delete mode 100644 Dockerfile delete mode 100644 _config.yml delete mode 100644 docker-compose.yml delete mode 100644 docs/INTERPRET_FROM_SOURCE.md diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index eb6a0a8..0000000 --- a/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -FROM python:3.9 -LABEL Description="This image enables running Buld Downloader for Reddit with in a container environment" Version="0.0.1" - -ENV PYTHONUNBUFFERED 1 -ENV PYTHONDONTWRITEBYTECODE 1 - -EXPOSE 8080 -EXPOSE 7634 - -# Install dependencies -RUN apt-get update \ - && apt-get install -y build-essential \ - && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ - && rm -rf /var/lib/apt/lists/* - -# Python requirements -COPY requirements.txt /requirements.txt -RUN pip install --no-cache-dir -r /requirements.txt \ - && rm -rf /requirements.txt - -# Copy over project files -COPY . /bdfr -WORKDIR /bdfr - -# Useful so the image doubles as reference to the binary -ENTRYPOINT ["python", "script.py"] -CMD ["python", "script.py", "-d", "downloads"] diff --git a/_config.yml b/_config.yml deleted file mode 100644 index c419263..0000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-cayman \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index da3afb4..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: "3" - -services: - - bdfr: - build: - context: . - dockerfile: ./Dockerfile - image: bdfr - container_name: bdfr - ports: - - "8080:8080" - - "7634:7634" - volumes: - - .:/bdfr:z - container_name: bdfr_container - network_mode: bridge diff --git a/docs/INTERPRET_FROM_SOURCE.md b/docs/INTERPRET_FROM_SOURCE.md deleted file mode 100644 index f0a20e3..0000000 --- a/docs/INTERPRET_FROM_SOURCE.md +++ /dev/null @@ -1,35 +0,0 @@ -# Interpret from source code -## Requirements -### 🐍 Python 3 Interpreter -- Python 3 is required. See if it is already installed, [here](#finding-the-correct-keyword-for-python). -- If not, download the matching release for your platform [here](https://www.python.org/downloads/) and install it. If you are a *Windows* user, selecting **Add Python 3 to PATH** option when installing the software is **mandatory**. - -### 📃 Source Code -[Download the repository](https://github.com/aliparlakci/bulk-downloader-for-reddit/archive/master.zip) and extract the zip into a folder. - -## 💻 Using the command line -Open the [Command Promt](https://youtu.be/bgSSJQolR0E?t=18), [Powershell](https://youtu.be/bgSSJQolR0E?t=18) or [Terminal](https://youtu.be/Pz4yHAB3G8w?t=31) in the folder that contains the script.py file (click on the links to see how) - -### Finding the correct keyword for Python -Enter these lines to the terminal window until it prints out the a version starting with **`3.`**: - -- `python --version` -- `python3 --version` -- `py --version` -- `py -3 --version` - -Once it does, your keyword is without the `--version` part. - -## 📦 Installing dependencies -Enter the line below to terminal window when you are in the directory where script.py is, use your keyword instead of `python`: -```console -python -m pip install -r requirements.txt -``` - -## 🏃‍♂️ Running the code -Type below code into command line inside the program folder, use your keyword instead of `python`: -```console -python script.py -``` - -The program should guide you through. **However**, you can also use custom options. See [Options](../README.md#⚙-Options) \ No newline at end of file