From 5394928ea94a3d636489cc0bf4ff3f93f5825e67 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 17 Nov 2019 17:09:35 +0900 Subject: [PATCH] Deleted docker --- docker/README.md | 62 ----------------------------------- docker/development.Dockerfile | 15 --------- docker/docker-compose.yml | 21 ------------ 3 files changed, 98 deletions(-) delete mode 100644 docker/README.md delete mode 100644 docker/development.Dockerfile delete mode 100644 docker/docker-compose.yml diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index e553cfcb..00000000 --- a/docker/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# Docker - -## Prerequisites - -* Install [Docker](https://www.docker.com/get-started) -* Install [Docker Compose](https://docs.docker.com/compose/install/) - -## Installation - -Download the source code: - -```shell -git clone https://github.com/animenotifier/notify.moe.git && cd notify.moe -``` - -Download the developer tools: - -```shell -docker pull animenotifier/notify.moe -``` - -Start the developer tools: - -```shell -docker-compose up -d -``` - -Attach to a terminal: - -```shell -docker attach notify.moe -``` - -## Start the server - -* Enter the notify.moe directory: `cd notify.moe` -* Download dependencies: `go mod download` -* Compile TypeScript files using: `tsc` -* Start the web server using: `run` - -## Networking - -* Add `beta.notify.moe 127.0.0.1` to your `hosts` file - -## In your browser - -* Open the settings, search for certificates -* Import the file `security/default/root.crt` as a trusted Root authority -* Open `https://beta.notify.moe` - -## Tips - -* You can detach from the terminal using `Ctrl P -> Ctrl Q`. -* If you need to shutdown everything, use `docker-compose down`. -* Your home directory is mounted as `/my` inside Docker. -* Fork the notify.moe repository and upload your changes to the fork. -* Clone all the repositories you use into a `projects` directory inside your home files. -* The `run` binary is a file watcher that will restart the web server when it detects code changes. -* File modification events [don't work](https://github.com/docker/for-win/issues/56) on Docker for Windows. -* Use an editor like [Visual Studio Code](http://code.visualstudio.com) to access the source code on the host. -* To automatically compile TypeScript files in VS Code, press `Ctrl Shift B` and select `tsc: watch`. -* Use a Linux system for maximum performance. \ No newline at end of file diff --git a/docker/development.Dockerfile b/docker/development.Dockerfile deleted file mode 100644 index 360c2c5f..00000000 --- a/docker/development.Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -# Install development environment -FROM blitzprog/aero - -# Download database -RUN git clone --progress --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn - -# Download notify.moe dependencies -RUN curl -s -o ~/go.mod https://raw.githubusercontent.com/animenotifier/notify.moe/go/go.mod && \ - curl -s -o ~/go.sum https://raw.githubusercontent.com/animenotifier/notify.moe/go/go.sum && \ - cd ~/ && \ - go mod download && \ - rm ~/go.mod ~/go.sum - -# Create empty working directory -WORKDIR /my \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml deleted file mode 100644 index a1b178ce..00000000 --- a/docker/docker-compose.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: "3.7" - -services: - notify.moe: - build: - context: . - dockerfile: docker/development.Dockerfile - network: host - image: animenotifier/notify.moe - hostname: docker - container_name: notify.moe - stdin_open: true - tty: true - ports: - - "443:4001" - volumes: - - ~/:/my - -networks: - default: - name: notify.moe \ No newline at end of file