From 2418b8ab62aa3dfbe67c514535de35ee464ef6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Campesino=20Chac=C3=B3n=20Alvaro?= Date: Thu, 7 Jul 2022 13:55:05 +0200 Subject: [PATCH] Create ara artifact --- CHANGELOG.md | 7 +++++++ Dockerfile | 26 ++++++++++++++++++++++++++ Jenkinsfile | 21 +++++++++++++++++++++ TAG | 1 + VERSION | 1 + 5 files changed, 56 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 Dockerfile create mode 100644 Jenkinsfile create mode 100644 TAG create mode 100644 VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..737c99b4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ + +# Changelog + +## 0.1.0 (upcoming) + +* Build an ara stratio image using 1.5.8 ara version + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..6ac1077d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ + +FROM python:3.8 + +ARG ARA_VERSION=1.5.8 +ARG ARA_GIT_URL=https://github.com/ansible-community/ara + +ENV ARA_PATH=/opt/ara +ENV ARA_BASE_DIR=/opt/ara-database +ENV GUNICORN_WORKERS=4 + +RUN git clone --quiet "${ARA_GIT_URL}" --depth 1 --branch "${ARA_VERSION}" "${ARA_PATH}" +RUN mkdir $ARA_BASE_DIR + +RUN pip install --upgrade pip && \ + pip install /opt/ara[server] && \ + pip install pymysql && \ + pip install passlib && \ + pip install gunicorn && \ + rm -rf /var/cache/apk/* && \ + rm -rf /opt/ara + +ENV PATH=/opt/ara/venv/bin:$PATH + + + +CMD /usr/local/bin/ara-manage migrate && gunicorn --workers=$GUNICORN_WORKERS --bind "0.0.0.0:8000" ara.server.wsgi diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..8f696c29 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,21 @@ +@Library('libpipelines@master') _ + + +hose { + EMAIL = 'eos@stratio.com' + BUILDTOOL_IMAGE = 'stratio/ara-builder:0.1.0' + BUILDTOOL = 'make' + DEVTIMEOUT = 30 + DEPLOYONPRS = true + ANCHORE_TEST = true + VERSIONING_TYPE = 'stratioVersion-3-3' + UPSTREAM_VERSION = '1.5.7' + SKIPONPR = false + + DEV = { config -> + doPackage(config) + def SKIPONPR = false + doDocker(conf: config, dockerfile: "rootfs/Dockerfile.stratio") + doHelmChart(conf: config, helmTarget: "chart") + } +} diff --git a/TAG b/TAG new file mode 100644 index 00000000..1cc9c180 --- /dev/null +++ b/TAG @@ -0,0 +1 @@ +1.5.8 diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..b694fe3f --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0-SNAPSHOT