From c119499086466b3296d75d568b15f858adf7704a Mon Sep 17 00:00:00 2001 From: Martin Rueckl Date: Mon, 27 Jun 2022 09:51:47 +0200 Subject: [PATCH] remove profiler and nightly-rerun docker files --- .github/workflows/main.yml | 7 ------- dockerfile_nightly_rerun | 14 -------------- dockerfile_nightly_rerun.dockerignore | 9 --------- dockerfile_profiler | 26 -------------------------- dockerfile_profiler.dockerignore | 10 ---------- start_nightly_rerun.sh | 5 ----- start_profiler.sh | 7 ------- 7 files changed, 78 deletions(-) delete mode 100644 dockerfile_nightly_rerun delete mode 100644 dockerfile_nightly_rerun.dockerignore delete mode 100644 dockerfile_profiler delete mode 100644 dockerfile_profiler.dockerignore delete mode 100644 start_nightly_rerun.sh delete mode 100755 start_profiler.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 63b2e63..8a61429 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,10 +64,3 @@ jobs: - name: Push the lighthouse image (only on main) run: docker push ${{env.docker_repository}}${{env.path_prefix}}-lighthouse:latest if: ${{ github.ref == 'refs/heads/main' }} - - - name: Build the nighly-rerun image - run: docker build -f dockerfile_nightly_rerun -t ${{env.docker_repository}}${{env.path_prefix}}-nightly_rerun:latest . - - - name: Push the nighly-rerun image (only on main) - run: docker push ${{env.docker_repository}}${{env.path_prefix}}-nightly_rerun:latest - if: ${{ github.ref == 'refs/heads/main' }} diff --git a/dockerfile_nightly_rerun b/dockerfile_nightly_rerun deleted file mode 100644 index b3b9e19..0000000 --- a/dockerfile_nightly_rerun +++ /dev/null @@ -1,14 +0,0 @@ -FROM python:3.9-alpine - -RUN adduser -D rerunner - -WORKDIR /home/rerunner - -# It is just a single file with no dependencies except python core libaries -COPY src/tools/nightly_rerun.py . - -RUN chown -R rerunner:rerunner ./ - -USER rerunner - -CMD python tools/nightly_rerun.py diff --git a/dockerfile_nightly_rerun.dockerignore b/dockerfile_nightly_rerun.dockerignore deleted file mode 100644 index dfe6834..0000000 --- a/dockerfile_nightly_rerun.dockerignore +++ /dev/null @@ -1,9 +0,0 @@ -setup.cfg -.github -.git -.pytest_cache -htmlcov -.idea -tests -src/lib/logs -tag_lists diff --git a/dockerfile_profiler b/dockerfile_profiler deleted file mode 100644 index c2e4e97..0000000 --- a/dockerfile_profiler +++ /dev/null @@ -1,26 +0,0 @@ -FROM python:3.9-alpine - -RUN adduser -D profiler - -WORKDIR /home/profiler - -RUN apk add --update --no-cache --virtual .build-deps g++ python3-dev libxml2 libxml2-dev libffi-dev openssl-dev -RUN apk add libxslt-dev curl - -# Needed for psycopg2 -RUN apk update && \ - apk add --virtual build-deps gcc musl-dev && \ - apk add postgresql-dev - -COPY requirements.txt requirements.txt -RUN pip install --no-cache-dir -r requirements.txt -RUN apk del .build-deps - -# First copy the data, then give ownership to it, then switch to correct user -COPY src/ . - -RUN chown -R profiler:profiler ./ - -USER profiler - -CMD python tools/dev/profiler.py diff --git a/dockerfile_profiler.dockerignore b/dockerfile_profiler.dockerignore deleted file mode 100644 index 9e9bfbb..0000000 --- a/dockerfile_profiler.dockerignore +++ /dev/null @@ -1,10 +0,0 @@ -setup.cfg -.github -.git -.pytest_cache -htmlcov -.idea -tests -src/lib/logs -src/tag_lists -tag_lists diff --git a/start_nightly_rerun.sh b/start_nightly_rerun.sh deleted file mode 100644 index fb80acc..0000000 --- a/start_nightly_rerun.sh +++ /dev/null @@ -1,5 +0,0 @@ -poetry export --without-hashes -o requirements.txt - -docker build -f dockerfile_nightly_rerun -t metalookup_nightly_rerun:latest . - -docker-compose -f docker-compose-nightly_rerun.yml up diff --git a/start_profiler.sh b/start_profiler.sh deleted file mode 100755 index 150baea..0000000 --- a/start_profiler.sh +++ /dev/null @@ -1,7 +0,0 @@ -poetry export --without-hashes -o requirements.txt - -docker volume create profiler_volume - -docker build -f dockerfile_profiler -t metalookup_profiler:latest . - -docker-compose -f docker-compose-profiler.yml up