Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-voronko committed Mar 4, 2024
2 parents d76f0ba + c93b00d commit f045cb8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ ARG PROXY_PORT
ARG PROXY_USER_NAME
ARG PROXY_PASSWORD

# Access Key for Custom Dictionary and Style Guide API
ARG ACCESS_KEY

ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
ENV PRODUCTS=${PRODUCTS}
ENV LANGUAGES=${LANGUAGES}
Expand Down Expand Up @@ -94,6 +97,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
ENV ENABLE_USER_ACTION_STATISTIC=false
ENV ENABLE_REQUEST_VALIDATION=false

ENV ACCESS_KEY=${ACCESS_KEY}

RUN apt-get update && \
apt-get upgrade -y perl && \
apt-get install -y --no-install-recommends nginx default-jre wget && \
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ ARG PROXY_PORT
ARG PROXY_USER_NAME
ARG PROXY_PASSWORD

# Access Key for Custom Dictionary and Style Guide API
ARG ACCESS_KEY

ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
ENV PRODUCTS=${PRODUCTS}
ENV LANGUAGES=${LANGUAGES}
Expand Down Expand Up @@ -92,6 +95,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
ENV ENABLE_USER_ACTION_STATISTIC=false
ENV ENABLE_REQUEST_VALIDATION=false

ENV ACCESS_KEY=${ACCESS_KEY}

RUN yum update -y --skip-broken && \
yum install -y epel-release && \
yum install -y nginx \
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.redhat
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ ARG PROXY_PORT
ARG PROXY_USER_NAME
ARG PROXY_PASSWORD

# Access Key for Custom Dictionary and Style Guide API
ARG ACCESS_KEY

ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
ENV PRODUCTS=${PRODUCTS}
ENV LANGUAGES=${LANGUAGES}
Expand Down Expand Up @@ -92,6 +95,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
ENV ENABLE_USER_ACTION_STATISTIC=false
ENV ENABLE_REQUEST_VALIDATION=false

ENV ACCESS_KEY=${ACCESS_KEY}

RUN yum update -y --skip-broken && \
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
yum install -y nginx \
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile.ubuntu-prebuilt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ ARG PROXY_PORT
ARG PROXY_USER_NAME
ARG PROXY_PASSWORD

# Access Key for Custom Dictionary and Style Guide API
ARG ACCESS_KEY

ENV PROTOCOL=${PROTOCOL}
ENV DOMAIN_NAME=${DOMAIN_NAME}
ENV WEB_PORT=${WEB_PORT}
Expand All @@ -60,6 +63,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
ENV ENABLE_USER_ACTION_STATISTIC=false
ENV ENABLE_REQUEST_VALIDATION=false

ENV ACCESS_KEY=${ACCESS_KEY}

RUN apt-get update && apt-get install -y --no-install-recommends wget

RUN if [ -z $(egrep -i "^${USER_NAME}" /etc/group) ]; then \
Expand Down
6 changes: 6 additions & 0 deletions files/configureFiles.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
configureAppServerParams();
configureDatabase();
configureProxyParams();
configureAccessKey();

sub configureSamplesAndVirtualDir
{
Expand Down Expand Up @@ -142,6 +143,11 @@ sub configureProxyParams
replaceXmlValues(\%tags, $server_config_path);
}

sub configureAccessKey()
{
replaceXmlValues({ 'AccessKey' => $ENV{'ACCESS_KEY'} }, $server_config_path);
}

sub replaceFileContent
{
my ($pairs, $path) = @_;
Expand Down

0 comments on commit f045cb8

Please sign in to comment.