pd1_tools 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/avmtrf1/git/push_large/lfs_commit/push.rb +2 -2
- data/lib/avmtrf1/git/push_large/lfs_commit/track_large_files.rb +4 -3
- data/lib/avmtrf1/git/push_large/source_commit/push.rb +2 -2
- data/lib/avmtrf1/tools/runner.rb +1 -3
- data/lib/pd1_tools/version.rb +1 -1
- data/template/pd1_tools/php/docker_images/base/Dockerfile.template +6 -5
- data/template/pd1_tools/php/docker_images/base/aux/setup_apache_sites.sh +2 -0
- data/template/pd1_tools/php/docker_images/base/aux/templates/apache_site_commons.conf +12 -0
- data/template/pd1_tools/php/docker_images/base/aux/templates/apache_site_nossl.conf +1 -10
- data/template/pd1_tools/php/docker_images/base/aux/templates/apache_site_ssl.conf +1 -10
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a111980c747031f68b2c39fcbf051c5c3463645061b3198e7d8ea7fc627f240d
|
4
|
+
data.tar.gz: e7ce309ec2c8bb26c938ced74e45e50d8a78f3b28c871eca60ee9481b3ce4c9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f09bc45b2ad88e40be7d72bc4836d700b4e19f7c481d1c3735aeb1d443fb6ffc766b3bf39eaac2694319297e5dc282cd14b1dde10fcf3f5183613c27d2ac6f8b
|
7
|
+
data.tar.gz: e879bfa81995317485ea7af8e53b98207aa653675a39fced160e8e59dab645fa21dab6b43e475ba837a188b9f9a45d582ce9b3dcf447d3afa42ba37e912fa7a6
|
@@ -5,12 +5,12 @@ module Avmtrf1
|
|
5
5
|
class PushLarge
|
6
6
|
class LfsCommit
|
7
7
|
module Push
|
8
|
-
private
|
9
|
-
|
10
8
|
PACK_ERROR_MESSAGE = 'pack exceeds maximum allowed size'
|
11
9
|
PACK_ERROR_TRUE = 'true'
|
12
10
|
PACK_ERROR_FALSE = 'false'
|
13
11
|
|
12
|
+
private
|
13
|
+
|
14
14
|
def push_ok_uncached
|
15
15
|
commit
|
16
16
|
fresh_push if push_pack_error_cache.read.blank?
|
@@ -5,13 +5,13 @@ module Avmtrf1
|
|
5
5
|
class PushLarge
|
6
6
|
class LfsCommit
|
7
7
|
module TrackLargeFiles
|
8
|
-
private
|
9
|
-
|
10
8
|
EXTENSIONS_REQUIRED_TO_TRACK = %w[
|
11
9
|
bak bkp bmp bpm cfm chm dat db doc fla flv gz jar log mp3 mp4 otf pdf ppt psd rar rtf
|
12
10
|
swf ttf wav wmf wmv wmz woff woff2 xmind z zip
|
13
11
|
].freeze
|
14
12
|
|
13
|
+
private
|
14
|
+
|
15
15
|
def track_large_files_uncached
|
16
16
|
cherry_pick_source_revision
|
17
17
|
if lfs_file_min_size.present?
|
@@ -40,7 +40,8 @@ module Avmtrf1
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def required_extesion_to_track?(file)
|
43
|
-
EXTENSIONS_REQUIRED_TO_TRACK.include?(::File.extname(file.path).gsub(/\A\./,
|
43
|
+
EXTENSIONS_REQUIRED_TO_TRACK.include?(::File.extname(file.path).gsub(/\A\./,
|
44
|
+
''))
|
44
45
|
end
|
45
46
|
|
46
47
|
def tracked_file?(file)
|
data/lib/avmtrf1/tools/runner.rb
CHANGED
@@ -18,9 +18,7 @@ module Avmtrf1
|
|
18
18
|
'Quando usando Selenium não mostra a interface gráfica do navegador web.'
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
::Avmtrf1::Tools.application
|
23
|
-
end
|
21
|
+
delegate :application, to: :'::Avmtrf1::Tools'
|
24
22
|
|
25
23
|
def run
|
26
24
|
::Aranha::Selenium::DriverFactory::Base.default_headless = parsed.headless?
|
data/lib/pd1_tools/version.rb
CHANGED
@@ -2,8 +2,12 @@ FROM php:%%PLATFORM_VERSION%%-apache
|
|
2
2
|
|
3
3
|
%%APT_SETUP%%
|
4
4
|
|
5
|
-
# Apache
|
5
|
+
# Apache HTTPD
|
6
|
+
RUN apt-get install -y ssl-cert
|
6
7
|
RUN a2enmod rewrite
|
8
|
+
RUN echo 'ServerTokens Prod' > /etc/apache2/conf-available/zzz_after.conf
|
9
|
+
RUN echo 'ServerSignature Off' >> /etc/apache2/conf-available/zzz_after.conf
|
10
|
+
RUN a2enconf zzz_after
|
7
11
|
|
8
12
|
# Extensão PHP "apcu"
|
9
13
|
%%APCU_INSTALL%%
|
@@ -104,13 +108,10 @@ RUN apt-get install -y git unzip
|
|
104
108
|
RUN curl -sS https://getcomposer.org/installer | \
|
105
109
|
php -- --install-dir=/usr/local/bin --filename=composer
|
106
110
|
|
107
|
-
# SSL
|
108
|
-
RUN apt-get install -y ssl-cert
|
109
|
-
|
110
111
|
# Inicializador
|
111
112
|
RUN mkdir '/aux'
|
112
113
|
RUN mkdir '/aux/eac-bash-lib'
|
113
|
-
RUN curl -sS https://codeload.github.com/esquilo-azul/eac-bash-lib/tar.gz/refs/tags/v0.
|
114
|
+
RUN curl -sS https://codeload.github.com/esquilo-azul/eac-bash-lib/tar.gz/refs/tags/v0.27.0 \
|
114
115
|
| tar -xzf - --strip-components 1 -C '/aux/eac-bash-lib'
|
115
116
|
ADD aux '/aux'
|
116
117
|
CMD '/aux/start.sh'
|
@@ -17,6 +17,8 @@ function setup_site() {
|
|
17
17
|
a2ensite "${2}"
|
18
18
|
}
|
19
19
|
|
20
|
+
export APACHE_SITE_COMMONS="$(template_apply "$TEMPLATES_ROOT/apache_site_commons.conf")"
|
21
|
+
|
20
22
|
infom "Configuração site Apache..."
|
21
23
|
setup_site 'apache_site_nossl' '000-default'
|
22
24
|
setup_site 'apache_site_ssl' 'default-ssl'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
DocumentRoot "%%DOCUMENT_ROOT%%"
|
2
|
+
|
3
|
+
ErrorLog ${APACHE_LOG_DIR}/error.log
|
4
|
+
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
5
|
+
|
6
|
+
<Directory %%DOCUMENT_ROOT%%>
|
7
|
+
Options Indexes FollowSymLinks
|
8
|
+
AllowOverride All
|
9
|
+
Require all granted
|
10
|
+
</Directory>
|
11
|
+
|
12
|
+
RedirectMatch 404 /\.
|
@@ -1,12 +1,3 @@
|
|
1
1
|
<VirtualHost *:80>
|
2
|
-
|
3
|
-
|
4
|
-
ErrorLog ${APACHE_LOG_DIR}/error.log
|
5
|
-
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
6
|
-
|
7
|
-
<Directory %%DOCUMENT_ROOT%%>
|
8
|
-
Options Indexes FollowSymLinks
|
9
|
-
AllowOverride All
|
10
|
-
Require all granted
|
11
|
-
</Directory>
|
2
|
+
%%APACHE_SITE_COMMONS%%
|
12
3
|
</VirtualHost>
|
@@ -3,14 +3,5 @@
|
|
3
3
|
SSLCertificateFile "%%SSL_CERTIFICATE_FILE%%"
|
4
4
|
SSLCertificateKeyFile "%%SSL_CERTIFICATE_KEY_FILE%%"
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
ErrorLog ${APACHE_LOG_DIR}/error.log
|
9
|
-
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
10
|
-
|
11
|
-
<Directory %%DOCUMENT_ROOT%%>
|
12
|
-
Options Indexes FollowSymLinks
|
13
|
-
AllowOverride All
|
14
|
-
Require all granted
|
15
|
-
</Directory>
|
6
|
+
%%APACHE_SITE_COMMONS%%
|
16
7
|
</VirtualHost>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pd1_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.48.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo H. Bogoni
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|
@@ -543,6 +543,7 @@ files:
|
|
543
543
|
- template/pd1_tools/php/docker_images/base/aux/setup_apache_modules.sh
|
544
544
|
- template/pd1_tools/php/docker_images/base/aux/setup_apache_sites.sh
|
545
545
|
- template/pd1_tools/php/docker_images/base/aux/start.sh
|
546
|
+
- template/pd1_tools/php/docker_images/base/aux/templates/apache_site_commons.conf
|
546
547
|
- template/pd1_tools/php/docker_images/base/aux/templates/apache_site_nossl.conf
|
547
548
|
- template/pd1_tools/php/docker_images/base/aux/templates/apache_site_ssl.conf
|
548
549
|
- template/pd1_tools/php/docker_images/base/aux/variables.sh
|