|
| 1 | +ARG INSTALL_BASE="mcr.microsoft.com/windows/servercore" |
| 2 | +ARG INSTALL_TAG="ltsc2016" |
| 3 | +ARG WINDOWS_VERSION="4.8-windowsservercore-ltsc2016" |
| 4 | +ARG WINDOWS_BASE="mcr.microsoft.com/dotnet/framework/aspnet" |
| 5 | + |
| 6 | +#FROM "${INSTALL_BASE}:${INSTALL_TAG}" AS downloader |
| 7 | +#ARG NEW_OPENIMIS_HOST |
| 8 | +#ENV NPM_CONFIG_LOGLEVEL info |
| 9 | +#ARG NODE_VERSION="10.16.3" |
| 10 | +#ARG ARCH="64" |
| 11 | + |
| 12 | + |
| 13 | +#SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] |
| 14 | +#WORKDIR C:/dl |
| 15 | +#ARG NODE_URL="https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-x${ARCH}.msi" |
| 16 | + |
| 17 | +## download node and build the front end |
| 18 | +#RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;\ |
| 19 | +# Invoke-WebRequest -Uri $Env:NODE_URL -OutFile nodejs.msi -UseBasicParsing;\ |
| 20 | +# Start-Process msiexec.exe -Wait -ArgumentList '/q /i nodejs.msi'; |
| 21 | +#RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;\ |
| 22 | +# Invoke-WebRequest -Uri https://classic.yarnpkg.com/latest.msi -OutFile yarn.msi -UseBasicParsing;\ |
| 23 | +# Start-Process msiexec.exe -Wait -ArgumentList '/q /i yarn.msi'; |
| 24 | + |
| 25 | +#COPY ./ C:/app |
| 26 | + |
| 27 | +#WORKDIR C:/app |
| 28 | +#RUN node openimis-config.js |
| 29 | +#RUN ./modules-installs.txt; |
| 30 | +#RUN yarn install --network-timeout 1000000 |
| 31 | +#RUN yarn build |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +FROM "${WINDOWS_BASE}:${WINDOWS_VERSION}" |
| 36 | +ARG OPENIMIS_VERSION="1.4.1" |
| 37 | +LABEL vendor="openIMIS"\ |
| 38 | + maintainer="Patrick Delcroix < [email protected]>"\ |
| 39 | + org.openimis.webapp.is-beta= \ |
| 40 | + org.openimis.webapp.is-production="" \ |
| 41 | + org.openimis.webapp.version="${OPENIMIS_VERSION}" |
| 42 | +ADD https://github.com/openimis/web_app_vb/releases/download/v${OPENIMIS_VERSION}/openIMIS_Web_App_x64_v${OPENIMIS_VERSION}.zip /temp/openIMIS.zip |
| 43 | +ADD "https://github.com/openimis/web_service_vb/releases/download/v1.2.1/openIMIS_Web_Services_v1.2.1.zip" /temp/Service.zip |
| 44 | +# ADD "https://github.com/openimis/policy_renewal_service_vb/releases/download/v1.2.0/ImisPolicyRenewalSetup.zip" /temp/Renewal.zip |
| 45 | +# ADD "https://github.com/openimis/assign_photo_service_vb/releases/download/v1.2.0/AssignPhotosSetup.zip" /temp/photo.zip |
| 46 | +# ADD "https://github.com/openimis/feedback_prompt_service_vb/releases/download/v1.2.0/ImisFeedbackPromptSetup.zip" /temp/feedback.zip |
| 47 | +ADD "https://github.com/shibayan/iislua/releases/download/v0.6.1/iislua_x64.msi" /temp/iislua_x64.msi |
| 48 | +ADD "https://go.microsoft.com/fwlink/?LinkID=615136" /temp/ARS.mis |
| 49 | +COPY script/configureConnectionStr.ps1 /temp/configureConnectionStr.ps1 |
| 50 | +COPY script/InstallopenIMIS.ps1 /temp/InstallopenIMIS.ps1 |
| 51 | +RUN powershell -Command /temp/InstallopenIMIS.ps1 $env:username;\ |
| 52 | + Start-Process msiexec.exe -Wait -ArgumentList '/q /i /temp/iislua_x64.msi'; |
| 53 | +RUN Start-Process msiexec.exe -Wait -ArgumentList '/q /i /temp/ars.msi'; |
| 54 | +#ADD https://github.com/openimis/openimis-fe_js/releases/download/v1.1.0/openIMIS_FE_v1.1.0.zip C:/temp/build.zip |
| 55 | +#RUN Expand-Archive -Path C:/temp/build.zip -DestinationPath C:/inetpub/wwwroot/openIMIS/front |
| 56 | + |
| 57 | +WORKDIR "/inetpub/wwwroot" |
| 58 | +#COPY --from=downloader /app/build /inetpub/wwwroot/openIMIS/front |
| 59 | + |
| 60 | +ENTRYPOINT ["powershell","-Command","C:\\temp\\configureConnectionStr.ps1"] |
0 commit comments