Skip to content

Commit f045cb8

Browse files
committed
Merge branch 'development'
2 parents d76f0ba + c93b00d commit f045cb8

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ ARG PROXY_PORT
5656
ARG PROXY_USER_NAME
5757
ARG PROXY_PASSWORD
5858

59+
# Access Key for Custom Dictionary and Style Guide API
60+
ARG ACCESS_KEY
61+
5962
ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
6063
ENV PRODUCTS=${PRODUCTS}
6164
ENV LANGUAGES=${LANGUAGES}
@@ -94,6 +97,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
9497
ENV ENABLE_USER_ACTION_STATISTIC=false
9598
ENV ENABLE_REQUEST_VALIDATION=false
9699

100+
ENV ACCESS_KEY=${ACCESS_KEY}
101+
97102
RUN apt-get update && \
98103
apt-get upgrade -y perl && \
99104
apt-get install -y --no-install-recommends nginx default-jre wget && \

Dockerfile.centos

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ ARG PROXY_PORT
5454
ARG PROXY_USER_NAME
5555
ARG PROXY_PASSWORD
5656

57+
# Access Key for Custom Dictionary and Style Guide API
58+
ARG ACCESS_KEY
59+
5760
ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
5861
ENV PRODUCTS=${PRODUCTS}
5962
ENV LANGUAGES=${LANGUAGES}
@@ -92,6 +95,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
9295
ENV ENABLE_USER_ACTION_STATISTIC=false
9396
ENV ENABLE_REQUEST_VALIDATION=false
9497

98+
ENV ACCESS_KEY=${ACCESS_KEY}
99+
95100
RUN yum update -y --skip-broken && \
96101
yum install -y epel-release && \
97102
yum install -y nginx \

Dockerfile.redhat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ ARG PROXY_PORT
5454
ARG PROXY_USER_NAME
5555
ARG PROXY_PASSWORD
5656

57+
# Access Key for Custom Dictionary and Style Guide API
58+
ARG ACCESS_KEY
59+
5760
ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
5861
ENV PRODUCTS=${PRODUCTS}
5962
ENV LANGUAGES=${LANGUAGES}
@@ -92,6 +95,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
9295
ENV ENABLE_USER_ACTION_STATISTIC=false
9396
ENV ENABLE_REQUEST_VALIDATION=false
9497

98+
ENV ACCESS_KEY=${ACCESS_KEY}
99+
95100
RUN yum update -y --skip-broken && \
96101
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
97102
yum install -y nginx \

Dockerfile.ubuntu-prebuilt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ ARG PROXY_PORT
3434
ARG PROXY_USER_NAME
3535
ARG PROXY_PASSWORD
3636

37+
# Access Key for Custom Dictionary and Style Guide API
38+
ARG ACCESS_KEY
39+
3740
ENV PROTOCOL=${PROTOCOL}
3841
ENV DOMAIN_NAME=${DOMAIN_NAME}
3942
ENV WEB_PORT=${WEB_PORT}
@@ -60,6 +63,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
6063
ENV ENABLE_USER_ACTION_STATISTIC=false
6164
ENV ENABLE_REQUEST_VALIDATION=false
6265

66+
ENV ACCESS_KEY=${ACCESS_KEY}
67+
6368
RUN apt-get update && apt-get install -y --no-install-recommends wget
6469

6570
RUN if [ -z $(egrep -i "^${USER_NAME}" /etc/group) ]; then \

files/configureFiles.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
configureAppServerParams();
1111
configureDatabase();
1212
configureProxyParams();
13+
configureAccessKey();
1314

1415
sub configureSamplesAndVirtualDir
1516
{
@@ -142,6 +143,11 @@ sub configureProxyParams
142143
replaceXmlValues(\%tags, $server_config_path);
143144
}
144145

146+
sub configureAccessKey()
147+
{
148+
replaceXmlValues({ 'AccessKey' => $ENV{'ACCESS_KEY'} }, $server_config_path);
149+
}
150+
145151
sub replaceFileContent
146152
{
147153
my ($pairs, $path) = @_;

0 commit comments

Comments
 (0)