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:
parent
122f45ca75
commit
315f265bd6
31
cstate-management/debian/Dockerfile
Normal file
31
cstate-management/debian/Dockerfile
Normal 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"]
|
@ -0,0 +1,4 @@
|
|||||||
|
BUILDER=docker
|
||||||
|
LABEL=cstate-management
|
||||||
|
DOCKER_CONTEXT=../docker
|
||||||
|
DOCKER_FILE=./Dockerfile
|
7
cstate-management/docker/.dockerignore
Normal file
7
cstate-management/docker/.dockerignore
Normal 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
|
1
debian_stable_docker_images.inc
Normal file
1
debian_stable_docker_images.inc
Normal file
@ -0,0 +1 @@
|
|||||||
|
cstate-management
|
Loading…
x
Reference in New Issue
Block a user