File tree Expand file tree Collapse file tree 5 files changed +26
-0
lines changed
Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,9 @@ ARG PROXY_PORT
5656ARG PROXY_USER_NAME
5757ARG PROXY_PASSWORD
5858
59+ # Access Key for Custom Dictionary and Style Guide API
60+ ARG ACCESS_KEY
61+
5962ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
6063ENV PRODUCTS=${PRODUCTS}
6164ENV LANGUAGES=${LANGUAGES}
@@ -94,6 +97,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
9497ENV ENABLE_USER_ACTION_STATISTIC=false
9598ENV ENABLE_REQUEST_VALIDATION=false
9699
100+ ENV ACCESS_KEY=${ACCESS_KEY}
101+
97102RUN apt-get update && \
98103 apt-get upgrade -y perl && \
99104 apt-get install -y --no-install-recommends nginx default-jre wget && \
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ ARG PROXY_PORT
5454ARG PROXY_USER_NAME
5555ARG PROXY_PASSWORD
5656
57+ # Access Key for Custom Dictionary and Style Guide API
58+ ARG ACCESS_KEY
59+
5760ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
5861ENV PRODUCTS=${PRODUCTS}
5962ENV LANGUAGES=${LANGUAGES}
@@ -92,6 +95,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
9295ENV ENABLE_USER_ACTION_STATISTIC=false
9396ENV ENABLE_REQUEST_VALIDATION=false
9497
98+ ENV ACCESS_KEY=${ACCESS_KEY}
99+
95100RUN yum update -y --skip-broken && \
96101 yum install -y epel-release && \
97102 yum install -y nginx \
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ ARG PROXY_PORT
5454ARG PROXY_USER_NAME
5555ARG PROXY_PASSWORD
5656
57+ # Access Key for Custom Dictionary and Style Guide API
58+ ARG ACCESS_KEY
59+
5760ENV FILE_OWNER=${USER_ID}:${GROUP_ID}
5861ENV PRODUCTS=${PRODUCTS}
5962ENV LANGUAGES=${LANGUAGES}
@@ -92,6 +95,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
9295ENV ENABLE_USER_ACTION_STATISTIC=false
9396ENV ENABLE_REQUEST_VALIDATION=false
9497
98+ ENV ACCESS_KEY=${ACCESS_KEY}
99+
95100RUN 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 \
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ ARG PROXY_PORT
3434ARG PROXY_USER_NAME
3535ARG PROXY_PASSWORD
3636
37+ # Access Key for Custom Dictionary and Style Guide API
38+ ARG ACCESS_KEY
39+
3740ENV PROTOCOL=${PROTOCOL}
3841ENV DOMAIN_NAME=${DOMAIN_NAME}
3942ENV WEB_PORT=${WEB_PORT}
@@ -60,6 +63,8 @@ ENV ENABLE_REQUEST_STATISTIC=false
6063ENV ENABLE_USER_ACTION_STATISTIC=false
6164ENV ENABLE_REQUEST_VALIDATION=false
6265
66+ ENV ACCESS_KEY=${ACCESS_KEY}
67+
6368RUN apt-get update && apt-get install -y --no-install-recommends wget
6469
6570RUN if [ -z $(egrep -i "^${USER_NAME}" /etc/group) ]; then \
Original file line number Diff line number Diff line change 1010configureAppServerParams();
1111configureDatabase();
1212configureProxyParams();
13+ configureAccessKey();
1314
1415sub 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+
145151sub replaceFileContent
146152{
147153 my ($pairs , $path ) = @_ ;
You can’t perform that action at this time.
0 commit comments