docker
This commit is contained in:
151
.editorconfig
Normal file
151
.editorconfig
Normal file
@@ -0,0 +1,151 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
# ij_continuation_indent_size = 8
|
||||
# ij_formatter_off_tag = @formatter:off
|
||||
# ij_formatter_on_tag = @formatter:on
|
||||
# ij_formatter_tags_enabled = true
|
||||
# ij_smart_tabs = false
|
||||
# ij_visual_guides =
|
||||
# ij_wrap_on_typing = false
|
||||
|
||||
[*.css]
|
||||
# ij_css_align_closing_brace_with_properties = false
|
||||
# ij_css_blank_lines_around_nested_selector = 1
|
||||
# ij_css_blank_lines_between_blocks = 1
|
||||
# ij_css_block_comment_add_space = false
|
||||
# ij_css_brace_placement = end_of_line
|
||||
# ij_css_enforce_quotes_on_format = false
|
||||
# ij_css_hex_color_long_format = false
|
||||
# ij_css_hex_color_lower_case = false
|
||||
# ij_css_hex_color_short_format = false
|
||||
# ij_css_hex_color_upper_case = false
|
||||
# ij_css_keep_blank_lines_in_code = 2
|
||||
# ij_css_keep_indents_on_empty_lines = false
|
||||
# ij_css_keep_single_line_blocks = false
|
||||
# ij_css_properties_order = font,font-family,font-size,font-weight,font-style,font-variant,font-size-adjust,font-stretch,line-height,position,z-index,top,right,bottom,left,display,visibility,float,clear,overflow,overflow-x,overflow-y,clip,zoom,align-content,align-items,align-self,flex,flex-flow,flex-basis,flex-direction,flex-grow,flex-shrink,flex-wrap,justify-content,order,box-sizing,width,min-width,max-width,height,min-height,max-height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,table-layout,empty-cells,caption-side,border-spacing,border-collapse,list-style,list-style-position,list-style-type,list-style-image,content,quotes,counter-reset,counter-increment,resize,cursor,user-select,nav-index,nav-up,nav-right,nav-down,nav-left,transition,transition-delay,transition-timing-function,transition-duration,transition-property,transform,transform-origin,animation,animation-name,animation-duration,animation-play-state,animation-timing-function,animation-delay,animation-iteration-count,animation-direction,text-align,text-align-last,vertical-align,white-space,text-decoration,text-emphasis,text-emphasis-color,text-emphasis-style,text-emphasis-position,text-indent,text-justify,letter-spacing,word-spacing,text-outline,text-transform,text-wrap,text-overflow,text-overflow-ellipsis,text-overflow-mode,word-wrap,word-break,tab-size,hyphens,pointer-events,opacity,color,border,border-width,border-style,border-color,border-top,border-top-width,border-top-style,border-top-color,border-right,border-right-width,border-right-style,border-right-color,border-bottom,border-bottom-width,border-bottom-style,border-bottom-color,border-left,border-left-width,border-left-style,border-left-color,border-radius,border-top-left-radius,border-top-right-radius,border-bottom-right-radius,border-bottom-left-radius,border-image,border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat,outline,outline-width,outline-style,outline-color,outline-offset,background,background-color,background-image,background-repeat,background-attachment,background-position,background-position-x,background-position-y,background-clip,background-origin,background-size,box-decoration-break,box-shadow,text-shadow
|
||||
# ij_css_space_after_colon = true
|
||||
# ij_css_space_before_opening_brace = true
|
||||
# ij_css_use_double_quotes = true
|
||||
# ij_css_value_alignment = do_not_align
|
||||
|
||||
[*.pp]
|
||||
# ij_continuation_indent_size = 2
|
||||
# ij_puppet_keep_indents_on_empty_lines = false
|
||||
|
||||
[{*.bash,*.sh,*.zsh}]
|
||||
# ij_shell_binary_ops_start_line = false
|
||||
# ij_shell_keep_column_alignment_padding = false
|
||||
# ij_shell_minify_program = false
|
||||
# ij_shell_redirect_followed_by_space = false
|
||||
# ij_shell_switch_cases_indented = false
|
||||
# ij_shell_use_unix_line_separator = true
|
||||
|
||||
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,jest.config}]
|
||||
# ij_json_array_wrapping = split_into_lines
|
||||
# ij_json_keep_blank_lines_in_code = 0
|
||||
# ij_json_keep_indents_on_empty_lines = false
|
||||
# ij_json_keep_line_breaks = true
|
||||
# ij_json_keep_trailing_comma = false
|
||||
# ij_json_object_wrapping = split_into_lines
|
||||
# ij_json_property_alignment = do_not_align
|
||||
# ij_json_space_after_colon = true
|
||||
# ij_json_space_after_comma = true
|
||||
# ij_json_space_before_colon = false
|
||||
# ij_json_space_before_comma = false
|
||||
# ij_json_spaces_within_braces = false
|
||||
# ij_json_spaces_within_brackets = false
|
||||
# ij_json_wrap_long_lines = false
|
||||
|
||||
[{*.markdown,*.md}]
|
||||
# ij_markdown_force_one_space_after_blockquote_symbol = true
|
||||
# ij_markdown_force_one_space_after_header_symbol = true
|
||||
# ij_markdown_force_one_space_after_list_bullet = true
|
||||
# ij_markdown_force_one_space_between_words = true
|
||||
# ij_markdown_format_tables = true
|
||||
# ij_markdown_insert_quote_arrows_on_wrap = true
|
||||
# ij_markdown_keep_indents_on_empty_lines = false
|
||||
# ij_markdown_keep_line_breaks_inside_text_blocks = true
|
||||
# ij_markdown_max_lines_around_block_elements = 1
|
||||
# ij_markdown_max_lines_around_header = 1
|
||||
# ij_markdown_max_lines_between_paragraphs = 1
|
||||
# ij_markdown_min_lines_around_block_elements = 1
|
||||
# ij_markdown_min_lines_around_header = 1
|
||||
# ij_markdown_min_lines_between_paragraphs = 1
|
||||
# ij_markdown_wrap_text_if_long = true
|
||||
# ij_markdown_wrap_text_inside_blockquotes = true
|
||||
|
||||
[{*.py,*.pyw}]
|
||||
# ij_python_align_collections_and_comprehensions = true
|
||||
# ij_python_align_multiline_imports = true
|
||||
# ij_python_align_multiline_parameters = true
|
||||
# ij_python_align_multiline_parameters_in_calls = true
|
||||
# ij_python_blank_line_at_file_end = true
|
||||
# ij_python_blank_lines_after_imports = 1
|
||||
# ij_python_blank_lines_after_local_imports = 0
|
||||
# ij_python_blank_lines_around_class = 1
|
||||
# ij_python_blank_lines_around_method = 1
|
||||
# ij_python_blank_lines_around_top_level_classes_functions = 2
|
||||
# ij_python_blank_lines_before_first_method = 0
|
||||
# ij_python_call_parameters_new_line_after_left_paren = false
|
||||
# ij_python_call_parameters_right_paren_on_new_line = false
|
||||
# ij_python_call_parameters_wrap = normal
|
||||
# ij_python_dict_alignment = 0
|
||||
# ij_python_dict_new_line_after_left_brace = false
|
||||
# ij_python_dict_new_line_before_right_brace = false
|
||||
# ij_python_dict_wrapping = 1
|
||||
# ij_python_from_import_new_line_after_left_parenthesis = false
|
||||
# ij_python_from_import_new_line_before_right_parenthesis = false
|
||||
# ij_python_from_import_parentheses_force_if_multiline = false
|
||||
# ij_python_from_import_trailing_comma_if_multiline = false
|
||||
# ij_python_from_import_wrapping = 1
|
||||
# ij_python_hang_closing_brackets = false
|
||||
# ij_python_keep_blank_lines_in_code = 1
|
||||
# ij_python_keep_blank_lines_in_declarations = 1
|
||||
# ij_python_keep_indents_on_empty_lines = false
|
||||
# ij_python_keep_line_breaks = true
|
||||
# ij_python_method_parameters_new_line_after_left_paren = false
|
||||
# ij_python_method_parameters_right_paren_on_new_line = false
|
||||
# ij_python_method_parameters_wrap = normal
|
||||
# ij_python_new_line_after_colon = false
|
||||
# ij_python_new_line_after_colon_multi_clause = true
|
||||
# ij_python_optimize_imports_always_split_from_imports = false
|
||||
# ij_python_optimize_imports_case_insensitive_order = false
|
||||
# ij_python_optimize_imports_join_from_imports_with_same_source = false
|
||||
# ij_python_optimize_imports_sort_by_type_first = true
|
||||
# ij_python_optimize_imports_sort_imports = true
|
||||
# ij_python_optimize_imports_sort_names_in_from_imports = false
|
||||
# ij_python_space_after_comma = true
|
||||
# ij_python_space_after_number_sign = true
|
||||
# ij_python_space_after_py_colon = true
|
||||
# ij_python_space_before_backslash = true
|
||||
# ij_python_space_before_comma = false
|
||||
# ij_python_space_before_for_semicolon = false
|
||||
# ij_python_space_before_lbracket = false
|
||||
# ij_python_space_before_method_call_parentheses = false
|
||||
# ij_python_space_before_method_parentheses = false
|
||||
# ij_python_space_before_number_sign = true
|
||||
# ij_python_space_before_py_colon = false
|
||||
# ij_python_space_within_empty_method_call_parentheses = false
|
||||
# ij_python_space_within_empty_method_parentheses = false
|
||||
# ij_python_spaces_around_additive_operators = true
|
||||
# ij_python_spaces_around_assignment_operators = true
|
||||
# ij_python_spaces_around_bitwise_operators = true
|
||||
# ij_python_spaces_around_eq_in_keyword_argument = false
|
||||
# ij_python_spaces_around_eq_in_named_parameter = false
|
||||
# ij_python_spaces_around_equality_operators = true
|
||||
# ij_python_spaces_around_multiplicative_operators = true
|
||||
# ij_python_spaces_around_power_operator = true
|
||||
# ij_python_spaces_around_relational_operators = true
|
||||
# ij_python_spaces_around_shift_operators = true
|
||||
# ij_python_spaces_within_braces = false
|
||||
# ij_python_spaces_within_brackets = false
|
||||
# ij_python_spaces_within_method_call_parentheses = false
|
||||
# ij_python_spaces_within_method_parentheses = false
|
||||
# ij_python_use_continuation_indent_for_arguments = false
|
||||
# ij_python_use_continuation_indent_for_collection_and_comprehensions = false
|
||||
# ij_python_use_continuation_indent_for_parameters = true
|
||||
# ij_python_wrap_long_lines = false
|
||||
|
||||
[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}]
|
||||
# ij_toml_keep_indents_on_empty_lines = false
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,3 +8,4 @@ user.db
|
||||
*.exe
|
||||
/venv/
|
||||
config.json
|
||||
.editorconfig
|
||||
@@ -17,7 +17,7 @@ include:
|
||||
- template: Security/Dependency-Scanning.gitlab-ci.yml
|
||||
- template: Security/SAST-IaC.gitlab-ci.yml
|
||||
|
||||
unittest:
|
||||
pytest:
|
||||
stage: 'test'
|
||||
image: python
|
||||
only:
|
||||
@@ -88,3 +88,21 @@ push:
|
||||
script:
|
||||
- ssh $BOT_HOST -oStrictHostKeyChecking=accept-new 'cd /opt/discord/tarkov && git pull'
|
||||
|
||||
default:
|
||||
image: docker:25.0.5
|
||||
services:
|
||||
- docker:25.0.5-dind
|
||||
before_script:
|
||||
- docker info
|
||||
|
||||
variables:
|
||||
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
|
||||
build:
|
||||
stage: build
|
||||
needs: [ 'pytest' ]
|
||||
script:
|
||||
- docker build -t disord-bot-pisya .
|
||||
|
||||
|
||||
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM python:latest
|
||||
LABEL authors="bacon"
|
||||
WORKDIR /app
|
||||
COPY requirements.txt /app
|
||||
RUN apt-get update && apt-get install ffmpeg -y
|
||||
RUN python3 -m venv venv/
|
||||
CMD source venv/bin/activate
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
COPY src/ /app
|
||||
ENTRYPOINT ["python", "bot.py"]
|
||||
0
docker-compose.yml
Normal file
0
docker-compose.yml
Normal file
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
@@ -27,7 +27,7 @@ class Audio(commands.Cog, name='Audio'):
|
||||
logger.info('Skip playing by Game')
|
||||
else:
|
||||
# Prepare list of audio
|
||||
from src.integral_lib.Comands import read_json
|
||||
from integral_lib.Comands import read_json
|
||||
_role = await read_json(member.guild.id, 'tigger_role')
|
||||
audio: list = []
|
||||
for _a in ListGenerator('audio'):
|
||||
|
||||
Reference in New Issue
Block a user