This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends linux-tools-common linux-tools-generic \ | |
&& apt-get clean \ | |
&& rm /usr/bin/perf \ | |
&& ln -s /usr/lib/linux-tools/*-generic/perf /usr/bin/perf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.13.0-stretch AS builder | |
ENV GO111MODULE=on \ | |
CGO_ENABLED=1 | |
WORKDIR /build | |
# Let's cache modules retrieval - those don't change so often | |
COPY go.mod . | |
COPY go.sum . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os, time, glob, subprocess | |
files = glob.iglob('./**/*.epub', recursive=True) | |
workers = [] | |
while files or workers: | |
files = list(files) | |
while len(workers) < 4 and files: | |
f = files[0] |