Added agola CI
agola/fox-converter/Build image The run finished successfully
Details
agola/fox-converter/Build image The run finished successfully
Details
This commit is contained in:
parent
41145ab433
commit
d6cebd83a1
|
@ -0,0 +1,44 @@
|
|||
version: v0
|
||||
runs:
|
||||
- name: Build image
|
||||
docker_registries_auth:
|
||||
'mxfox.ru':
|
||||
username:
|
||||
from_variable: mxfoxDockerLogin
|
||||
password:
|
||||
from_variable: mxfoxDockerSecret
|
||||
tasks:
|
||||
- name: build docker image
|
||||
runtime:
|
||||
containers:
|
||||
- image: mxfox.ru/mxfox/docker-dind.buildx:latest
|
||||
privileged: true
|
||||
#shell: /busybox/sh
|
||||
working_dir: /workspace
|
||||
environment:
|
||||
DOCKERLOGIN:
|
||||
from_variable: mxfoxDockerLogin
|
||||
DOCKERPASS:
|
||||
from_variable: mxfoxDockerSecret
|
||||
steps:
|
||||
- clone:
|
||||
- run:
|
||||
name: buildX prepare
|
||||
command: buildx-bgstart.sh
|
||||
|
||||
- run:
|
||||
name: buildX build
|
||||
command: |
|
||||
case ${AGOLA_GIT_BRANCH} in
|
||||
master)
|
||||
export xBuildSuffix=" -t mxfox.ru/mxfox/fox-converter:master-${AGOLA_GIT_COMMITSHA:0:10} -t mxfox.ru/mxfox/fox-converter:latest --push"
|
||||
;;
|
||||
testing)
|
||||
export xBuildSuffix=" -t mxfox.ru/mxfox/fox-converter:test-${AGOLA_GIT_COMMITSHA:0:10} -t mxfox.ru/mxfox/fox-converter:test --push"
|
||||
;;
|
||||
*)
|
||||
export xBuildSuffix=""
|
||||
;;
|
||||
esac
|
||||
docker login mxfox.ru -u ${DOCKERLOGIN} -p ${DOCKERPASS}
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm . ${xBuildSuffix}
|
|
@ -0,0 +1,5 @@
|
|||
.buildpath
|
||||
.project
|
||||
.settings
|
||||
.git
|
||||
LICENSE
|
|
@ -0,0 +1,50 @@
|
|||
FROM ubuntu:21.10
|
||||
|
||||
ENV php_version=7.4
|
||||
|
||||
COPY . /tmp/
|
||||
|
||||
RUN apt-get update -y \
|
||||
&& apt-get install gnupg gnupg1 gnupg2 software-properties-common -y \
|
||||
&& apt-add-repository ppa:ondrej/php \
|
||||
&& apt-get update -y \
|
||||
&& apt-get install -y \
|
||||
python \
|
||||
wget \
|
||||
apache2 \
|
||||
cron \
|
||||
supervisor \
|
||||
php${php_version} \
|
||||
php${php_version}-curl \
|
||||
php${php_version}-zip \
|
||||
libxinerama1 \
|
||||
libdbus-1-3 \
|
||||
libgio-cil \
|
||||
libcairo-5c0 \
|
||||
libcups2 \
|
||||
libsm6 \
|
||||
libx11-xcb1 \
|
||||
default-jre \
|
||||
libreoffice \
|
||||
unoconv \
|
||||
&& apt-get purge gnupg gnupg1 gnupg2 software-properties-common -y \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /var/www/html/* \
|
||||
&& a2enmod rewrite \
|
||||
&& cp -r /tmp/rootfs/* / \
|
||||
&& rm -rf /tmp/rootfs \
|
||||
&& cp -R /tmp/* /var/www/html \
|
||||
&& cp -R /tmp/.[^.]* /var/www/html \
|
||||
&& cat /var/www/html/cron_tmp >> /etc/crontab \
|
||||
&& rm -f /var/www/html/cron_tmp \
|
||||
&& mkdir /var/www/html/files \
|
||||
&& chmod a+rwx /var/www/html/files \
|
||||
&& rm -rf /tmp/* \
|
||||
&& rm -rf /var/www/html/Dockerfile \
|
||||
&& rm -rf /var/www/html/.dockerignore \
|
||||
&& echo Complete
|
||||
EXPOSE 80
|
||||
CMD ["/usr/bin/supervisord"]
|
||||
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<VirtualHost *:80>
|
||||
# The ServerName directive sets the request scheme, hostname and port that
|
||||
# the server uses to identify itself. This is used when creating
|
||||
# redirection URLs. In the context of virtual hosts, the ServerName
|
||||
# specifies what hostname must appear in the request's Host: header to
|
||||
# match this virtual host. For the default virtual host (this file) this
|
||||
# value is not decisive as it is used as a last resort host regardless.
|
||||
# However, you must set it for any further virtual host explicitly.
|
||||
#ServerName www.example.com
|
||||
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
|
||||
<Directory /var/www/html>
|
||||
AllowOverride all
|
||||
</Directory>
|
||||
|
||||
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
||||
# error, crit, alert, emerg.
|
||||
# It is also possible to configure the loglevel for particular
|
||||
# modules, e.g.
|
||||
#LogLevel info ssl:warn
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
# For most configuration files from conf-available/, which are
|
||||
# enabled or disabled at a global level, it is possible to
|
||||
# include a line for only one particular virtual host. For example the
|
||||
# following line enables the CGI configuration for this host only
|
||||
# after it has been globally disabled with "a2disconf".
|
||||
#Include conf-available/serve-cgi-bin.conf
|
||||
</VirtualHost>
|
||||
|
||||
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|
Binary file not shown.
|
@ -0,0 +1,18 @@
|
|||
[supervisord]
|
||||
nodaemon=true
|
||||
|
||||
[program:apache2]
|
||||
command=/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND"
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
||||
[program:libreoffice]
|
||||
command=/usr/bin/libreoffice --nologo --headless --nofirststartwizard --accept='socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp'
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
||||
[program:cron]
|
||||
command=/usr/sbin/cron -f
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
|
@ -0,0 +1 @@
|
|||
Europe/Moscow
|
|
@ -0,0 +1 @@
|
|||
d18b1a34-fc80-48b1-9627-112c4d3cac6d
|
|
@ -0,0 +1 @@
|
|||
6a908e7e-55d2-4d39-a097-03f6eb71415a
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
a5f9ce75-7ce0-4dca-ae3d-cb51a740c407
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
6db34413-6e8f-4d20-851c-1fc8cb20ff7a
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
7e47d6c7-cf46-4659-a461-ce0c44a6c60a
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
4970daf4-22f8-42fe-8786-b616813bb9a3
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
5ea753b9-bbcc-467c-a8cb-ecbdaaaae903
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
748d7bac-c22a-4c72-a54e-6817a08958d3
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
21ea8a85-f1b4-41f7-8cb7-eb831815f4d9
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
3c40627f-3061-444e-a0c4-8afbf137c2d0
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
b2e13027-b5d8-4153-af60-bdfb08211f27
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
9d6b3140-7f54-411f-bb0a-aef70386aa20
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
6b507612-ab22-4eac-8e3a-f5e070c0d4d1
|
|
@ -0,0 +1 @@
|
|||
5ecb1845-6cc7-44eb-b914-8a1159618be1
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue