vishwanathj closed pull request #213: ARIA-399: Sample Dockerfile and 
docker-compose.yaml file that installs/runs ARIA
URL: https://github.com/apache/incubator-ariatosca/pull/213
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/examples/docker/ubuntu1604/Dockerfile 
b/examples/docker/ubuntu1604/Dockerfile
new file mode 100644
index 00000000..e2795f82
--- /dev/null
+++ b/examples/docker/ubuntu1604/Dockerfile
@@ -0,0 +1,26 @@
+FROM ubuntu:16.04
+
+#COMMAND TO BUILD THE IMAGE ==> docker build --build-arg ARIA_VER=0.1.1 
--build-arg GTAG_VER=0.1.1 -t aria_011:16.04 .
+ARG ARIA_VER=0.1.1
+ARG GTAG_VER=0.1.1
+
+RUN apt-get update && apt-get install -y \
+    python-dev \
+    gcc \
+    libffi-dev \
+    libssl-dev \
+    python-pip \
+    git \
+    wget
+
+RUN pip install --upgrade pip setuptools
+
+RUN pip install apache-ariatosca[ssh]==$ARIA_VER apache-ariatosca
+
+WORKDIR /tmp
+
+RUN git clone https://github.com/apache/incubator-ariatosca.git 
/tmp/incubator-ariatosca
+
+WORKDIR /tmp/incubator-ariatosca
+
+RUN git checkout tags/$GTAG_VER
\ No newline at end of file
diff --git a/examples/docker/ubuntu1604/README.md 
b/examples/docker/ubuntu1604/README.md
new file mode 100644
index 00000000..49734c79
--- /dev/null
+++ b/examples/docker/ubuntu1604/README.md
@@ -0,0 +1,25 @@
+1. The Dockefile is used to build the Docker image of ARIA for Ubuntu 16.04.
+   Below is a sample command to build the ARIA 0.1.1 docker image:
+   
+   'docker build --build-arg ARIA_VER=0.1.1 --build-arg GTAG_VER=0.1.1 -t 
aria_011:7 .'
+   
+   NOTE: The build command has to be executed from the location where the 
Dockerfile resides.
+   
+2. The docker-compose file executes the below commands in the 'Getting 
Started' page on
+   ARIA website:
+   
+   a. aria service-templates store examples/hello-world/helloworld.yaml 
my-service-template
+   
+   b. aria services create my-service -t my-service-template
+   
+   c. aria executions start install -s my-service
+   
+   NOTE 1: The value for 'image' in the docker-compose file needs to match the 
image you plan to use.
+   
+   NOTE 2: The command to run docker-compose is "docker-compose up -d" from 
the location where docker-compose file resides.
+   
+   You can check if the docker-compose ran successfully by executing the 
command 'docker-compose ps'
+   
+   You can also verify that aria executed the commands by launching a web 
browser with http://localhost:29090
+   
+   
\ No newline at end of file
diff --git a/examples/docker/ubuntu1604/docker-compose.yaml 
b/examples/docker/ubuntu1604/docker-compose.yaml
new file mode 100644
index 00000000..0ee08057
--- /dev/null
+++ b/examples/docker/ubuntu1604/docker-compose.yaml
@@ -0,0 +1,11 @@
+version: "3"
+services:
+  aria:
+    #Make sure to provide the right value for image field below and uncomment 
the below line
+    #image: vishwanathj/aria_011:16.04
+    hostname: aria
+    ports:
+      - "29090:9090"
+    stdin_open: true
+    tty: true
+    command: sh -c "aria service-templates store 
examples/hello-world/helloworld.yaml my-service-template && sleep 2 && aria 
services create my-service -t my-service-template && sleep 2 && aria executions 
start install -s my-service && bash"
\ No newline at end of file


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to