forked from ISTI-ansible-roles/ansible-roles
removed old smartgears-container, a different version will be added later
This commit is contained in:
parent
6c911f85db
commit
b81d4366e2
|
@ -1,11 +0,0 @@
|
|||
repo: "gcube-staging"
|
||||
smartgears_version: "2.0.0-4.2.1-133740"
|
||||
image_name: "smartgears_whn"
|
||||
image_tag: "{{ smartgears_version }}"
|
||||
#image_tag: "latest"
|
||||
|
||||
|
||||
infrastructure: "d4s"
|
||||
hostname: "{{ ansible_hostname }}"
|
||||
token: "24edab1c-6ff6-4c61-8f51-b52d4f5f4611-98187548"
|
||||
container_mode: "offline"
|
Binary file not shown.
|
@ -1,3 +0,0 @@
|
|||
dependencies:
|
||||
# - role: java-17
|
||||
- role: docker
|
|
@ -1,32 +0,0 @@
|
|||
- name: ensure that the unarchive utils tar relies upon for file extraction are available (CentOS/RHEL)
|
||||
yum: name={{ item }} state=latest
|
||||
with_items:
|
||||
- bzip2
|
||||
- unzip
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: ensure that the unarchive utils tar relies upon for file extraction are available (Debian/Ubuntu)
|
||||
apt: name={{ item }} state=latest
|
||||
with_items:
|
||||
- bzip2
|
||||
- unzip
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: create temporary build directory
|
||||
shell: mktemp -d
|
||||
register: tempdir
|
||||
|
||||
- name: copy the Dockerfile
|
||||
template: src=Dockerfile dest="{{ tempdir.stdout }}/"
|
||||
|
||||
- name: copy the authorization config file
|
||||
template: src=d4s.authorization dest="{{ tempdir.stdout }}/" mode=0644
|
||||
|
||||
- name: Build the docker image
|
||||
docker_image:
|
||||
path: "{{ tempdir.stdout }}"
|
||||
name: "{{ image_name }}"
|
||||
tag: "{{ image_tag }}"
|
||||
|
||||
- name: remove the temporary build directory
|
||||
file: path="{{ tempdir.stdout }}" state=absent
|
|
@ -1,23 +0,0 @@
|
|||
from openjdk:7
|
||||
|
||||
ENV GHN_HOME=/SmartGears-Bundle/
|
||||
ENV BUNDLE_HOME=$GHN_HOME
|
||||
ENV CATALINA_HOME=$GHN_HOME/tomcat/
|
||||
ENV CATALINA_OPTS="-Xmx2000m -Xms2000m -XX:MaxPermSize=512M"
|
||||
ENV CATALINA_PID=$CATALINA_HOME/pid.txt
|
||||
|
||||
RUN wget http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/distribution/smartgears-distribution-bundle/{{ smartgears_version }}/smartgears-distribution-bundle-{{ smartgears_version }}.tar.gz
|
||||
RUN tar xzvf smartgears-distribution-bundle-{{ smartgears_version }}.tar.gz
|
||||
RUN rm smartgears-distribution-bundle-{{ smartgears_version }}.tar.gz
|
||||
WORKDIR $GHN_HOME/
|
||||
RUN echo 1 | /bin/bash $GHN_HOME/setup.sh -n {{ ansible_hostname }} -f
|
||||
ADD d4s.authorization $CATALINA_HOME/lib/
|
||||
RUN ln -s $GHN_HOME/SmartGears/container.xml $GHN_HOME/container.xml
|
||||
RUN sed -ie 's/^$CATALINA_HOME\/bin\/startup.sh/$CATALINA_HOME\/bin\/catalina.sh\ run/' $GHN_HOME/startContainer.sh
|
||||
RUN sed -ie "s/<container mode='offline'>/<container mode='{{ container_mode }}'>/" $GHN_HOME/container.xml
|
||||
RUN sed -ie "s/<infrastructure>gcube<\/infrastructure>/<infrastructure>{{ infrastructure }}<\/infrastructure>/" $GHN_HOME/container.xml
|
||||
RUN sed -ie "/<\/infrastructure>/a \ <token>{{ token }}</token>" $GHN_HOME/container.xml
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ./startContainer.sh
|
|
@ -1,25 +0,0 @@
|
|||
from openjdk:7
|
||||
|
||||
ENV GHN_HOME=/SmartGears-Bundle/
|
||||
ENV BUNDLE_HOME=$GHN_HOME
|
||||
ENV CATALINA_HOME=$GHN_HOME/tomcat/
|
||||
ENV CATALINA_OPTS="-Xmx2000m -Xms2000m -XX:MaxPermSize=512M"
|
||||
ENV CATALINA_PID=$CATALINA_HOME/pid.txt
|
||||
|
||||
#WORKDIR $GHN_HOME/
|
||||
|
||||
RUN \
|
||||
wget http://maven.research-infrastructures.eu/nexus/service/local/repositories/{{ repo }}/content/org/gcube/distribution/smartgears-distribution-bundle/{{ smartgears_version }}/smartgears-distribution-bundle-{{ smartgears_version }}.tar.gz \
|
||||
&& tar xzvf smartgears-distribution-bundle-{{ smartgears_version }}.tar.gz \ #--strip-components=1 \
|
||||
&& rm smartgears-distribution-bundle-{{ smartgears_version }}.tar.gz \
|
||||
&& cd smartgears-distribution-bundle-{{ smartgears_version }} \
|
||||
&& echo 1 | /bin/bash ./setup.sh -n {{ hostname }} -f \
|
||||
&& ln -s $GHN_HOME/SmartGears/container.xml $GHN_HOME/container.xml \
|
||||
&& sed -ie 's/^$CATALINA_HOME\/bin\/startup.sh/$CATALINA_HOME\/bin\/catalina.sh\ run/' startContainer.sh \
|
||||
&& sed -ie "s/<container mode='offline'>/<container mode='{{ container_mode }}'>/" container.xml \
|
||||
&& sed -ie "s/<infrastructure>gcube<\/infrastructure>/<infrastructure>{{ infrastructure }}<\/infrastructure>/" container.xml \
|
||||
&& sed -ie "/<\/infrastructure>/a \ <token>{{ token }}</token>" container.xml
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD /SmartGears-Bundle/startContainer.sh
|
|
@ -1 +0,0 @@
|
|||
<authorization-endpoint priority="1" infrastructure="d4s"><host>{{ authorization_hostname }}</host><secure>false</secure><port>{{ authorization_port }}</port></authorization-endpoint>
|
Loading…
Reference in New Issue