Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install lftp #1771

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scheduler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Build container
FROM node:20.15.1-alpine AS builder

RUN apk update && apk add lftp && apk add busybox-extras
Dismissed Show dismissed Hide dismissed

# Set the working directory to /app inside the container
WORKDIR /app

Expand All @@ -19,6 +21,7 @@

# Deployment container
FROM node:20.15.1-alpine
RUN apk update && apk add lftp && apk add busybox-extras
Dismissed Show dismissed Hide dismissed
RUN npm cache clean --force

# Create and Assign permissions to npm folder
Expand All @@ -32,7 +35,7 @@

# Set environment variables
ENV DB_TYPE ${DB_TYPE}
ENV SCHEDULER_API_LOG_LEVEL ${SCHEDULER_API_LOG_LEVEL}

Check warning on line 38 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$SCHEDULER_API_LOG_LEVEL' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ENV SCHEDULER_API_TYPEORM_LOG_LEVEL ${SCHEDULER_API_TYPEORM_LOG_LEVEL}
ENV SCHEDULER_API_MAX_QUERY_EXECUTION_TIME_MS ${SCHEDULER_API_MAX_QUERY_EXECUTION_TIME_MS}
ENV SCHEDULER_API_MSSQL_MAX_CONNECTION ${SCHEDULER_API_MSSQL_MAX_CONNECTION}
Expand All @@ -40,14 +43,14 @@
ENV MSSQL_PORT ${MSSQL_PORT}
ENV MSSQL_DB ${MSSQL_DB}
ENV MSSQL_SA_USER ${MSSQL_SA_USER}
ENV MSSQL_SA_PASSWORD ${MSSQL_SA_PASSWORD}

Check warning on line 46 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$MSSQL_SA_PASSWORD' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ENV MSSQL_ENCRYPT ${MSSQL_ENCRYPT}
ENV KEYCLOAK_ISSUER_URL ${KEYCLOAK_ISSUER_URL}
ENV KEYCLOAK_AUDIENCE ${KEYCLOAK_AUDIENCE}

Check warning on line 49 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$KEYCLOAK_AUDIENCE' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ENV KEYCLOAK_IGNORE_EXP ${KEYCLOAK_IGNORE_EXP}
ENV OCIO_S3_ACCESSKEYID ${OCIO_S3_ACCESSKEYID}
ENV OCIO_S3_BUCKET ${OCIO_S3_BUCKET}
ENV OCIO_S3_PRESIGNED_URL_EXPIRY ${OCIO_S3_PRESIGNED_URL_EXPIRY}

Check warning on line 53 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV OCIO_S3_ENDPOINT ${OCIO_S3_ENDPOINT}
ENV OCIO_S3_KEY ${OCIO_S3_KEY}
ENV OCIO_S3_SECRETACCESSKEY ${OCIO_S3_SECRETACCESSKEY}
Expand All @@ -55,18 +58,18 @@
ENV TPS_PENDING_POLLING_INTERVAL ${TPS_PENDING_POLLING_INTERVAL}
ENV TPS_ERROR_POLLING_INTERVAL ${TPS_ERROR_POLLING_INTERVAL}
ENV TPS_MONITORING_POLLING_INTERVAL ${TPS_MONITORING_POLLING_INTERVAL}
ENV CFS_PRIVATE_KEY ${CFS_PRIVATE_KEY}

Check warning on line 61 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$CFS_PRIVATE_KEY' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ENV CFS_PRIVATE_KEY_PASSPHRASE ${CFS_PRIVATE_KEY_PASSPHRASE}

Check warning on line 62 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "CFS_PRIVATE_KEY_PASSPHRASE") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ENV CFS_SFTP_USERNAME ${CFS_SFTP_USERNAME}
ENV CFS_SFTP_HOST ${CFS_SFTP_HOST}
ENV CFS_SFTP_PORT ${CFS_SFTP_PORT}
ENV CFS_REMOTE_PATH ${CFS_REMOTE_PATH}
ENV ORBC_SERVICE_ACCOUNT_CLIENT_ID ${ORBC_SERVICE_ACCOUNT_CLIENT_ID}
ENV ORBC_SERVICE_ACCOUNT_CLIENT_SECRET ${ORBC_SERVICE_ACCOUNT_CLIENT_SECRET}

Check warning on line 68 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$ORBC_SERVICE_ACCOUNT_CLIENT_SECRET' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
ENV ORBC_SERVICE_ACCOUNT_TOKEN_URL ${ORBC_SERVICE_ACCOUNT_TOKEN_URL}

Check warning on line 69 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV ACCESS_API_URL ${ACCESS_API_URL}
ENV ISSUE_PERMIT_LIMIT ${ISSUE_PERMIT_LIMIT}

Check warning on line 71 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV DOC_GEN_LIMIT ${DOC_GEN_LIMIT}

Check warning on line 72 in scheduler/Dockerfile

View workflow job for this annotation

GitHub Actions / Builds (scheduler)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV PERMIT_SCHEDULE_POLLING_INTERVAL ${PERMIT_SCHEDULE_POLLING_INTERVAL}

# Copy production files from build
Expand Down
Loading