Merge branch 'master' of /home/administrator/utils/gitea/git/repositories/willaengine-project/willaengine
commit
118f1c733e
@ -0,0 +1,21 @@
|
|||||||
|
FROM dfs1368/laravel-php-fpm:7.4
|
||||||
|
|
||||||
|
WORKDIR /var/www
|
||||||
|
|
||||||
|
RUN apt install -y sendmail libpng-dev
|
||||||
|
RUN docker-php-ext-install gd
|
||||||
|
RUN echo 'memory_limit = -1' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini;
|
||||||
|
|
||||||
|
COPY database /var/www/database
|
||||||
|
COPY composer.* /var/www/
|
||||||
|
|
||||||
|
RUN composer install --no-scripts
|
||||||
|
|
||||||
|
COPY . /var/www
|
||||||
|
|
||||||
|
RUN chown -R www-data:www-data \
|
||||||
|
/var/www/public \
|
||||||
|
/var/www/storage \
|
||||||
|
/var/www/bootstrap/cache
|
||||||
|
|
||||||
|
RUN php artisan optimize
|
@ -0,0 +1,26 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
node {
|
||||||
|
label 'willa'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('build') {
|
||||||
|
steps {
|
||||||
|
sh ' docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .'
|
||||||
|
sh 'cd /home/administrator/apps/$IMAGE_NAME/;./BuildDocker'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('deploy') {
|
||||||
|
steps {
|
||||||
|
sh 'cd /home/administrator/apps/$IMAGE_NAME/ ; docker-compose up -d'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
environment {
|
||||||
|
IMAGE_NAME = 'karmmania'
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue