C-state Management Application Container Image Build

This commit adds `cstate-management` application's container
image build.
Subsequent commits will be added to effectively establish
`cstate-management` as a StarlingX application.

Test Plan:
PASS: Check whether Docker image build runs successfully.
PASS: Check whether built image runs accordingly.

Story: 2011105
Task: 50176

Authored-By: Guilherme Santos <guilherme.santos@windriver.com>
Co-Authored-By: Vinicius Lobo <vinicius.rochalobo@windriver.com>

Change-Id: I03e1eb020da4fd87b1048cabaf14e1f5b9b5ae3d
Signed-off-by: Guilherme Santos <guilherme.santos@windriver.com>
This commit is contained in:
Guilherme Santos 2024-05-24 14:49:40 -03:00
parent 122f45ca75
commit 315f265bd6
5 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,31 @@
#
# Copyright (c) 2024 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# All Rights Reserved.
#
ARG BASE
FROM ${BASE}
ENV DEBIAN_FRONTEND=noninteractive
ENV KUBE_LATEST_VERSION="v1.23.1"
RUN apt-get -y update \
&& apt-get -y install \
gcc \
python3-dev \
python3 \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --user pecan \
&& pip3 install six \
&& pip3 install WSME \
&& pip3 install cherrypy cheroot oslo_utils
WORKDIR /opt/
COPY ./cstate-management /opt/cstate-management
RUN cd /opt/cstate-management && python3 setup.py develop
WORKDIR /opt/cstate-management/
CMD ["bash"]

View File

@ -0,0 +1,4 @@
BUILDER=docker
LABEL=cstate-management
DOCKER_CONTEXT=../docker
DOCKER_FILE=./Dockerfile

View File

@ -0,0 +1,7 @@
# test files
cstate-management/tox.ini
cstate-management/pylint.rc
cstate-management/test-requirements.txt
cstate-management/upper-constraints.txt
cstate-management/.stestr.conf
cstate-management/.stestr

View File

@ -0,0 +1 @@
cstate-management