From 76245cd725de6b6ee31cd91a897d0f5099e49397 Mon Sep 17 00:00:00 2001 From: Jaroslav Brazda <jbrazda@informatica.com> Date: Thu, 17 Aug 2017 11:02:11 -0400 Subject: [PATCH] Update documentation --- Dockerfile | 3 +-- README.md | 40 +++++++++++++++++++++++++++++++--------- 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99f2c89..0cf404a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,6 @@ MAINTAINER Jaroslav Brazda <jaroslav.brazda@gmail.com> ARG INSTALL_DIR=/informatica/agent # Defines whre to download agent from (this might be different for your org) ARG AGENT_URL=https://app2.informaticacloud.com/saas/download/linux64/installer/agent64_install.bin -# we need to run docker image under a different user than root because the Secure agent process engine can't be run under root account - # install system tools RUN apt-get update && \ @@ -26,6 +24,7 @@ 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 because the Secure agent process engine can't be run under root account RUN useradd --create-home -ms /bin/bash -U agent USER agent diff --git a/README.md b/README.md index 65c36dd..19105b4 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,38 @@ This package contains example docker file and supporting scripts to run Informat ## Use -1. Make sure you have docker installed go to (https://docs.docker.com/engine/installation/) -2. Clone this repository `git clone git@github.com:jbrazda/ic-sagent-docker.git` -3. Update the `Dockerfile` if necessary (Location of the SA agent installer might be different for your Informatica CLoud org) You can override the default location by specifying `--build-arg <AGENT_URL>=<value>` in next step -4. Run `docker build -t ic-secure-agent:1.0 .` -5. run `run -d -h <hostname> --name <agent_name> <image_name:image_tag>` - + `docker run -d -h agent1 --name ic-agent1 ic-secure-agent:1.0` +1. Make sure you have docker installed, go to (https://docs.docker.com/engine/installation/) +2. Clone this repository + ```shell + git clone git@github.com:jbrazda/ic-sagent-docker.git + ``` +3. Update the `Dockerfile` if necessary (Location of the SA agent installer might be different for your Informatica CLoud org) You can override the default location by specifying `--build-arg <name>=<value>` in next step +4. Run + ```shell + docker build -t ic-secure-agent:1.0 . + ``` + + To override the download file location use following + + ```shell + docker build --build-arg AGENT_URL=https://app3.informaticacloud.com/saas/download/linux64/installer/agent64_install.bin -t ic-secure-agent:1.0 . + ``` +5. execute following command `run -d -h <hostname> --name <agent_name> <image_name:image_tag>` + ```shell + docker run -d -h agent1 --name ic-agent1 ic-secure-agent:1.0 + ``` 6. We need to configure the agent to connect it to your Informatica Cloud Org When you running agent for the first time, run following command in the host machine to connect to running agent - `docker exec -it ic-agent1 bash` -7. Then run following command to configure agent `./consoleAgentManager.sh configure '<username>' '<password>'` -8. you can monitor agent running by calling `docker exec -it ic-agent1 less agentCore.log` + ```shell + docker exec -it ic-agent1 bash + ``` +7. Then run following command to configure agent + ```shell + ./consoleAgentManager.sh configure '<username>' '<password>' + ``` +8. You can monitor agent running by calling + ```shell + docker exec -it ic-agent1 less agentCore.log + ``` -- GitLab