Compare commits
No commits in common. "master" and "1.13.0-2" have entirely different histories.
39
.drone.yml
39
.drone.yml
@ -4,12 +4,39 @@ type: docker
|
|||||||
name: build
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: notify-start
|
||||||
image: code.pztrn.name/containers/mirror/plugins/docker:20.13.0
|
image: pztrn/discordrone
|
||||||
settings:
|
settings:
|
||||||
registry: code.pztrn.name
|
webhook_id:
|
||||||
username: drone
|
from_secret: discord_webhook_id
|
||||||
|
webhook_token:
|
||||||
|
from_secret: discord_webhook_secret
|
||||||
|
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: dockerhub_user
|
||||||
password:
|
password:
|
||||||
from_secret: drone_secret
|
from_secret: dockerhub_password
|
||||||
repo: code.pztrn.name/containers/rainloop
|
repo: pztrn/rainloop
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
|
|
||||||
|
- name: notify-end
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
image: pztrn/discordrone
|
||||||
|
settings:
|
||||||
|
webhook_id:
|
||||||
|
from_secret: discord_webhook_id
|
||||||
|
webhook_token:
|
||||||
|
from_secret: discord_webhook_secret
|
||||||
|
message: "
|
||||||
|
{{#success build.status}}
|
||||||
|
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed.
|
||||||
|
{{ else }}
|
||||||
|
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
|
||||||
|
{{/success}}"
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
image: docker:19.03.13
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker:19.03.13-dind
|
|
||||||
|
|
||||||
variables:
|
|
||||||
DOCKER_HOST: tcp://docker:2375
|
|
||||||
DOCKER_TCP_PORT: 2375
|
|
||||||
DOCKER_TLS_CERTDIR: ""
|
|
||||||
LOCAL_REGISTRY_IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
|
|
||||||
LOCAL_REGISTRY_IMAGE_TAGGED: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
|
|
||||||
DOCKERHUB_IMAGE_LATEST: pztrn/rainloop:latest
|
|
||||||
DOCKERHUB_IMAGE_TAGGED: pztrn/rainloop:$CI_COMMIT_TAG
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
|
||||||
- docker login -u "$DOCKERHUB_USER" -p "$DOCKERHUB_PASSWORD"
|
|
||||||
- docker info
|
|
||||||
|
|
||||||
build-local-registry-latest:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
- docker build --pull -t $LOCAL_REGISTRY_IMAGE_LATEST .
|
|
||||||
- docker push $LOCAL_REGISTRY_IMAGE_LATEST
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
build-local-registry-version:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
- docker build --pull -t $LOCAL_REGISTRY_IMAGE_TAGGED .
|
|
||||||
- docker push $LOCAL_REGISTRY_IMAGE_TAGGED
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
build-dockerhub-latest:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
- docker build --pull -t $DOCKERHUB_IMAGE_LATEST .
|
|
||||||
- docker push $DOCKERHUB_IMAGE_LATEST
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
build-dockerhub-version:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
script:
|
|
||||||
- docker build --pull -t $DOCKERHUB_IMAGE_TAGGED .
|
|
||||||
- docker push $DOCKERHUB_IMAGE_TAGGED
|
|
||||||
only:
|
|
||||||
- tags
|
|
29
Dockerfile
29
Dockerfile
@ -1,28 +1,31 @@
|
|||||||
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
|
FROM alpine:3.11
|
||||||
|
|
||||||
# Install necessary things
|
# Install necessary things
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
nginx \
|
nginx \
|
||||||
php8-curl \
|
php7-curl \
|
||||||
php8-dom \
|
php7-dom \
|
||||||
php8-fpm \
|
php7-fpm \
|
||||||
php8-iconv \
|
php7-iconv \
|
||||||
php8-json \
|
php7-json \
|
||||||
php8-openssl \
|
php7-openssl \
|
||||||
php8-pdo_mysql \
|
php7-pdo_mysql \
|
||||||
php8-pdo_pgsql \
|
php7-pdo_pgsql \
|
||||||
php8-pdo_sqlite \
|
php7-pdo_sqlite \
|
||||||
php8-xml \
|
php7-xml \
|
||||||
s6 \
|
s6 \
|
||||||
unzip \
|
unzip \
|
||||||
wget && \
|
wget && \
|
||||||
rm /etc/php8/php-fpm.d/www.conf
|
rm /etc/nginx/conf.d/default.conf && \
|
||||||
|
rm /etc/php7/php-fpm.d/www.conf && \
|
||||||
|
mkdir /var/run/nginx && \
|
||||||
|
chown -R nginx:nginx /var/run/nginx
|
||||||
|
|
||||||
# Get rainloop.
|
# Get rainloop.
|
||||||
RUN mkdir -p /var/www/rainloop && \
|
RUN mkdir -p /var/www/rainloop && \
|
||||||
cd /var/www/rainloop && \
|
cd /var/www/rainloop && \
|
||||||
wget https://github.com/RainLoop/rainloop-webmail/releases/download/v1.16.0/rainloop-community-1.16.0.zip && \
|
wget https://github.com/RainLoop/rainloop-webmail/releases/download/v1.13.0/rainloop-community-1.13.0.zip && \
|
||||||
ls -la && \
|
ls -la && \
|
||||||
unzip rainloop-community-*.zip && \
|
unzip rainloop-community-*.zip && \
|
||||||
chown -R nginx:nginx /var/www/rainloop && \
|
chown -R nginx:nginx /var/www/rainloop && \
|
||||||
|
20
README.md
20
README.md
@ -11,23 +11,3 @@ If you're binding directory except of creating volume please do proper ``chown``
|
|||||||
```shell
|
```shell
|
||||||
chown -R 100:101 /dir/with/data
|
chown -R 100:101 /dir/with/data
|
||||||
```
|
```
|
||||||
|
|
||||||
## Use with docker-compose
|
|
||||||
|
|
||||||
You may use this image with docker-compose like that:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
version: "2.4"
|
|
||||||
|
|
||||||
services:
|
|
||||||
rainloop:
|
|
||||||
restart: always
|
|
||||||
image: "pztrn/rainloop:1.16.0"
|
|
||||||
volumes:
|
|
||||||
- "/root/rainloop/data:/var/www/rainloop/data"
|
|
||||||
ports:
|
|
||||||
- "5480:80"
|
|
||||||
cpus: 2
|
|
||||||
mem_limit: 1G
|
|
||||||
memswap_limit: 0
|
|
||||||
```
|
|
||||||
|
Loading…
Reference in New Issue
Block a user