Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jun 25, 2023
1 parent 89bd8af commit 320fff8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion megalinter/descriptors/java.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ linters:
linter_rules_url: https://checkstyle.sourceforge.io/checks.html
linter_banner_image_url: https://checkstyle.sourceforge.io/images/header-checkstyle-logo.png
linter_rules_configuration_url: https://checkstyle.sourceforge.io/config.html#Overview
linter_rules_inline_disable_url: https://checkstyle.sourceforge.io/config_filters.html#SuppressionCommentFilter
linter_rules_inline_disable_url: https://checkstyle.sourceforge.io/filters/index.html
linter_megalinter_ref_url: https://checkstyle.sourceforge.io/index.html#Related_Tools_Active_Tools
config_file_name: sun_checks.xml
cli_executable: java
Expand Down
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ RUN PYTHONDONTWRITEBYTECODE=1 python /megalinter/setup.py install \

COPY server /server
COPY server/requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

6 changes: 4 additions & 2 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
https://medium.com/@mike.p.moritz/using-docker-compose-to-deploy-a-lightweight-python-rest-api-with-a-job-queue-37e6072a209b
DEV:
docker build -t megalinter-server:alpha --platform linux/amd64 -f server/Dockerfile-dev . && DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose -f server/docker-compose-dev.yml up
docker build -t megalinter-server:alpha --platform linux/amd64 -f server/Dockerfile-dev .
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose -f server/docker-compose-dev.yml up
TEST:
docker pull --platform linux/amd64 ghcr.io/oxsecurity/megalinter-server:alpha && DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose -f server/docker-compose.yml up
docker pull --platform linux/amd64 ghcr.io/oxsecurity/megalinter-server:alpha
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose -f server/docker-compose.yml up
'''
import logging
Expand Down

0 comments on commit 320fff8

Please sign in to comment.