From 1acdd8f532d5b025c81e727d6082bb7d232e626f Mon Sep 17 00:00:00 2001 From: Eric Schoville <eric.schoville@wisc.edu> Date: Fri, 10 Jan 2020 11:56:27 -0600 Subject: [PATCH] Update Dockerfile and Readme --- Dockerfile | 34 +++++++++++++++++++++++----------- README.md | 11 +++++++++++ 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index e11117b..e47d59b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu:18.04 # Read the README.md for more details on the image configuration. -# You can use different baseline image or linux distribution +# You can use different baseline image or linux distribution # but you will likely need to change supporting tools installation and environment settings MAINTAINER Jaroslav Brazda <jaroslav.brazda@gmail.com> @@ -9,7 +9,13 @@ MAINTAINER Jaroslav Brazda <jaroslav.brazda@gmail.com> # This URL will have following pattern for latest IICS Orgs # ARG AGENT_URL=https://<pod>.<region>.informaticacloud.com/saas/download/linux64/installer/agent64_install_ng_ext.bin # Default is location for na1.dm-us.informaticacloud.com/ -ARG AGENT_URL=https://na1.dm-us.informaticacloud.com/saas/download/linux64/installer/agent64_install_ng_ext.bin + +ARG WORK_DIR=/home/agent/infaagent/apps/agentcore +ARG USER +ARG TOKEN +ARG POD=usw3 +ARG REGION=dm-us +ARG AGENT_URL="https://${POD}.${REGION}.informaticacloud.com/saas/download/linux64/installer/agent64_install_ng_ext.bin" # install system tools RUN apt-get update && apt-get install -y \ @@ -18,16 +24,17 @@ less \ locales \ locales-all \ sudo \ +inotify-tools \ unzip # Set the locale, Locale defaults are necessary for agent to operate correctly RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ locale-gen -ENV LANG en_US.UTF-8 -ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 -# We need to run docker image under a different user than root +# We need to run docker image under a different user than root # Secure agent process engine can't be run under root account RUN useradd --create-home -ms /bin/bash -U agent USER agent @@ -37,19 +44,24 @@ USER agent # 3. Install using silent install and the default location # 4. Cleanup RUN curl -o /tmp/agent64_install.bin $AGENT_URL && \ - chmod +x /tmp/agent64_install.bin && \ + chmod +x /tmp/agent64_install.bin && \ /tmp/agent64_install.bin -i silent && \ rm -rf /tmp/agent64_install.bin -WORKDIR /home/agent/infaagent/apps/agentcore -## Define Volumes for Shared Data Staging area +WORKDIR $WORK_DIR +## Define Volumes for Shared Data Staging area VOLUME [ "/data" ] ## Ports used by the agent that might be used for external Connections # 7080 Process Engine Shutdown Port # 7443 Process Engine https port # 5432 Process Engine Postgres DB -EXPOSE 7080 7443 5432 +EXPOSE 7080 7443 5432 COPY run_agent.sh . +COPY wait_for_agent.sh . +RUN ./infaagent startup && \ +sleep 10 && \ +./consoleAgentManager.sh configureToken $USER $TOKEN && \ +./infaagent shutdown -CMD [ "./run_agent.sh" ] \ No newline at end of file +CMD [ "./run_agent.sh" ] diff --git a/README.md b/README.md index b9d6349..ae224f9 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,14 @@ You can monitor agent logs running by docker exec -it ic-agent1 less agentCore.log ``` +From https://network.informatica.com/servlet/JiveServlet/download/189174-25674/Informatica%20Cloud%20Secure%20Agent%20Minimum%20Requirements.pdf +Minimum Hardware Specs + Use one of the following operating systems: + Windows version 7 (32-bit or 64-bit) or Windows XP Pro SP2/SP3 (32-bit). + Linux (32-bit or 64-bit) with the following configuration: + Red Hat Enterprise Linux version 5.3 or above. + SUSE Linux Enterprise version 10 and above. + 2-4 CPU recommended + 2 GB RAM recommended dedicated for the Agent (Recent customers have used 8GB) + 1 GB Hard disk space + 1 GB Network connectivity (faster the better as this will most likely the bottleneck) -- GitLab