From ae790d8fc1c8230f3dd33b0e5d33a7f7193bc9c6 Mon Sep 17 00:00:00 2001 From: Jonas Leder Date: Thu, 2 Apr 2020 20:03:11 +0200 Subject: [PATCH] delete gitlab-ci + docker files --- .gitlab-ci.yml | 31 ------------------------------- Dockerfile | 16 ---------------- docker-compose.yml | 10 ---------- 3 files changed, 57 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 Dockerfile delete mode 100644 docker-compose.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index bba820c..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,31 +0,0 @@ -image: docker -services: - - docker:dind - -stages: - - build - - deploy - -build: - stage: build - only: - - master - script: - - echo "building branch $CI_COMMIT_REF_NAME, Version $version" - - git config --global user.name "build" - - git config --global user.email "noreply@jonasled.de" - - sudo docker pull python:3 - - sudo docker build -t gitlab.jonasled.de/jonasled/discordbot . - - sudo docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - - sudo docker push gitlab.jonasled.de/jonasled/discordbot - -deploy: - stage: deploy - only: - - master - script: - - sudo apt-get install -y python-pip #install pip, this is needed to install docker-compose in the next step - - sudo pip install docker-compose #Install docker-compose with pip - - sudo docker-compose up -d #Start the new container - environment: master - \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 24bd521..0000000 --- a/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM python:3 - -LABEL Name=discordbot - -WORKDIR / -ADD ./bot.py / -ADD ./duck.mp3 / -ADD ./wrong.mp3 / -ADD ./requirements.txt / - -RUN apt update -RUN apt install sqlite3 -y - -RUN python3 -m pip install -r requirements.txt - -ENTRYPOINT python3 bot.py \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 77d5c17..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,10 +0,0 @@ -#This is the production compose file, if you want to develop use the docker-compose-build file. -version: '2.1' -services: - discord_bot: - image: discordbot:latest - volumes: - - ./config.py:/config.py - - database:/database.db -volumes: - database: \ No newline at end of file