Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Create ara artifact #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# Changelog

## 0.1.0 (upcoming)

* Build an ara stratio image using 1.5.8 ara version

26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@Library('libpipelines@master') _


hose {
EMAIL = '[email protected]'
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")
}
}
1 change: 1 addition & 0 deletions TAG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.5.8
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0-SNAPSHOT