commit 6e0c794f0803216a74c327894e2c4fae330da217 Author: Stanislav N. aka pztrn Date: Sun Sep 20 15:06:44 2020 +0500 Initial commit with version 1.9.1. diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5e24644 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +--- +kind: pipeline +type: docker +name: build + +steps: + - name: docker + image: plugins/docker + settings: + username: + from_secret: dockerhub_user + password: + from_secret: dockerhub_password + repo: pztrn/documize-ee + auto_tag: true diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b0ac4b2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM golang:1.15.2-alpine as build + +ENV DRONE_VERSION=1.9.1 + +RUN apk add -U --no-cache ca-certificates git build-base +RUN mkdir -p /src/drone && \ + cd /src/drone && \ + git clone https://github.com/drone/drone . && \ + git checkout -b v${DRONE_VERSION} +RUN cd /src/drone/cmd/drone-server && go build -tags "nolimit" -ldflags "-extldflags \"-static\"" -o drone-server + +FROM alpine:3.11 + +EXPOSE 80 443 +VOLUME /data + +RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf + +ENV GODEBUG netdns=go +ENV XDG_CACHE_HOME /data +ENV DRONE_DATABASE_DRIVER sqlite3 +ENV DRONE_DATABASE_DATASOURCE /data/database.sqlite +ENV DRONE_RUNNER_OS=linux +ENV DRONE_RUNNER_ARCH=amd64 +ENV DRONE_SERVER_PORT=:80 +ENV DRONE_SERVER_HOST=localhost +ENV DRONE_DATADOG_ENABLED=false + +COPY --from=build /src/drone/cmd/drone-server/drone-server /bin/ +COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ + +ENTRYPOINT ["/bin/drone-server"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..d2a3921 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Drone without limits + +This repository contains everything that is need to build a Docker image with [drone](https://drone.io) Enterprise version without limits like build numbers. It is completely identical to official ones, e.g. using Alpine Linux and exports same environment variables by default (except Datatog). Runners that are built by Drone team can e safely used with this image. + +The reason this image appeared is that official Drone image is already on Enterprise version but with limits applied, which isn't good for me, as I am individual and able to use Enterprise version for free and without limits. + +## THE GREAT WARNING + +Not all types of users are allowed to use this image, please consult with [drone documentation](https://docs.drone.io/enterprise/) first! + +At the moment of last commit and build only these types of users are allowed to use this image: + +1. Individuals who uses Drone without commercialization. +2. Students. +3. Organizations with under $1 million US dollars in annual gross revenue and less than $5 million in debt or equity funding. + +Otherwise please use official Drone image from [Docker Hub](https://hub.docker.com/r/drone/drone) or [build open source edition by yourself](https://docs.drone.io/enterprise/#where-do-i-download-the-open-source-edition). Differences between Enterprise and Open Source editions are available [here](https://docs.drone.io/enterprise/#what-is-the-difference-between-open-source-and-enterprise). + +## Installation and usage + +This image can be used and configured according to [official Drone documentation](https://docs.drone.io/).