Initial commit with version 1.9.1.

This commit is contained in:
Stanislav Nikitin 2020-09-20 15:06:44 +05:00
commit 6e0c794f08
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
3 changed files with 68 additions and 0 deletions

15
.drone.yml Normal file
View File

@ -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

32
Dockerfile Normal file
View File

@ -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"]

21
README.md Normal file
View File

@ -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/).