diff options
author | Mike Elliott <mike.elliott@amdocs.com> | 2017-09-08 12:46:15 -0400 |
---|---|---|
committer | Mike Elliott <mike.elliott@amdocs.com> | 2017-09-12 09:46:53 -0400 |
commit | 586f03b6e2249f2da8b1e35b5290b8cc334c204e (patch) | |
tree | f33e9c35f6d1a63d8f223364e287b2b7e2ec23b2 /kubernetes/dcae/pgaas/Dockerfile | |
parent | 340d0bf4867a5890956c752b596372ec2d5d3005 (diff) |
Add helm-configured DCAE Gen 1
This is the initial seed of the dcae gen 1 deployment specifications
using onap 1.1 component containers.
All containers come up, however, there are issues with some of the containers
that will be flushed out during integration.
Change-Id: I6b74262168ae54bb7859d81de1ade6b59d1c42b1
Issue-Id: OOM-176
Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
Diffstat (limited to 'kubernetes/dcae/pgaas/Dockerfile')
-rwxr-xr-x | kubernetes/dcae/pgaas/Dockerfile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/kubernetes/dcae/pgaas/Dockerfile b/kubernetes/dcae/pgaas/Dockerfile new file mode 100755 index 0000000000..e1d147dfa9 --- /dev/null +++ b/kubernetes/dcae/pgaas/Dockerfile @@ -0,0 +1,45 @@ +FROM ubuntu:16.04 + +# Install additional packages +RUN apt-get update && apt-get -y install maven openjdk-8-jdk unzip python-pip curl dnsutils vim gawk wget openssh-client-ssh1 +RUN pip install pyyaml + +RUN apt-get update && apt-get install -y postgresql libpq5 repmgr python-psycopg2 python3-psycopg2 libgetopt-java +RUN rm -f /usr/sbin/policy-rc.d + +# Install Groovy +RUN mkdir -p /opt/app +RUN (cd /opt/app ; curl -Lo apache-groovy-binary-2.4.6.zip https://dl.bintray.com/groovy/maven/apache-groovy-binary-2.4.6.zip ) +RUN (cd /opt/app ; unzip apache-groovy-binary-2.4.6.zip ) +RUN mkdir -p /opt/app/java/jdk +RUN ln -s /usr /opt/app/java/jdk/jdk170 +RUN mkdir -p /opt/app/groovy +RUN ln -s /opt/app/groovy-2.4.6 /opt/app/groovy/246 + +# Create user dcae +RUN if [ ! -e /home/dcae ]; then useradd -m -s /bin/bash dcae; fi + +# Download required packages +RUN curl -s -k -f -o /tmp/org.openecomp.dcae.storage.pgaas-cdf_1.0.0.deb https://nexus.onap.org/content/sites/raw/org.openecomp.dcae.pgaas/deb-releases/org.openecomp.dcae.storage.pgaas-cdf_1.0.0.deb +RUN curl -s -k -f -o /tmp/org.openecomp.dcae.storage.pgaas-postgresql-prep_1.0.0.deb https://nexus.onap.org/content/sites/raw/org.openecomp.dcae.pgaas/deb-releases/org.openecomp.dcae.storage.pgaas-postgresql-prep_1.0.0.deb +RUN curl -s -k -f -o /tmp/org.openecomp.dcae.storage.pgaas-postgresql-config_1.0.0.deb https://nexus.onap.org/content/sites/raw/org.openecomp.dcae.pgaas/deb-releases/org.openecomp.dcae.storage.pgaas-postgresql-config_1.0.0.deb +RUN curl -s -k -f -o /tmp/org.openecomp.dcae.storage.pgaas-pgaas_1.0.0.deb https://nexus.onap.org/content/sites/raw/org.openecomp.dcae.pgaas/deb-releases/org.openecomp.dcae.storage.pgaas-pgaas_1.0.0.deb +RUN curl -s -k -f -o /tmp/org.openecomp.dcae.storage.pgaas-pgaas-post_1.0.0.deb https://nexus.onap.org/content/sites/raw/org.openecomp.dcae.pgaas/deb-releases/org.openecomp.dcae.storage.pgaas-pgaas-post_1.0.0.deb + +RUN apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p /opt/tools +RUN mkdir -p /dbroot/pgdata +RUN mkdir -p /dbroot/pglogs + +EXPOSE 5432 + +VOLUME /opt/tools +VOLUME /dbroot/pgdata +VOLUME /dbroot/pglogs + +# Setup the entrypoint +COPY setup.sh /usr/local/bin/entrypoint.sh +RUN chmod a+x /usr/local/bin/entrypoint.sh + +ENTRYPOINT ["usr/local/bin/entrypoint.sh"] |