-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
download and decompress feature completed
- Loading branch information
1 parent
c5d3be6
commit 3b8d42b
Showing
6 changed files
with
87 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#### | ||
# This file is a Example file, mount other file on this one inside container when deploy | ||
|
||
quarkus: | ||
http: | ||
port: 8080 | ||
read-timeout: 30m | ||
limits: | ||
max-body-size: 500M | ||
container-image: | ||
builder: docker | ||
vertx: | ||
prefer-native-transport: true | ||
native: | ||
additional-build-args: |- | ||
-H:ResourceConfigurationFiles=resources-config.json | ||
-H:ReflectionConfigurationFiles=reflection-config.json | ||
# Logging (disable console on prod) | ||
log: | ||
level: INFO | ||
category: | ||
"org.commonjava.util.sidecar": | ||
level: DEBUG | ||
console: | ||
level: DEBUG | ||
enable: true | ||
file: | ||
enable: true | ||
path: "log/sidecar.log" | ||
level: DEBUG | ||
format: "%d{HH:mm:ss} %-5p [%c{2.}] (%t) %s%e%n" | ||
rotation: | ||
max-backup-index: 5 | ||
max-file-size: 10M | ||
|
||
honeycomb: | ||
enabled: false | ||
dataset: indy-sidecar-test | ||
write-key: test | ||
base-sample-rate: 20 | ||
functions: |- | ||
/api/content/.*|sidecar.content|20, | ||
/api/folo/admin/.*|sidecar.folo.admin|1, | ||
/api/folo/track/.*|sidecar.folo.content|1 | ||
sidecar: | ||
archive-api: http://localhost:8081/api/archive | ||
local-repository: ${user.home}/preSeedRepo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import urllib.request | ||
import shutil | ||
import os | ||
|
||
def download_archive(url,repository): | ||
archive_name = "/" + os.environ.get('BUILD_ID') + '.zip' | ||
|
||
with urllib.request.urlopen(url) as response, open(repository + archive_name, 'wb') as out_file: | ||
shutil.copyfileobj(response, out_file) | ||
|
||
shutil.unpack_archive(repository + archive_name, repository) |